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 max partition fetch bytes configurable #3115

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

kkondaka
Copy link
Collaborator

@kkondaka kkondaka commented Aug 4, 2023

Description

Make max partition fetch bytes configurable. Added config option to set max partition fetch bytes.
Also fixed the code to honor configured values for fetch bytes min and max poll interval.
Also fixed code to get authentication config only once and not for every topic.

Issues Resolved

[List any issues this PR will resolve]

Check List

  • [ X] New functionality includes testing.
  • New functionality has been documented.
    • New functionality has javadoc added
  • [ X] 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.

@@ -92,6 +93,9 @@ public class TopicConfig {
@JsonProperty("max_record_fetch_time")
private Duration maxRecordFetchTime = DEFAULT_MAX_RECORD_FETCH_TIME;

@JsonProperty("max_partition_fetch_bytes")
private Integer maxPartitionFetchBytes = DEFAULT_MAX_PARTITION_FETCH_BYTES;
Copy link
Member

Choose a reason for hiding this comment

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

We should make use of Data Prepper's ByteCount type. See #3099 for an example of using this in the CloudWatch logs config.

@kkondaka kkondaka merged commit c75ed7b into opensearch-project:main Aug 4, 2023
22 of 24 checks passed
@kkondaka kkondaka deleted the kafka-fix branch May 13, 2024 05:52
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.

3 participants