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

feat: configurable chunk size #117

Merged

Conversation

git-masoud
Copy link
Contributor

What this PR changes/adds

Chunk size can be configured via the EDC configuration.

Why it does that

Currently, the chunk size in the data sink is hard coded to 500MB as CHUNK_SIZE_IN_BYTES. This could limit users in particular environments with constrained memory resources.

Linked Issue(s)

Closes #112

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

We are always happy to welcome new contributors ❤️ To make things easier for everyone, please make sure to follow our contribution guidelines, check if you have already signed the ECA, and relate this pull request to an existing issue or discussion.

@git-masoud git-masoud changed the title Feature/112 configurable chunk size feat: configurable chunk size Oct 25, 2023
@codecov-commenter
Copy link

codecov-commenter commented Oct 25, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (91b6d3d) 80.29% compared to head (2fb3be7) 80.16%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #117      +/-   ##
==========================================
- Coverage   80.29%   80.16%   -0.13%     
==========================================
  Files          19       19              
  Lines         477      484       +7     
  Branches       15       17       +2     
==========================================
+ Hits          383      388       +5     
- Misses         92       93       +1     
- Partials        2        3       +1     
Files Coverage Δ
...pse/edc/connector/dataplane/aws/s3/S3DataSink.java 96.42% <100.00%> (+0.13%) ⬆️
.../connector/dataplane/aws/s3/S3DataSinkFactory.java 100.00% <100.00%> (ø)
...nnector/dataplane/aws/s3/DataPlaneS3Extension.java 84.61% <60.00%> (-15.39%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@git-masoud git-masoud added the enhancement New feature or request label Oct 25, 2023
@git-masoud git-masoud requested a review from ndr-brt October 25, 2023 13:33
@git-masoud git-masoud requested a review from ndr-brt October 26, 2023 08:33
@ndr-brt ndr-brt merged commit 170bfe1 into eclipse-edc:main Oct 27, 2023
14 checks passed
@git-masoud git-masoud deleted the feature/112_configurable_chunk_size branch October 27, 2023 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configurable chunk size
4 participants