Skip to content

Do not panic when the in-flight view complains - #708

Merged
pfi79 merged 1 commit into
hyperledger:mainfrom
HagarMeir:fix/inflight-view-complain
Oct 18, 2026
Merged

pfi79 merged 1 commit into
hyperledger:mainfrom
HagarMeir:fix/inflight-view-complain

Conversation

@HagarMeir

Copy link
Copy Markdown
Contributor

Written by Claude (Anthropic's AI assistant) on behalf of Hagar Meir.

Fixes #707.

The view that commits the in-flight proposal after a view change uses the view changer as its failure detector, and ViewChanger.Complain panicked. The view complains when it gets a message with a different view number from its leader. For this view, the leader is the node itself. After complaining, the view stops, and it syncs if the message is from a newer view, like any other view. So nothing requires crashing the node.

Changes

  • ViewChanger.Complain logs a warning instead of panicking.
  • TestInFlightViewMessageFromItselfWithWrongView starts the in-flight view and delivers it a commit for a newer view, with the node's own ID as the sender. It checks that the node doesn't panic, and that the view stops and syncs. On main it panics.

🤖 Generated with Claude Code

The view that commits the in-flight proposal after a view change uses
the view changer as its failure detector, and ViewChanger.Complain
panicked. The view complains when it gets a message with a wrong view
number from its leader, which for this view is the node itself, and
then stops (and syncs if the message is from a newer view) like any
other view. There is no reason to crash the node, so log a warning
instead.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Hagar Meir <hagar.meir@ibm.com>
@HagarMeir
HagarMeir force-pushed the fix/inflight-view-complain branch from 12ab08f to cb49e94 Compare October 18, 2026 09:48
@pfi79
pfi79 merged commit 038c351 into hyperledger:main Oct 18, 2026
6 checks passed
@HagarMeir
HagarMeir deleted the fix/inflight-view-complain branch October 18, 2026 11:03
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.

The view of the in-flight proposal panics the node when it complains

2 participants