Details
Description
// This approach has a race condition where two different cluster // nodes // can acquire the lock simultaneously. UpdateOp update = new UpdateOp(Integer.toString(clusterId), true); update.set(ClusterNodeInfo.REV_RECOVERY_LOCK, RecoverLockState.ACQUIRED.name()); store.createOrUpdate(Collection.CLUSTER_NODES, update); return true;
It would be good if could harden this, however it seems that the conditions in UpdateOp only work on revision properties. mreutegg WDYT?
Attachments
Attachments
Issue Links
- is blocked by
-
OAK-3491 DocumentDiscoveryLiteServiceTest makes incorrect call to MissingLastRevRecovery
- Closed
-
OAK-3489 DocumentStore: introduce a "NotEquals" condition
- Closed
- is related to
-
OAK-4131 LastRevisionRecoveryAgent may throw ClassCastException
- Closed
-
OAK-4100 ClusterNodeInfo lease renewal: add logging
- Closed
- relates to
-
OAK-3435 LastRevRecoveryAgent/MissingLastRevSeeker improvements
- Closed