-
Notifications
You must be signed in to change notification settings - Fork 56
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
Unsubscribe on partition reassignment #1021
Conversation
@@ -533,7 +536,8 @@ final class KafkaCacheServerConsumerFanout | |||
private final long routedId; | |||
private final long authorization; | |||
private final ArrayList<KafkaCacheServerConsumerStream> streams; | |||
private final Object2ObjectHashMap<String, String> members; | |||
private final Map<String, String> members; | |||
private final ObjectHashSet<String> tempMembers; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private final ObjectHashSet<String> tempMembers; | |
private final ObjectHashSet<String> memberIds; |
@@ -578,7 +582,8 @@ private KafkaCacheServerConsumerFanout( | |||
this.groupId = groupId; | |||
this.timeout = timeout; | |||
this.streams = new ArrayList<>(); | |||
this.members = new Object2ObjectHashMap<>(); | |||
this.tempMembers = new ObjectHashSet<>(); | |||
this.members = new LinkedHashMap<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we switching to LinkedHashMap
to maintain insertion order, or for putIfAbsent
?
Note: putIfAbsent is also available on Object2ObjectHashMap
, inherited from Map
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to maintain insertion order
KafkaDataExFW extension) | ||
Flyweight extension) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change necessary?
Description
Unsubscribe on partition reassignment
Fixes #882