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

[ADDED] JetStream domain elected advisory for when we have a new meta leader. #5041

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

derekcollison
Copy link
Member

Signed-off-by: Derek Collison derek@nats.io

…a-leader.

Signed-off-by: Derek Collison <derek@nats.io>
TypedEvent: TypedEvent{
Type: JSDomainLeaderElectedAdvisoryType,
ID: nuid.Next(),
Time: time.Now().UTC(),
Copy link
Member

Choose a reason for hiding this comment

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

Should this time stamp be obtained while the lock is held, so that we don't report that at time T the leader was in one place when it had actually already moved out, or do we go "it's second resolution, you can't rely on that for anything but informational purposes in the context of subscribing to a complete stream"?

Copy link
Member Author

Choose a reason for hiding this comment

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

We are getting the group leader right behind it, so do not think its an issue per se.

Signed-off-by: Derek Collison <derek@nats.io>
Copy link
Contributor

@ripienaar ripienaar left a comment

Choose a reason for hiding this comment

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

LGTM

@derekcollison derekcollison merged commit 9fd5247 into main Feb 7, 2024
4 checks passed
@derekcollison derekcollison deleted the domain-advisory branch February 7, 2024 18:11
wallyqs added a commit that referenced this pull request Feb 14, 2024
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.

None yet

3 participants