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 maxRebalanceDuration configurable #1118

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Make maxRebalanceDuration configurable #1118

merged 1 commit into from
Nov 29, 2023

Conversation

erikvanoosten
Copy link
Collaborator

No description provided.

@@ -29,6 +29,7 @@ final case class ConsumerSettings(
rebalanceListener: RebalanceListener = RebalanceListener.noop,
restartStreamOnRebalancing: Boolean = false,
rebalanceSafeCommits: Boolean = false,
maxRebalanceDuration: Option[Duration] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not have the default duration here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because the default depends on maxPollInterval for which the default is fetched in RunloopAccess.

There are other options:

  • store a function in ConsumerSettings (maxPollInterval => maxBalanceDuration)
  • fetch the default maxPollInterval in ConsumerSettings doesn't work, it depends on the properties

@erikvanoosten erikvanoosten merged commit 8ab0c96 into master Nov 29, 2023
14 checks passed
@erikvanoosten erikvanoosten deleted the more-config branch November 29, 2023 09:24
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.

2 participants