Skip to content

Fix false positive ownership check in OwnershipCache#checkOwnership - #12650

Merged
merlimat merged 1 commit into
apache:branch-2.8from
Jason918:fix_checkOwnership
Nov 6, 2021
Merged

Fix false positive ownership check in OwnershipCache#checkOwnership#12650
merlimat merged 1 commit into
apache:branch-2.8from
Jason918:fix_checkOwnership

Conversation

@Jason918

@Jason918 Jason918 commented Nov 6, 2021

Copy link
Copy Markdown
Contributor

Motivation

In OwnershipCache#checkOwnership, it will lookup in zk (resolveOwnership) if we can not find owner info in local cache.
It is possible that the bundle owner could be other brokers when resolveOwnership returning non-empty result.

PS. It's just on branch 2.8
In 2.9, the resolveOwnership method is removed.

Modifications

Just revert this code line to previous version, which should be correct.

Verifying this change

  • [] Make sure that the change passes the CI checks.

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

Check the box below and label this PR (if you have committer privilege).

Need to update docs?

  • no-need-doc

Bug fix, no user behavior changed.

@Jason918 Jason918 changed the title Fix tfalse positive ownership check in OwnershipCache#checkOwnership Fix false positive ownership check in OwnershipCache#checkOwnership Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants