Skip to content

Fix panic in monitorConsumer if meta nil #6823

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

Merged
merged 1 commit into from
Apr 23, 2025
Merged

Fix panic in monitorConsumer if meta nil #6823

merged 1 commit into from
Apr 23, 2025

Conversation

neilalexander
Copy link
Member

The equivalent in monitorStream already has this exact check but it never made its way into monitorConsumer seemingly. Buildkite runs picked up a panic here.

Signed-off-by: Neil Twigg [email protected]

@neilalexander neilalexander requested a review from a team as a code owner April 23, 2025 15:07
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

Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM - Small nit on using function to get meta NRG

@@ -4737,7 +4737,11 @@ func (js *jetStream) monitorConsumer(o *consumer, ca *consumerAssignment) {

defer o.clearMonitorRunning()

if n == nil {
js.mu.RLock()
Copy link
Member

Choose a reason for hiding this comment

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

func (js *jetStream) getMetaGroup() RaftNode

The equivalent in `monitorStream` already has this exact check but it never
made its way into `monitorConsumer` seemingly. Buildkite runs picked up a
panic here.

Signed-off-by: Neil Twigg <[email protected]>
@neilalexander neilalexander merged commit d9330a0 into main Apr 23, 2025
159 of 172 checks passed
@neilalexander neilalexander deleted the neil/ccmeta branch April 23, 2025 16:08
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.

3 participants