-
Notifications
You must be signed in to change notification settings - Fork 314
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
[ARCTIC-930][AMS] Snapshot expire service should not expire snapshot with the lastest checkpoint id #1178
Conversation
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.
@wangtaohz Thanks for your contribution. I left some comments.
ams/ams-server/src/main/java/com/netease/arctic/ams/server/service/impl/TableExpireService.java
Outdated
Show resolved
Hide resolved
ams/ams-server/src/main/java/com/netease/arctic/ams/server/service/impl/TableExpireService.java
Outdated
Show resolved
Hide resolved
2.refactor method fetchLatestFlinkCommittedSnapshotTime
ams/ams-server/src/main/java/com/netease/arctic/ams/server/service/impl/TableExpireService.java
Outdated
Show resolved
Hide resolved
ams/ams-server/src/main/java/com/netease/arctic/ams/server/service/impl/TableExpireService.java
Outdated
Show resolved
Hide resolved
ams/ams-server/src/main/java/com/netease/arctic/ams/server/service/impl/TableExpireService.java
Outdated
Show resolved
Hide resolved
ams/ams-server/src/main/java/com/netease/arctic/ams/server/service/impl/TableExpireService.java
Outdated
Show resolved
Hide resolved
ams/ams-server/src/main/java/com/netease/arctic/ams/server/service/impl/TableExpireService.java
Show resolved
Hide resolved
ams/ams-server/src/main/java/com/netease/arctic/ams/server/service/impl/TableExpireService.java
Outdated
Show resolved
Hide resolved
change to hiveLocations remove baseTable == null, changeTable == null change to baseExcludePaths add some comment for fetchLatestFlinkCommittedSnapshotTime import a static variable for flink.max-committed-checkpoint-id
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1178 +/- ##
============================================
- Coverage 27.86% 26.07% -1.79%
+ Complexity 4929 3787 -1142
============================================
Files 657 486 -171
Lines 69172 52944 -16228
Branches 7978 6128 -1850
============================================
- Hits 19275 13806 -5469
+ Misses 47986 37745 -10241
+ Partials 1911 1393 -518
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
… not expire snapshot with the lastest checkpoint id (#1178) * the last snapshot with flink.max-committed-checkpoint-id should not be expired * 1.refactor TableExpireServicec for unit test 2.refactor method fetchLatestFlinkCommittedSnapshotTime * remove the use of traceId change to hiveLocations remove baseTable == null, changeTable == null change to baseExcludePaths add some comment for fetchLatestFlinkCommittedSnapshotTime import a static variable for flink.max-committed-checkpoint-id * add some comment for optimizer
…with the lastest checkpoint id (#1178) * the last snapshot with flink.max-committed-checkpoint-id should not be expired * 1.refactor TableExpireServicec for unit test 2.refactor method fetchLatestFlinkCommittedSnapshotTime * remove the use of traceId change to hiveLocations remove baseTable == null, changeTable == null change to baseExcludePaths add some comment for fetchLatestFlinkCommittedSnapshotTime import a static variable for flink.max-committed-checkpoint-id * add some comment for optimizer
…with the lastest checkpoint id (apache#1178) * the last snapshot with flink.max-committed-checkpoint-id should not be expired * 1.refactor TableExpireServicec for unit test 2.refactor method fetchLatestFlinkCommittedSnapshotTime * remove the use of traceId change to hiveLocations remove baseTable == null, changeTable == null change to baseExcludePaths add some comment for fetchLatestFlinkCommittedSnapshotTime import a static variable for flink.max-committed-checkpoint-id * add some comment for optimizer
Why are the changes needed?
To fix #930
Brief change log
flink.max-committed-checkpoint-id
should not be expiredHow was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before making a pull request
Documentation