-
Notifications
You must be signed in to change notification settings - Fork 892
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
Execute clean indexes in finally #3772
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3772 +/- ##
=============================================
- Coverage 68.07% 47.43% -20.65%
+ Complexity 6648 4508 -2140
=============================================
Files 467 467
Lines 40829 40829
Branches 5234 5234
=============================================
- Hits 27795 19366 -8429
- Misses 10772 19467 +8695
+ Partials 2262 1996 -266
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
What's the difference between moving the code block into finally?
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.
I think it doesn't solve the fundamental problem.
Moved to finally, The index clean up is going on when |
@hangc0276 PTAL |
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.
lgtm
This reverts commit 04e572b.
Execute clean indexes in finally (apache#3772) (cherry picked from commit 04e572b)
Motivation
Fixes #3771
Changes
Move cleanupExecutor to finally block to make sure it can be executed every checkpoint process.