Skip to content

Conversation

@SanjayMarreddi
Copy link
Contributor

Current integration with the S3 Analytics Accelerator Library ( #12299 ) is not closing the S3SeekableInputStreamFactory on S3FileIO close. This PR incorporates that logic by closing it before removing from cache.

@github-actions github-actions bot added the AWS label Apr 24, 2025
Copy link

@rajdchak rajdchak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before invalidating the factories from the cache also we should close the factories.

@SanjayMarreddi
Copy link
Contributor Author

@HonahX @kevinjqliu May I request for a review on this PR please?

return new S3SeekableInputStreamFactory(objectClient, streamConfiguration);
}

private static void handleRemoval(S3SeekableInputStreamFactory factory) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can probably just be inlined, otherwise the naming of the method is a bit misleading, because we're not handling removal inside the method but closing the factory. Alternatively just rename the method to close(..)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, I'll update it to close then.

@SanjayMarreddi SanjayMarreddi force-pushed the close-input-stream-factory branch from 074bf77 to ee79314 Compare May 23, 2025 14:58
@SanjayMarreddi SanjayMarreddi requested a review from nastra May 23, 2025 14:59
@nastra nastra merged commit dd7fa01 into apache:main May 26, 2025
42 checks passed
devendra-nr pushed a commit to devendra-nr/iceberg that referenced this pull request Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants