abhishekagarwal87 commented on code in PR #13313:
URL: https://github.com/apache/druid/pull/13313#discussion_r1014661501
##########
indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/SeekableStreamIndexTaskRunner.java:
##########
@@ -1311,14 +1311,16 @@ private boolean possiblyPause() throws
InterruptedException
status = Status.PAUSED;
hasPaused.signalAll();
- log.debug("Received pause command, pausing ingestion until resumed.");
+ long pauseTime = System.currentTimeMillis();
+ log.info("Received pause command, pausing ingestion until resumed.");
while (pauseRequested) {
shouldResume.await();
}
status = Status.READING;
shouldResume.signalAll();
- log.debug("Received resume command, resuming ingestion.");
+ log.info("Received resume command, resuming ingestion.");
+ task.emitMetric(toolbox.getEmitter(), "ingest/pause/time",
System.currentTimeMillis() - pauseTime);
Review Comment:
Please add the documentation for this metric in `metrics.md`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]