ahmedabu98 commented on code in PR #41248:
URL: https://github.com/apache/beam/pull/41248#discussion_r4747294016


##########
sdks/java/io/iceberg/src/main/java/org/apache/beam/sdk/io/iceberg/SerializableTableSpec.java:
##########
@@ -245,6 +266,10 @@ public FileIO getFileIO() {
   /**
    * Returns a cached {@link FileIO} instance for this table, configured with 
the provided Hadoop
    * {@link Configuration} if supported.
+   *
+   * <p>Specs with the same {@link #getFileIoJson()} and storage credentials 
share one instance,
+   * because each side input update decodes new copies of every spec. The 
shared instance is closed
+   * once no spec that uses it is reachable.

Review Comment:
   Just keep the table spec or SideInputTable alive. Updated the Javadoc to 
mention this



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to