Skip to content

Commit

Permalink
ISPN-1343 - Don't send the commit command to all members that receive…
Browse files Browse the repository at this point in the history
…d the prepare command, since they could have already left the cluster.

JGroups will wait for the response message until the timeout replication expires, while holding the locks for the modified keys. So other transactions could time out waiting for our locks.
  • Loading branch information
Dan Berindei authored and maniksurtani committed Sep 8, 2011
1 parent f0a6969 commit ecc11fc
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ public Object visitCommitCommand(TxInvocationContext ctx, CommitCommand command)
boolean syncCommitPhase = configuration.isSyncCommitPhase();
for (Address a : preparedOn) {
if (!recipients.contains(a)) {
recipients.add(a);
// However if we have prepared on some nodes and are now committing on different nodes, make sure we
// force sync commit so we can respond to prepare resend requests.
syncCommitPhase = true;
Expand Down

0 comments on commit ecc11fc

Please sign in to comment.