]
Galder Zamarreño resolved ISPN-1493.
------------------------------------
Fix Version/s: 5.1.0.FINAL
Resolution: Done
Write commands fail too often with RehashInProgressException during
state transfer
----------------------------------------------------------------------------------
Key: ISPN-1493
URL:
https://issues.jboss.org/browse/ISPN-1493
Project: Infinispan
Issue Type: Bug
Components: Distributed Cache
Affects Versions: 5.0.1.FINAL, 5.1.0.BETA2
Reporter: Dan Berindei
Assignee: Manik Surtani
Fix For: 5.1.0.BETA3, 5.1.0.FINAL
With the blocking state transfer we have since 5.0, we can sometimes have a deadlock
between the state transfer process and executing write/prepare/commit commands.
The commands need to acquire the state transfer lock on the originator and on the key
owners, in this order, and the state transfer also needs to acquire the state transfer
lock on these nodes but in an undefined order (see ISPN-1106).
This is solved by failing fast when acquiring the command's state transfer lock on
the remote node, but this means that a write command can fail with a
RehashInProgressException and the user is forced to retry.
We can do better and retry the command ourselves after waiting for the state transfer to
end.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: