-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix cache refreshing in DynamicIcebergSink #14406
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
Conversation
|
@pvary Could you please take a look at this one as well? |
flink/v2.0/flink/src/main/java/org/apache/iceberg/flink/sink/dynamic/TableMetadataCache.java
Outdated
Show resolved
Hide resolved
flink/v2.0/flink/src/main/java/org/apache/iceberg/flink/sink/dynamic/TableMetadataCache.java
Outdated
Show resolved
Hide resolved
flink/v2.0/flink/src/main/java/org/apache/iceberg/flink/sink/dynamic/TableMetadataCache.java
Outdated
Show resolved
Hide resolved
flink/v2.0/flink/src/main/java/org/apache/iceberg/flink/sink/dynamic/TableMetadataCache.java
Outdated
Show resolved
Hide resolved
...k/v2.0/flink/src/test/java/org/apache/iceberg/flink/sink/dynamic/TestTableMetadataCache.java
Outdated
Show resolved
Hide resolved
...k/v2.0/flink/src/test/java/org/apache/iceberg/flink/sink/dynamic/TestTableMetadataCache.java
Outdated
Show resolved
Hide resolved
flink/v2.0/flink/src/main/java/org/apache/iceberg/flink/sink/dynamic/TableMetadataCache.java
Show resolved
Hide resolved
|
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. |
f61d755 to
f84408c
Compare
f84408c to
9df6544
Compare
The table cache should only refresh after it exists longer than the configured refresh interval. Not the opposite. Change-Id: I04fa10b291c9f839911e242f25969698bcb4a386
9df6544 to
591049e
Compare
|
Merged to main. |
flink/v2.0/flink/src/main/java/org/apache/iceberg/flink/sink/dynamic/TableMetadataCache.java
Show resolved
Hide resolved
|
@aiborodin: Do we want to see this in 1.10.1? |
|
+1 Let's port this to 1.10.1. |
|
Thank you for the review @pvary! |
(cherry picked from commit 8db3d21)
Backport apache#14406 (cherry picked from commit c4ba60d)
The
TableMetadataCacheinDynamicIcebergSinkshould only refresh an entry after it exists longer than a configured refresh interval. Not the opposite.