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 ZK client timeouts configurable #1380

Merged
merged 4 commits into from Feb 10, 2020
Merged

Make ZK client timeouts configurable #1380

merged 4 commits into from Feb 10, 2020

Conversation

pawellozinski
Copy link
Contributor

For build servers with high load, it may happen that the build hangs for couple of seconds. This causes the internal ZK client session of embedded Kafka broker to timeout and fail the build.

It would be good if these were configurable.

Copy link
Contributor

@garyrussell garyrussell left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

We also like to provide builder pattern methods for properties like this:

public EmbeddedKafkaBroker zkClientTimeouts(...) {...}

We should also add these properties to @EmbeddedKafkaBroker with corresponding changes in the EmbeddedKafkaContextCustomizer and the EmbeddedKafkaCondition to set the properties in the broker.

Let me know if you want to do this extra work or whether we should take it from here.

Thanks again; looking forward to more.

@pawellozinski
Copy link
Contributor Author

Hi @garyrussell , sure, happy to take this forward. Didn't you mean @EmbeddedKafka?

@garyrussell
Copy link
Contributor

Sorry. Yes @embeddedkafka.

@pawellozinski pawellozinski mentioned this pull request Feb 10, 2020
Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

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

Please, add your name to the @author list, update copyright to the current year and @since to all the new API in all the affected class.

Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

@garyrussell garyrussell left a comment

Choose a reason for hiding this comment

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

LGTM; thanks!

@garyrussell garyrussell merged commit db1ca60 into spring-projects:master Feb 10, 2020
garyrussell pushed a commit that referenced this pull request Feb 10, 2020
* Make ZK client timeouts configurable

* Wire ZK clients timeouts to @embeddedkafka properties

* Splitting the ZK client timeout properties, @author

* @SInCE on new API
@garyrussell
Copy link
Contributor

And cherry-picked as abf2bfe to 2.3.x with deprecated ZkClient fix.

Thanks again @pawellozinski

@pawellozinski
Copy link
Contributor Author

👍

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.

None yet

3 participants