Skip to content
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

Destination S3V2: Fix: File xfer uses part size for part, not file size #52662

Merged
merged 1 commit into from
Feb 2, 2025

Conversation

johnny-schmidt
Copy link
Contributor

What

This probably fixes the oom issue on large files

@johnny-schmidt johnny-schmidt requested a review from a team as a code owner January 30, 2025 19:13
Copy link

vercel bot commented Jan 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 31, 2025 0:36am

@@ -44,7 +44,7 @@ class FilePartAccumulator(

while (true) {
val bytePart =
ByteArray(ObjectStorageUploadConfiguration.DEFAULT_FILE_SIZE_BYTES.toInt())
ByteArray(ObjectStorageUploadConfiguration.DEFAULT_PART_SIZE_BYTES.toInt())
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this class be reading from the ObjectStorageUploadConfiguration instead of referencing the constant directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

@johnny-schmidt johnny-schmidt force-pushed the jschmidt/s3v2/fix-file-transfer-part-size branch from 9802a01 to bef31d1 Compare January 31, 2025 00:29
@@ -6,7 +6,7 @@ plugins {
airbyteBulkConnector {
core = 'load'
toolkits = ['load-s3', 'load-avro', 'load-aws']
cdk = '0.296'
cdk = 'local'
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's repin the cdk after ya?

@johnny-schmidt johnny-schmidt merged commit a9a63c6 into master Feb 2, 2025
31 checks passed
@johnny-schmidt johnny-schmidt deleted the jschmidt/s3v2/fix-file-transfer-part-size branch February 2, 2025 21:20
karolur pushed a commit to karolur/airbyte that referenced this pull request Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues CDK Connector Development Kit connectors/destination/s3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants