kevinrr888 commented on code in PR #4992:
URL: https://github.com/apache/accumulo/pull/4992#discussion_r1808904236
##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -231,7 +228,9 @@ public Optional<FateTxStore<T>> tryReserve(FateId fateId) {
// Create a unique FateReservation for this reservation attempt
FateReservation reservation = FateReservation.from(lockID,
UUID.randomUUID());
- FateMutator.Status status =
newMutator(fateId).putReservedTx(reservation).tryMutate();
+ // requiring any status prevents creating an entry if the fate id doesn't
exist
+ FateMutator.Status status =
Review Comment:
Yeah, before this, `putReservedTx` only worked if the reservation column had
a NOT_RESERVED value, which was only set on creation and unreservation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]