mirror of https://github.com/apache/kafka.git
MINOR: Update incorrect / misleading comment regarding rebalance exceptions in WorkerSinkTask (#13194)
Reviewers: Chris Egerton <chrise@aiven.io>
This commit is contained in:
parent
b8e606355b
commit
6e2b86597d
|
@ -474,7 +474,7 @@ class WorkerSinkTask extends WorkerTask {
|
|||
private ConsumerRecords<byte[], byte[]> pollConsumer(long timeoutMs) {
|
||||
ConsumerRecords<byte[], byte[]> msgs = consumer.poll(Duration.ofMillis(timeoutMs));
|
||||
|
||||
// Exceptions raised from the task during a rebalance should be rethrown to stop the worker
|
||||
// Exceptions raised from the task during a rebalance should be rethrown to stop the task and mark it as failed
|
||||
if (rebalanceException != null) {
|
||||
RuntimeException e = rebalanceException;
|
||||
rebalanceException = null;
|
||||
|
|
Loading…
Reference in New Issue