Skip to content

Commit

Permalink
HSEARCH-4748 Remove leading "#" from agent references
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Jan 3, 2023
1 parent c19ec86 commit 61a14a8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Expand Up @@ -73,7 +73,7 @@ public void conflictingTotalShardCount() throws InterruptedException {

String[] expectedContent = new String[] {
"is statically assigned to shard ",
"this conflicts with agent '#",
"this conflicts with agent '",
"' which expects ", " shards.",
"This can be a temporary situation caused by some application instances being forcibly stopped and replacements being spun up",
"consider adjusting the configuration or switching to dynamic sharding.",
Expand Down Expand Up @@ -112,7 +112,7 @@ public void conflictingAssignedShardIndex() throws InterruptedException {

String[] expectedContent = new String[] {
"is statically assigned to shard ",
"this conflicts with agent '#",
"this conflicts with agent '",
"' which is also assigned to that shard.",
"This can be a temporary situation caused by some application instances being forcibly stopped and replacements being spun up",
"consider adjusting the configuration or switching to dynamic sharding.",
Expand Down
Expand Up @@ -23,6 +23,6 @@ private AgentReference(UUID id, String name) {

@Override
public String toString() {
return "#" + id + " - " + name;
return id + " - " + name;
}
}
Expand Up @@ -116,9 +116,9 @@ public void staticSharding_conflictingAssignedShardIds() {
.hasMessageContainingAll(
"Agent '" + SELF_REF + "': failed to infer a target cluster from the list of registered agents.",
"The agent will try again in the next pulse.",
"Agent '#" + OTHER_2_ID + " - ",
"Agent '" + OTHER_2_ID + " - ",
"is statically assigned to shard 0 (total " + totalShardCount + ")",
"this conflicts with agent '#" + OTHER_1_ID + " - ",
"this conflicts with agent '" + OTHER_1_ID + " - ",
"' which is also assigned to that shard.",
"This can be a temporary situation caused by some application instances being forcibly stopped and replacements being spun up",
"consider adjusting the configuration or switching to dynamic sharding.",
Expand Down Expand Up @@ -156,7 +156,7 @@ public void staticSharding_conflictingTotalShardCount() {
.hasMessageContainingAll(
"Agent '" + SELF_REF + "': failed to infer a target cluster from the list of registered agents.",
"The agent will try again in the next pulse.",
"Agent '#" + OTHER_2_ID + " - ",
"Agent '" + OTHER_2_ID + " - ",
"is statically assigned to shard 2 (total 4)",
"this conflicts with agent '" + SELF_REF + "'",
"which expects 3 shards.",
Expand Down

0 comments on commit 61a14a8

Please sign in to comment.