Skip to content

[LI-FIXUP] Bypass cluster metadata auto refresh code path by default - #330

Merged
lmr3796 merged 1 commit into
linkedin:3.0-li-rc1from
lmr3796:fix-metadata-3.0
Apr 6, 2022
Merged

[LI-FIXUP] Bypass cluster metadata auto refresh code path by default#330
lmr3796 merged 1 commit into
linkedin:3.0-li-rc1from
lmr3796:fix-metadata-3.0

Conversation

@lmr3796

@lmr3796 lmr3796 commented Apr 6, 2022

Copy link
Copy Markdown

This should be a fix-up to #316, and the same patch is also made to the 2.4 branch in #329.

The PR #228 attempted to resolve provided bootstrap servers when
the metadata is exceeding a staleness threshold. The config is covered
both on producer and consumer, and default behavior without configured
value is setting the timeout to Long.MAX_VALUE.

However, cruise-control is affected by the behavior as it implements a
similar mechanism on its own and directly uses NetworkClient. The code
would fail if an empty bootstrap server list is passed to NetworkClient, which
is the case for internal use of CC.

To resolve this, this patch aims to make the default value -1, and omit
the code path referencing bootstrap server when we see -1.

EXIT_CRITERIA = When #316 is ejected

More detailed description of your change,
if necessary. The PR title and PR message become
the squashed commit message, so use a separate
comment to ping reviewers.

Summary of testing strategy (including rationale)
for the feature or bug fix. Unit and/or integration
tests are expected for any behaviour change and
system tests should be considered for larger changes.

Committer Checklist (excluded from commit message)

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

This should be a fix up to linkedin#316

The PR linkedin#228 attempted to resolve provided boostrap servers when
the metadata is exceeding a staleness threshold.  The config is coverred
both on producer and consumer, and default behavior without configured
value is setting timeout to Long.MAX_VALUE.

However, cruise-control is affected by the behavior as it implements a
similar mechanism on its own and directly uses of NetworkClient. The code
would fail if empty bootstrap server is passed to NetworkClient, which
is the case for internal use of CC.

To resolve this, this patch aims to make default value as -1, and omit
the code path referencing bootstrap server when we see -1.

EXIT_CRITERIA = When linkedin#316 is ejected
@lmr3796
lmr3796 merged commit 6bd3e9d into linkedin:3.0-li-rc1 Apr 6, 2022
@lmr3796
lmr3796 deleted the fix-metadata-3.0 branch April 6, 2022 21:12
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