-
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-1105][AMS] Fix snapshot expire and orphan clean misdelete the DataFiles #1122
Conversation
the snapshot expire and the orphan file clean check valid files according to scan from metadata files
remove useless code
fix check style
ams/ams-server/src/main/java/com/netease/arctic/ams/server/utils/ContentFileUtil.java
Outdated
Show resolved
Hide resolved
The unit test cases for orphan files clean in We should add more test cases to ensure it meets our expectations. |
ams/ams-server/src/main/java/com/netease/arctic/ams/server/utils/HiveLocationUtils.java
Show resolved
Hide resolved
ams/ams-server/src/main/java/com/netease/arctic/ams/server/utils/ContentFileUtil.java
Show resolved
Hide resolved
fix code review
OK, I will add some unit test cases. |
LGTM |
import org.apache.iceberg.PartitionSpec; | ||
import org.apache.iceberg.Table; | ||
import org.apache.iceberg.data.GenericRecord; |
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 useless imports.
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.
OK
… DataFiles (apache#1122) * apache#1105 the snapshot expire and the orphan file clean check valid files according to scan from metadata files * apache#1105 remove useless code * apache#1105 fix check style * apache#1105 fix code review * remove useless import --------- Co-authored-by: luting <dylzlt93299@gmail.com>
Why are the changes needed?
fix #1105
Brief change log
How 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