[FIXED] JetStream: possible deadlock during consumer leadership change

Would possibly show up when a consumer leader changes for a consumer
that had redelivered messages and for instance messages were inbound
on the stream.

Resolves #2912

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
Ivan Kozlovic
2022-03-24 15:08:57 -06:00
parent edcddfae58
commit 4739eebfc4
5 changed files with 107 additions and 12 deletions

View File

@@ -3,3 +3,5 @@ Here is the list of some established lock ordering.
In this list, A -> B means that you can have A.Lock() then B.Lock(), not the opposite.
jetStream -> jsAccount -> Server -> client-> Account
stream -> consumer