Skip to content

Conversation

@acogoluegnes
Copy link
Contributor

A channel message may have been closed by the time a metrics method is called (e.g. when cancelling a consumer the metrics collector is called after the RPC is completed), so the channel state may no longer be there.

This commit null-proofs methods rely on the channel state retrieval.

Fixes #1592

A channel message may have been closed by the time a metrics method is
called (e.g. when cancelling a consumer the metrics collector is called
after the RPC is completed), so the channel state may no longer be
there.

This commit null-proofs methods rely on the channel state retrieval.

Fixes #1592
@acogoluegnes acogoluegnes merged commit 898d681 into main May 6, 2025
6 checks passed
@acogoluegnes acogoluegnes deleted the null-proof-channel-state-retrieval-in-metrics branch May 6, 2025 15:43
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.

NullPointerException in AbstractMetricsCollector basicCancel method due to race condition in ChannelN basicCancel method

2 participants