-
Notifications
You must be signed in to change notification settings - Fork 382
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
fix(bigtable): remove unnecessary sleeps from BulkApply #9091
Conversation
Google Cloud Build Logs
ℹ️ NOTE: Kokoro logs are linked from "Details" below. |
@@ -171,6 +172,7 @@ std::vector<FailedMutation> Table::BulkApply(BulkMutation mut) { | |||
if (!status.ok() && !retry_policy->OnFailure(status)) { |
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.
My proposal was:
while (mutator.HasPendingMutations()) {
....
status = mutator.MakeOneRequest(*client_, client_context);
if (status.ok()) continue;
if (!retry_policy->OnFailure(status)) break;
...
}
I think your approach saves the initial HasPendingMutations()
probably worth it.
Codecov Report
@@ Coverage Diff @@
## main #9091 +/- ##
=======================================
Coverage 94.44% 94.44%
=======================================
Files 1430 1430
Lines 127076 127112 +36
=======================================
+ Hits 120020 120054 +34
- Misses 7056 7058 +2
Continue to review full report at Codecov.
|
Google Cloud Build Logs
ℹ️ NOTE: Kokoro logs are linked from "Details" below. |
Fixes #9089 ... although this should be tested properly.
We now check the loop condition before sleeping instead of after.
This change is