-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Core: Add FileIO tracker/closer to REST catalog #7487
Conversation
c462e42
to
06a4b5b
Compare
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java
Outdated
Show resolved
Hide resolved
CI seems to fail due to |
06a4b5b
to
8c101e9
Compare
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java
Outdated
Show resolved
Hide resolved
.removalListener( | ||
(RemovalListener<TableOperations, FileIO>) | ||
(ops, fileIO, cause) -> { | ||
if (null != fileIO) { |
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.
Why would fileIO
be null?
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.
the API contract of the RemovalListener
marks keys/values as being @Nullable
: void onRemoval(@Nullable K key, @Nullable V value, @NonNull RemovalCause cause);
Since we're not using weakValues()
here the value shouldn't be null as indicated by the Javadoc, so this is rather to be defensive and avoid warnings in IntelliJ (we have the same warning a few lines above in the session cache btw)
8c101e9
to
e014c43
Compare
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java
Outdated
Show resolved
Hide resolved
e014c43
to
60cf024
Compare
60cf024
to
803e990
Compare
Thanks for fixing this, @nastra! Good to have it in. |
No description provided.