Skip to content

Commit

Permalink
If we're the coord, handle GMS.leave_timeout differently (https://iss…
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Sep 11, 2012
1 parent 83aa131 commit f1ffa33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/org/jgroups/protocols/pbcast/CoordGmsImpl.java
Expand Up @@ -55,7 +55,10 @@ public void leave(Address mbr) {
leaving=true;
gms.getViewHandler().add(new Request(Request.LEAVE, mbr, false));
gms.getViewHandler().stop(true); // wait until all requests have been processed, then close the queue and leave
gms.getViewHandler().waitUntilCompleted(gms.leave_timeout);

// If we're the coord leaving, ignore gms.leave_timeout: https://issues.jboss.org/browse/JGRP-1509
long timeout=(long)(Math.max(gms.leave_timeout, gms.view_ack_collection_timeout) * 1.10);
gms.getViewHandler().waitUntilCompleted(timeout);
}


Expand Down

0 comments on commit f1ffa33

Please sign in to comment.