We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98c78e7 commit 0629955Copy full SHA for 0629955
lib/kafka-consumer.js
@@ -62,9 +62,17 @@ function KafkaConsumer(conf, topicConf) {
62
// That's it
63
try {
64
if (err.code === -175 /*ERR__ASSIGN_PARTITIONS*/) {
65
- self.assign(assignment);
+ if (self.rebalanceProtocol() === 'COOPERATIVE') {
66
+ self.incrementalAssign(assignment);
67
+ } else {
68
+ self.assign(assignment);
69
+ }
70
} else if (err.code === -174 /*ERR__REVOKE_PARTITIONS*/) {
- self.unassign();
71
72
+ self.incrementalUnassign(assignment);
73
74
+ self.unassign();
75
76
}
77
} catch (e) {
78
// Ignore exceptions if we are not connected
0 commit comments