add test rebalance for killconsumers
Some checks failed
test / test (pull_request) Failing after 16m5s
lint / lint (pull_request) Failing after 16m17s
coverage / build (pull_request) Failing after 16m22s

This commit is contained in:
Evstigneev Denis
2025-12-10 16:34:44 +03:00
parent 2919dd5994
commit f98811b93e
2 changed files with 156 additions and 1 deletions

View File

@@ -119,7 +119,7 @@ func (s *Subscriber) poll(ctx context.Context) {
}
fetches.EachError(func(t string, p int32, err error) {
tps := tp{t, p}
s.mu.Lock()
s.mu.RLock()
c := s.consumers[tps]
s.mu.RUnlock()
if c != nil {