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][broker] Handle heartbeat namespace in ExtensibleLoadManager #20551

Conversation

Demogorgon314
Copy link
Member

PIP: #16691

Motivation

The heartbeat namespace bundle requires acquiring ownership when broker starts,
however, the ExtensibleLoadManager does not handle this case,
we should register the heartbeat namespace to let the health check work.

Modifications

  • Add tryAcquiringOwnership method to acquire the local broker ownership

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@Demogorgon314 Demogorgon314 added type/bug The PR fixed a bug or issue reported a bug area/broker release/3.0.1 labels Jun 9, 2023
@Demogorgon314 Demogorgon314 self-assigned this Jun 9, 2023
@Demogorgon314 Demogorgon314 requested a review from eolivelli June 9, 2023 13:15
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jun 9, 2023
@Demogorgon314 Demogorgon314 force-pushed the Demogorgon314/handle_heartbeat_namespace branch from 115ca33 to 7aa18bd Compare June 9, 2023 13:33
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

+1

Copy link
Contributor

@heesung-sn heesung-sn left a comment

Choose a reason for hiding this comment

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

Lgtm. Great work!

}
return CompletableFuture.completedFuture(brokerLookupData);
}));
private CompletableFuture<Optional<BrokerLookupData>> getBrokerLookupData(
Copy link
Contributor

Choose a reason for hiding this comment

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

yes, the same idea with @mattisonchao

Copy link
Member Author

Choose a reason for hiding this comment

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

The serviceUnitStateChannel.getChannelOwnerAsync() will return Optional, so we can change this method.

@Demogorgon314 Demogorgon314 force-pushed the Demogorgon314/handle_heartbeat_namespace branch from a213c69 to 972d640 Compare June 12, 2023 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/broker cherry-picked/branch-3.0 doc-not-needed Your PR changes do not impact docs ready-to-test release/3.0.1 type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants