mirror of https://github.com/apache/druid.git
avoid logging pause message multiple times (#11375)
In some instances the ingestion thread could be woken up spuriously, resulting in the "Received pause command..." log message getting logged multiple times. This change ensures we only log it once the first time the pause is requested.
This commit is contained in:
parent
f0b105ec63
commit
c8b3f8cc00
|
@ -1279,8 +1279,8 @@ public abstract class SeekableStreamIndexTaskRunner<PartitionIdType, SequenceOff
|
|||
status = Status.PAUSED;
|
||||
hasPaused.signalAll();
|
||||
|
||||
log.debug("Received pause command, pausing ingestion until resumed.");
|
||||
while (pauseRequested) {
|
||||
log.debug("Received pause command, pausing ingestion until resumed.");
|
||||
shouldResume.await();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue