-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Flink: Maintenance - TableManager + ExpireSnapshots #11144
Conversation
@stevenzwu: This PR become quite sizeable. I still think that it is better to keep it as one to provide context for some of the decisions made during the definition of the If you have time we could discuss offline the review strategy, and whether to split this PR to smaller ones. Thanks, |
a1dabe5
to
96322c5
Compare
.../flink/src/main/java/org/apache/iceberg/flink/maintenance/stream/MaintenanceTaskBuilder.java
Outdated
Show resolved
Hide resolved
...k/v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/stream/ExpireSnapshots.java
Outdated
Show resolved
Hide resolved
...k/v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/stream/ExpireSnapshots.java
Outdated
Show resolved
Hide resolved
...k/v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/stream/ExpireSnapshots.java
Outdated
Show resolved
Hide resolved
...k/v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/stream/ExpireSnapshots.java
Outdated
Show resolved
Hide resolved
.../v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/stream/TableMaintenance.java
Outdated
Show resolved
Hide resolved
...nk/src/main/java/org/apache/iceberg/flink/maintenance/operator/ExpireSnapshotsProcessor.java
Outdated
Show resolved
Hide resolved
...1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/operator/AsyncDeleteFiles.java
Outdated
Show resolved
Hide resolved
...k/v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/stream/ExpireSnapshots.java
Outdated
Show resolved
Hide resolved
...nk/src/main/java/org/apache/iceberg/flink/maintenance/operator/ExpireSnapshotsProcessor.java
Outdated
Show resolved
Hide resolved
.../flink/src/main/java/org/apache/iceberg/flink/maintenance/stream/MaintenanceTaskBuilder.java
Outdated
Show resolved
Hide resolved
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package org.apache.iceberg.flink.maintenance.stream; |
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 don't know if users would interpret stream
sub package as pubic APIs. It is better to use proper Java class scope for that purpose. public classes are public and non-public classes can be package private.
...1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/operator/AsyncDeleteFiles.java
Outdated
Show resolved
Hide resolved
...nk/src/main/java/org/apache/iceberg/flink/maintenance/operator/ExpireSnapshotsProcessor.java
Show resolved
Hide resolved
...nk/src/main/java/org/apache/iceberg/flink/maintenance/operator/ExpireSnapshotsProcessor.java
Show resolved
Hide resolved
...nk/src/main/java/org/apache/iceberg/flink/maintenance/operator/ExpireSnapshotsProcessor.java
Outdated
Show resolved
Hide resolved
...nk/src/main/java/org/apache/iceberg/flink/maintenance/operator/ExpireSnapshotsProcessor.java
Show resolved
Hide resolved
.../v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/stream/TableMaintenance.java
Outdated
Show resolved
Hide resolved
.../v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/stream/TableMaintenance.java
Outdated
Show resolved
Hide resolved
.../v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/stream/TableMaintenance.java
Outdated
Show resolved
Hide resolved
.../v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/stream/TableMaintenance.java
Outdated
Show resolved
Hide resolved
.../v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/stream/TableMaintenance.java
Outdated
Show resolved
Hide resolved
.../flink/src/test/java/org/apache/iceberg/flink/maintenance/operator/TestAsyncDeleteFiles.java
Outdated
Show resolved
Hide resolved
.../flink/src/test/java/org/apache/iceberg/flink/maintenance/operator/TestAsyncDeleteFiles.java
Outdated
Show resolved
Hide resolved
.../flink/src/test/java/org/apache/iceberg/flink/maintenance/operator/TestAsyncDeleteFiles.java
Outdated
Show resolved
Hide resolved
.../flink/src/test/java/org/apache/iceberg/flink/maintenance/operator/TestAsyncDeleteFiles.java
Outdated
Show resolved
Hide resolved
.../flink/src/test/java/org/apache/iceberg/flink/maintenance/operator/TestAsyncDeleteFiles.java
Outdated
Show resolved
Hide resolved
...20/flink/src/test/java/org/apache/iceberg/flink/maintenance/stream/TestTableMaintenance.java
Outdated
Show resolved
Hide resolved
...20/flink/src/test/java/org/apache/iceberg/flink/maintenance/stream/TestTableMaintenance.java
Outdated
Show resolved
Hide resolved
...20/flink/src/test/java/org/apache/iceberg/flink/maintenance/stream/TestTableMaintenance.java
Outdated
Show resolved
Hide resolved
...20/flink/src/test/java/org/apache/iceberg/flink/maintenance/stream/TestTableMaintenance.java
Outdated
Show resolved
Hide resolved
...20/flink/src/test/java/org/apache/iceberg/flink/maintenance/stream/TestTableMaintenance.java
Outdated
Show resolved
Hide resolved
fa56618
to
2403f44
Compare
flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/api/ExpireSnapshots.java
Outdated
Show resolved
Hide resolved
flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/api/ExpireSnapshots.java
Outdated
Show resolved
Hide resolved
.../flink/src/main/java/org/apache/iceberg/flink/maintenance/operator/DeleteFilesProcessor.java
Outdated
Show resolved
Hide resolved
.../flink/src/main/java/org/apache/iceberg/flink/maintenance/operator/DeleteFilesProcessor.java
Outdated
Show resolved
Hide resolved
.../flink/src/main/java/org/apache/iceberg/flink/maintenance/operator/DeleteFilesProcessor.java
Outdated
Show resolved
Hide resolved
.../v1.20/flink/src/test/java/org/apache/iceberg/flink/maintenance/api/TestExpireSnapshots.java
Outdated
Show resolved
Hide resolved
.../v1.20/flink/src/test/java/org/apache/iceberg/flink/maintenance/api/TestExpireSnapshots.java
Show resolved
Hide resolved
...k/v1.20/flink/src/test/java/org/apache/iceberg/flink/maintenance/api/TestMaintenanceE2E.java
Show resolved
Hide resolved
....20/flink/src/main/java/org/apache/iceberg/flink/maintenance/api/MaintenanceTaskBuilder.java
Outdated
Show resolved
Hide resolved
...nk/src/main/java/org/apache/iceberg/flink/maintenance/operator/ExpireSnapshotsProcessor.java
Show resolved
Hide resolved
flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/api/TableMaintenance.java
Outdated
Show resolved
Hide resolved
@netvl: I'm struggling to find the relevant comment (there are too many of them already), but I would like to ask you to check if the proposed Thanks, |
@rodmeneses: If you have time, I would like to ask you to review the PR. |
....20/flink/src/main/java/org/apache/iceberg/flink/maintenance/api/MaintenanceTaskBuilder.java
Outdated
Show resolved
Hide resolved
....20/flink/src/main/java/org/apache/iceberg/flink/maintenance/api/MaintenanceTaskBuilder.java
Outdated
Show resolved
Hide resolved
....20/flink/src/main/java/org/apache/iceberg/flink/maintenance/api/MaintenanceTaskBuilder.java
Outdated
Show resolved
Hide resolved
flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/api/TableMaintenance.java
Show resolved
Hide resolved
flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/api/TableMaintenance.java
Outdated
Show resolved
Hide resolved
flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/api/TableMaintenance.java
Outdated
Show resolved
Hide resolved
....20/flink/src/main/java/org/apache/iceberg/flink/maintenance/api/MaintenanceTaskBuilder.java
Outdated
Show resolved
Hide resolved
....20/flink/src/main/java/org/apache/iceberg/flink/maintenance/api/MaintenanceTaskBuilder.java
Outdated
Show resolved
Hide resolved
flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/api/ExpireSnapshots.java
Show resolved
Hide resolved
flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/api/TableMaintenance.java
Outdated
Show resolved
Hide resolved
flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/api/TableMaintenance.java
Outdated
Show resolved
Hide resolved
flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/maintenance/api/TableMaintenance.java
Outdated
Show resolved
Hide resolved
TableLoader newTableLoader, | ||
String defaultUidSuffix, | ||
String defaultSlotSharingGroup, | ||
int mainParallelism) { |
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.
this should also be defaultParallelism
?
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.
Done
Merged to main. |
TableManager builder implementation along with the first maintenance task to provide context.
https://docs.google.com/document/d/16g3vR18mVBy8jbFaLjf2JwAANuYOmIwr15yDDxovdnA/edit#heading=h.yd2vbtnf7z6w