-
Notifications
You must be signed in to change notification settings - Fork 455
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
Process seeding of split fate operations in batches #5404
Conversation
Updates the Seeder in the Manager that handles seeding split fate ops to use a single thread and to submit multiple outstanding operations to be seeded together instead of individually in order to improve performance. The user fate store will now track outstanding fate operations and return a future for each pending operation that will be completed when the batch is submitted. This closes apache#5160
I didn't add any new tests for this (at least not yet) because I figured the existing ITs would catch any issues. I'm going to kick off a full IT build now. Also, I deprecated the |
@@ -461,6 +461,7 @@ public enum Property { | |||
+ "indefinitely. Default is 0 to block indefinitely. Only valid when tserver available " | |||
+ "threshold is set greater than 0.", | |||
"1.10.0"), | |||
@Deprecated(since = "4.0.0") |
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 property can be dropped instead of deprecated as it was introduced in main.
// to a conditional writer and any known results will be removed | ||
// from the pending map. Unknown results will be re-attempted up | ||
// to the maxAttempts count | ||
for (int attempt = 0; attempt < maxAttempts; attempt++) { |
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.
Seems like this will continue to loop even after pending is empty, could add a check for that.
for (int attempt = 0; attempt < maxAttempts; attempt++) { | |
for (int attempt = 0; attempt < maxAttempts && !pending.isEmpty(); attempt++) { |
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.
Good catch, i'll fix that
Updates the Seeder in the Manager that handles seeding split fate ops to use a single thread and to submit multiple outstanding operations to be seeded together instead of individually in order to improve performance. The user fate store will now track outstanding fate operations and return a future for each pending operation that will be completed when the batch is submitted.
This closes #5160