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

Set active for Sources and Mirrors to -1 on no contact #2903

Merged
merged 1 commit into from Mar 6, 2022

Conversation

derekcollison
Copy link
Member

If we had not heard from a source or mirror we would still calculated active.
This would wrap and create a large number which overflowed JSON's 2^53 limit.
This would cause schema violations in the NATS cli.

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

/cc @nats-io/core

…the delta since now.

This would wrap and create a large number which overflowed JSON's 2^53 limit.

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 guess I have to see what the CLI does with this new behaviour but for sure better than past behaviour

Copy link
Member

@kozlovic kozlovic 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 d52f607 into main Mar 6, 2022
@derekcollison derekcollison deleted the active_wrap branch March 6, 2022 17:45
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