Skip to content

Commit

Permalink
GEODE-6244 Healthy member kicked out by sick member
Browse files Browse the repository at this point in the history
undoing changes to NetView.toString(), which turned out to not be as
helpful as I hoped.
  • Loading branch information
bschuchardt committed Feb 6, 2019
1 parent 7f10f3a commit 6d5aca5
Showing 1 changed file with 18 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -512,23 +512,35 @@ public String toString() {
InternalDistributedMember lead = getLeadMember();

StringBuilder sb = new StringBuilder(200);
sb.append("View[").append(creator).append('|').append(viewId).append("]\nmembers: [");
sb.append("View[").append(creator).append('|').append(viewId).append("] members: [");
boolean first = true;
for (InternalDistributedMember mbr : this.members) {
sb.append("\n").append(mbr);
if (!first)
sb.append(", ");
sb.append(mbr);
if (mbr == lead) {
sb.append("{lead}");
}
first = false;
}
if (!this.shutdownMembers.isEmpty()) {
sb.append("]\nshutdown: [");
sb.append("] shutdown: [");
first = true;
for (InternalDistributedMember mbr : this.shutdownMembers) {
sb.append("\n").append(mbr);
if (!first)
sb.append(", ");
sb.append(mbr);
first = false;
}
}
if (!this.crashedMembers.isEmpty()) {
sb.append("]\ncrashed: [");
sb.append("] crashed: [");
first = true;
for (InternalDistributedMember mbr : this.crashedMembers) {
sb.append("\n").append(mbr);
if (!first)
sb.append(", ");
sb.append(mbr);
first = false;
}
}
// sb.append("] fd ports: [");
Expand All @@ -543,7 +555,6 @@ public String toString() {
sb.append("]");
return sb.toString();
}

/**
* Returns the ID from this view that is equal to the argument. If no such ID exists the argument
* is returned.
Expand Down

0 comments on commit 6d5aca5

Please sign in to comment.