Antithesis found a case where if a server was hard killed and would replay RAFT append entries during startup, if it would then be SIGTERM-ed while the RAFT recovery is running, the acc.lookupStream that happens in js.processClusterCreateStream resulted in a JetStream not enabled for account error. Which would then delete the RAFT state.
There are also other errors that could pop up, so either way; if we're shutting down, don't delete the RAFT state.
Antithesis found a case where if a server was hard killed and would replay RAFT append entries during startup, if it would then be SIGTERM-ed while the RAFT recovery is running, the
acc.lookupStream
that happens injs.processClusterCreateStream
resulted in aJetStream not enabled for account
error. Which would then delete the RAFT state.There are also other errors that could pop up, so either way; if we're shutting down, don't delete the RAFT state.
Signed-off-by: Maurice van Veen github@mauricevanveen.com