mirror of
https://github.com/apache/druid.git
synced 2025-02-17 07:25:02 +00:00
fix auto reset - pause task instead of putting thread to sleep (#4244)
This commit is contained in:
parent
eb8e1b0a97
commit
1fd177039d
@ -1063,10 +1063,10 @@ public class KafkaIndexTask extends AbstractTask implements ChatHandler
|
||||
.emit();
|
||||
// wait for being killed by supervisor
|
||||
try {
|
||||
Thread.sleep(Long.MAX_VALUE);
|
||||
pause(-1);
|
||||
}
|
||||
catch (InterruptedException e) {
|
||||
throw new RuntimeException("Got interrupted while waiting to be killed");
|
||||
throw new RuntimeException("Got interrupted while pausing task");
|
||||
}
|
||||
} else {
|
||||
log.makeAlert("Failed to send reset request for partitions [%s]", partitionOffsetMap.keySet()).emit();
|
||||
|
Loading…
x
Reference in New Issue
Block a user