nats-io / nats-server

High-Performance server for NATS.io, the cloud and edge native messaging system.
https://nats.io
Apache License 2.0
16k stars 1.41k forks source link

De-flake TestJetStreamClusterInterestLeakOnDisableJetStream, RAFT groups close asynchronously #6096

Closed MauriceVanVeen closed 1 week ago

MauriceVanVeen commented 1 week ago

RAFT group's subs are closed asynchronously, so there could be some left when checking right after calling server.DisableJetStream(). Eventually all subs should be gone.

Signed-off-by: Maurice van Veen github@mauricevanveen.com