-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PIP-379] DrainingHashEntry.refCount will increase when hashes move between existing consumers #23421
Comments
This is already covered. While the hash is assigned to another consumer, the "draining hash" entry can only be assigned to a single consumer at a time. The reference count won't get increased for other consumers. several locations: pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/DrainingHashesTracker.java Lines 197 to 201 in 38c1b79
Lines 344 to 352 in d5795d2
This is for the reassignment case: pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/DrainingHashesTracker.java Lines 294 to 302 in 38c1b79
|
Closing this as a non-issue. /cc @equanz |
Background
drainingHashesTracker.addEntry(c, stickyKeyHash)
will increase the variableDrainingHashEntry.refCount
.Issue: the variable named
DrainingHashEntry.refCount
will be increased repeatedly at the following scenario:C1
, assignk1
toC1
C2
, movek1
toC2
DrainingHashEntry.refCount
increasesC3
, movek1
toC3
DrainingHashEntry.refCount
increasesOriginally posted by @poorbarcode in #23352 (comment)
The text was updated successfully, but these errors were encountered: