Skip to content

Commit

Permalink
bring back unsubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
abbccdda committed Mar 6, 2020
1 parent d3c067f commit 12f2349
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -508,11 +508,12 @@ private void runLoop() {
"Will close out all assigned tasks and rejoin the consumer group.");

taskManager.handleLostAll();
mainConsumer.enforceRebalance();
mainConsumer.unsubscribe();
subscribeConsumer();
}
}
}

private void subscribeConsumer() {
if (builder.usesPatternSubscription()) {
mainConsumer.subscribe(builder.sourceTopicPattern(), rebalanceListener);
Expand Down

0 comments on commit 12f2349

Please sign in to comment.