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

Make s3 partition size configurable and add unit test for S3 partition creator classes #4437

Merged
merged 2 commits into from
Apr 18, 2024

Conversation

dinujoh
Copy link
Member

@dinujoh dinujoh commented Apr 18, 2024

Make s3 partition size configurable and add unit test for S3 partition creator classes

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

graytaylor0
graytaylor0 previously approved these changes Apr 18, 2024
@JsonProperty("export")
private boolean export;

@JsonProperty("export_partition_size")
Copy link
Member

Choose a reason for hiding this comment

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

What does this mean exactly?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is the number of records of chunk size the export partition worker will work on when it executes query to DocDB/Mongo. The export workers run in parallel and they work on independent chunk of data.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Does it make sense to call it export_batch_size instead? For two reasons:

  1. The "partition" here (chunk of data queried from DocDB) is different from the "partition" (folder) in partition_count defined below, which can cause confusion.
  2. We have a corresponding stream_batch_size parameter.

Copy link
Member Author

Choose a reason for hiding this comment

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

updated to export_batch_size

Copy link
Collaborator

@oeyh oeyh left a comment

Choose a reason for hiding this comment

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

Looks good. One comment about the parameter name above.

@dinujoh dinujoh merged commit a17dbe5 into opensearch-project:main Apr 18, 2024
47 checks passed
kkondaka pushed a commit to kkondaka/kk-data-prepper-f2 that referenced this pull request Apr 22, 2024
…n creator classes (opensearch-project#4437)

* Make s3 partition size configurable and add unit test for S3 partition creator classes

Signed-off-by: Dinu John <[email protected]>

* Rename export partition size to export batch size

Signed-off-by: Dinu John <[email protected]>

---------

Signed-off-by: Dinu John <[email protected]>
@kkondaka kkondaka added this to the v2.8 milestone May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants