chore(raft): ignore e2e test binary, stop raft network on shutdown
CI / test (push) Has been cancelled
CI / verify (push) Has been cancelled
Clients CI / build-server (push) Has been cancelled
Clients CI / test-python (push) Has been cancelled
Clients CI / test-javascript (push) Has been cancelled
Clients CI / test-nim (push) Has been cancelled
Clients CI / test-rust (push) Has been cancelled
CI / test (push) Has been cancelled
CI / verify (push) Has been cancelled
Clients CI / build-server (push) Has been cancelled
Clients CI / test-python (push) Has been cancelled
Clients CI / test-javascript (push) Has been cancelled
Clients CI / test-nim (push) Has been cancelled
Clients CI / test-rust (push) Has been cancelled
This commit is contained in:
@@ -14,6 +14,7 @@ tests/fuzz_test
|
||||
tests/prop_test
|
||||
tests/bugfix_test
|
||||
tests/nimforum_smoke_test
|
||||
tests/raft_e2e_test
|
||||
benchmarks/bench_all
|
||||
benchmarks/compare
|
||||
clients/nim/tests/test_client
|
||||
|
||||
+4
-1
@@ -328,6 +328,7 @@ proc main() =
|
||||
var tcpServer = newServerWithRegistry(config, registry)
|
||||
|
||||
# Start Raft cluster if enabled
|
||||
var raftNet: RaftNetwork = nil
|
||||
if config.raftEnabled:
|
||||
info("Starting Raft node " & config.raftNodeId & " on port " & $config.raftPort)
|
||||
let raftDataDir = config.dataDir / "raft"
|
||||
@@ -357,7 +358,7 @@ proc main() =
|
||||
# Wire replication ↔ DistTxn
|
||||
wireReplicationDistTxn(tcpServer.replicationManager, tcpServer.distTxnManager)
|
||||
|
||||
var raftNet = newRaftNetwork(raftNode)
|
||||
raftNet = newRaftNetwork(raftNode)
|
||||
asyncCheck raftNet.run()
|
||||
|
||||
# Start replication health check and reconnection loops
|
||||
@@ -386,6 +387,8 @@ proc main() =
|
||||
tcpServer.stop()
|
||||
if tcpServer.gossipProtocol != nil:
|
||||
tcpServer.gossipProtocol.stop()
|
||||
if raftNet != nil:
|
||||
raftNet.stop()
|
||||
withStorageGate:
|
||||
registry.closeAll()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user