-
Notifications
You must be signed in to change notification settings - Fork 478
Several misc Fate changes #4912
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
Conversation
- Add a toString() to FateKey - Move MetaFateStore to org.apache.accumulo.core.fate.zookeeper - Periodic clean up of dead reservations increased from every 30 seconds to every few minutes - New fate test case added to FateIT that ensures no write ops can be performed on a transaction after it has been deleted - Added new check to verifyReserved() that checks whether the transaction is deleted - Fixed UserFateStoreIT to work with new change and misc cleanup to the class
To improve the test time could use a strategy similar to FlakyFateManager and a test like ComprehensiveFlakyFateIT. So could create a FastFateCleanupManager that creates fate with a much lower cycle time and then have the test use that manager class. |
| .allMatch(entry -> FateStore.FateReservation.locksAreEqual(entry.getLockID(), lock2)); | ||
| return store2Reservations.keySet().equals(allIds) && allReservedWithLock2; | ||
| }, 60_000); | ||
| }, 60_000 * 4); |
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.
This change is needed because the manager cleans up dead reservations less frequently?
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.
yes
9599bd8 changed this to 30 seconds with use of FastFate
- created new class FastFate which performs the dead reservation cleanup more often
Yeah good idea. I created |
keith-turner
left a comment
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.
@kevinrr888 how long does the test take to run now?
|
@keith-turner just 30-40 seconds |
This PR addresses some follow on changes from #4524 (comment):
A couple questions: