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

Fix false positive ownership check in OwnershipCache#checkOwnership #12650

Merged
merged 1 commit into from
Nov 6, 2021

Conversation

Jason918
Copy link
Contributor

@Jason918 Jason918 commented Nov 6, 2021

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