Skip to content

Commit

Permalink
IGNITE-14823 Label abbrevation (#11134)
Browse files Browse the repository at this point in the history
  • Loading branch information
nizhikov authored Dec 25, 2023
1 parent 6a13ec7 commit f0a810c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modules/checkstyle/src/main/resources/abbrevations.csv
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ index,idx
initial,init
initialize,init
#iterator,iter
#label,lbl
label,lbl
#local,loc
#logger,log
#loader,ldr
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ public ClientListenerMetrics(MetricRegistry mreg) {
"The number of affinity-aware query requests that were sent not to the primary node");

for (byte clientType : CLI_TYPES) {
String clientLabel = clientTypeLabel(clientType);
String clientLbl = clientTypeLabel(clientType);

String labelAccepted = MetricUtils.metricName(clientLabel, METRIC_ACEPTED);
accepted[clientType] = mreg.intMetric(labelAccepted,
String lblAccepted = MetricUtils.metricName(clientLbl, METRIC_ACEPTED);
accepted[clientType] = mreg.intMetric(lblAccepted,
"Number of successfully established sessions for the client type.");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class LongRunningTransactionsGenerator extends IgniteAwareApplication {

String keyPrefix = jsonNode.get("key_prefix") != null ? jsonNode.get("key_prefix").asText() : LOCKED_KEY_PREFIX;

String label = jsonNode.get("label") != null ? jsonNode.get("label").asText() : null;
String lbl = jsonNode.get("label") != null ? jsonNode.get("label").asText() : null;

long expectedTopologyVersion = jsonNode.get("wait_for_topology_version") != null ?
jsonNode.get("wait_for_topology_version").asLong() : -1L;
Expand Down Expand Up @@ -124,7 +124,7 @@ public class LongRunningTransactionsGenerator extends IgniteAwareApplication {
data.put(key, key);
}

IgniteTransactions igniteTransactions = label != null ? ignite.transactions().withLabel(label) :
IgniteTransactions igniteTransactions = lbl != null ? ignite.transactions().withLabel(lbl) :
ignite.transactions();

pool.execute(() -> {
Expand Down

0 comments on commit f0a810c

Please sign in to comment.