forked from apache/accumulo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Stricter check of the column value for fate reservations. If anything unexpected is seen, an error is now thrown. - Simplified MetaFateStore.getActiveReservations() to only read from ZooKeeper once. - Combined the two scans that were done in AbstractFateStore.runnable() into one. This meant adding FateReservation to FateIdStatus and refactoring Meta/UserFateStore.getTransactions(). - No longer use/store a string representation of the FateReservation (was used in UserFateStore). Now, only the serialized value is used. This keeps the usage of FateReservation consistent across Meta and UserFateStore. It was also unneccessary, so simplifies code. - Moved AbstractFateStore.createAndReserve() implementation into Meta and UserFateStore, and rewrote the impl for each to work with the new way reservations are stored. This also allowed me to delete methods that were only used by AFS.createAndReserve(): create(FateId, FateKey), getStatusAndKey(FateId), create(FateKey). - Fixed how concurrentStatusChangeCallers was decremented in AbstractFateStore.waitForStatusChange() - Small change to MetaFateStore.deleteDeadReservations() to avoid reading from ZK unnecessarily - Added isReservedBy() method to MetaFateStore.NodeValue to avoid code duplication and make the code more clear. - Since the FateIdStatus now has the FateReservation, realized Meta and UserFateStore.getActiveReservations() could now be simplified to just call list(). This also made the impls the same, so moved to AbstractFateStore. This also made me realize that I had put getActiveReservations() method signature in FateStore, but would be better suited for ReadOnlyFateStore, so moved it there. - Deleted FateStore.isReserved(FateId)... No longer needed/used - Moved UNKNOWN status check in AbstractFateStore.reserve() into waiting loop - Now log when a dead reservation is detected and deleted - Minor change to Fate: no longer create the executor for the dead reservation cleaner if it's not going to be used
- Loading branch information
1 parent
176b9c3
commit 6760035
Showing
16 changed files
with
358 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.