-
Notifications
You must be signed in to change notification settings - Fork 307
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
[AMORO-3365]The table is always in committing state #3366
Conversation
1c966fc
to
bf7d517
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3366 +/- ##
============================================
+ Coverage 21.59% 27.48% +5.89%
- Complexity 2309 3511 +1202
============================================
Files 426 593 +167
Lines 39719 48310 +8591
Branches 5624 6234 +610
============================================
+ Hits 8577 13280 +4703
- Misses 30414 34096 +3682
- Partials 728 934 +206
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Thanks for the contribution!
So the question arises:
I am afraid the current implementation will fail when the AMS restart. |
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions. |
Hi, |
# Conflicts: # amoro-ams/src/main/java/org/apache/amoro/server/optimizing/OptimizingQueue.java
Hi, some unit test cases should be adjusted due to this change, like @Test
public void testReloadCompletedTask() {
// THREAD_ID.poll task
OptimizingTask task = optimizingService().pollTask(token, THREAD_ID);
Assertions.assertNotNull(task);
optimizingService().ackTask(token, THREAD_ID, task.getTaskId());
optimizingService().completeTask(token, buildOptimizingTaskResult(task.getTaskId()));
reload();
// Committing process will be closed when reloading
Assertions.assertNull(
tableService()
.getRuntime(serverTableIdentifier().getId())
.getOptimizingProcess());
Assertions.assertEquals(
OptimizingStatus.IDLE,
tableService().getRuntime(serverTableIdentifier().getId()).getOptimizingStatus());
Assertions.assertNull(optimizingService().pollTask(token, THREAD_ID));
} |
OK, thank you very much, I will modify it later. |
Fix unit tests Fix unit tests Fix unit tests
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.
Thanks for the contribution!
Why are the changes needed?
Close #3365.