Shilun Fan created RATIS-2518:
---------------------------------
Summary: Make testInstallSnapshotDuringBootstrap diagnostics
fail-safe
Key: RATIS-2518
URL: https://issues.apache.org/jira/browse/RATIS-2518
Project: Ratis
Issue Type: Sub-task
Components: gRPC
Reporter: Shilun Fan
Assignee: Shilun Fan
RATIS-2501 improved diagnostics for `testInstallSnapshotDuringBootstrap`
timeout/failure cases by adding `dumpClusterState()`.
However, the diagnostic code may access raft log state from a peer whose raft
log has already been closed. In that case, the diagnostic path itself may throw
an `IllegalStateException`, for example:
{code:java}
[email protected] is expected to be opened but it is CLOSED {code}
This secondary exception hides the original `setConfiguration` failure and
makes the CI log less useful.
This follow-up makes the diagnostic path fail-safe. If some cluster/server/log
state is unavailable during failure handling, the diagnostic dump should print
an `unavailable` value instead of throwing another exception.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)