Skip to content

MINOR: Configure reconnect backoff in BrokerToControllerChannelManager#9709

Merged
hachikuji merged 1 commit intoapache:trunkfrom
hachikuji:add-reconnect-backoff-to-broker-controller-channel
Dec 8, 2020
Merged

MINOR: Configure reconnect backoff in BrokerToControllerChannelManager#9709
hachikuji merged 1 commit intoapache:trunkfrom
hachikuji:add-reconnect-backoff-to-broker-controller-channel

Conversation

@hachikuji
Copy link
Copy Markdown
Contributor

We should configure a reconnect backoff for controller connections to prevent tight reconnect loops when the controller cannot be reached. I have borrowed the same configuration we use in TransactionMarkerChannelManager.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@chia7712
Copy link
Copy Markdown
Member

chia7712 commented Dec 8, 2020

kafka.api.TransactionsTest.testBumpTransactionalEpoch is traced by #9291 - ping for reviews BTW :)

Copy link
Copy Markdown
Member

@mumrah mumrah left a comment

Choose a reason for hiding this comment

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

I believe the constructor calls here were copied from ControllerChannelManager. Do we want to add a reconnect backoff max there as well?

As a side note, we probably want a better way of setting up these classes that always go together (ChannelBuilder, Selector, NetworkClient).

@hachikuji
Copy link
Copy Markdown
Contributor Author

@mumrah Yeah, I noticed that too. I think ControllerChannelManager uses more of a synchronous backoff approach, so I left it as is.

@hachikuji hachikuji merged commit 153bbb8 into apache:trunk Dec 8, 2020
hachikuji added a commit that referenced this pull request Dec 15, 2020
…er` (#9709)

We should configure a reconnect backoff for controller connections to prevent tight reconnect loops when the controller cannot be reached. I have borrowed the same configuration we use in `TransactionMarkerChannelManager`.

Reviewers: David Arthur <mumrah@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>, Boyang Chen <boyang@confluent.io>
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