-
Notifications
You must be signed in to change notification settings - Fork 69
Unsubscribe on partition reassignment #1021
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
Conversation
| 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; |
| 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