Skip to content

Fix election RPC timeout handling#112

Open
antonio2368 wants to merge 1 commit into
masterfrom
fix-nuraft-election-rpc-timeout
Open

Fix election RPC timeout handling#112
antonio2368 wants to merge 1 commit into
masterfrom
fix-nuraft-election-rpc-timeout

Conversation

@antonio2368
Copy link
Copy Markdown
Member

Summary

Fix election RPCs so failed or timed-out pre-vote and vote requests clean up peer state instead of leaving peers stuck busy.

Changes

  • Pass election RPC timeouts through peer::send_req.
  • Convert synchronous RPC send/setup failures into the normal RPC error path.
  • Move peer cleanup before user callback invocation, since callbacks run synchronously and may throw.
  • Add focused tests for stale election busy state and callback-once cleanup paths.

Apply election RPC timeouts through peer sends and ensure ASIO RPC errors clean up peer state before invoking callbacks.

Add resolver-phase timeout handling so custom and ASIO resolution cannot leave election RPCs stuck busy, and cover stale/late resolver callbacks with tests.
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.

1 participant