Commit 05ff059
authored
[Improvement] Move snapshot ID capture in expireFiles() to after delete commit (#4169)
Move snapshot ID capture in expireFiles() to after delete commit
The snapshot ID passed to RewriteFiles.validateFromSnapshot() was
captured before DeleteFiles.commit(), making it stale for the
subsequent RewriteFiles operation. Although the current validation
path is benign (replacedDataFiles is empty so conflict detection is
skipped), passing a pre-commit snapshot ID is semantically incorrect
and fragile against future Iceberg validation changes.
Move the capture to after delete.commit() so that
validateFromSnapshot() always receives the up-to-date snapshot.
Signed-off-by: Jiwon Park <jpark92@outlook.kr>1 parent 5abacab commit 05ff059
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- amoro-format-iceberg/src/main/java/org/apache/amoro/formats/iceberg/maintainer
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
875 | 875 | | |
876 | 876 | | |
877 | 877 | | |
878 | | - | |
879 | 878 | | |
880 | 879 | | |
881 | 880 | | |
| |||
890 | 889 | | |
891 | 890 | | |
892 | 891 | | |
| 892 | + | |
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
| |||
0 commit comments