New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISPN-5623 Retried prepare commands do not wait for backup locks #3873
Conversation
@@ -60,6 +60,11 @@ public Object visitPrepareCommand(TxInvocationContext ctx, PrepareCommand comman | |||
final Collection<Object> keysToLock = command.getKeysToLock(); | |||
((TxInvocationContext<?>) ctx).addAllAffectedKeys(command.getAffectedKeys()); | |||
if (!keysToLock.isEmpty()) { | |||
if (command.isRetriedCommand() && ctx.isOriginLocal()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we exclude onePhaseCommit
prepares as well? At least with pessimistic locking, the prepare command isn't going to acquire any locks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not needed. This is the optimistic locking so the prepare always acquire locks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, this is the optimistic interceptor :)
464bb23
to
f4809ab
Compare
@danberindei updated! |
* @author Pedro Ruivo | ||
* @since 8.1 | ||
*/ | ||
public class Pair<E1, E2> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have KeyValuePair
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed!
f4809ab
to
ce34e8e
Compare
Integrated, thanks Pedro! |
https://issues.jboss.org/browse/ISPN-5623