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

Error handling in metaSnapshot #6361

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Error handling in metaSnapshot #6361

merged 1 commit into from
Jan 10, 2025

Conversation

neilalexander
Copy link
Member

Since we use MarshalJSON() on some types, we must be careful that a JSON marshalling error cannot be dropped.

Signed-off-by: Neil Twigg neil@nats.io

@neilalexander neilalexander requested a review from a team as a code owner January 10, 2025 09:39
Copy link
Member

@MauriceVanVeen MauriceVanVeen left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@wallyqs wallyqs left a comment

Choose a reason for hiding this comment

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

LGTM

Since we use `MarshalJSON()` on some types, we must be careful that a
JSON marshalling error cannot be dropped, resulting in an empty snapshot.

Signed-off-by: Neil Twigg <neil@nats.io>
@derekcollison derekcollison merged commit 05d5f87 into main Jan 10, 2025
5 checks passed
@derekcollison derekcollison deleted the neil/metasnapshoterr branch January 10, 2025 22:14
neilalexander added a commit that referenced this pull request Jan 13, 2025
Includes the following:

- #6361
- #6362
- #6364
- #6367

Signed-off-by: Neil Twigg <neil@nats.io>
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.

4 participants