Mention the path of DLQ to indicate DLQ if full for which pipeline

Fixes #11280
This commit is contained in:
amitav.mohanty 2019-10-31 00:18:39 +05:30 committed by Andrea Selva
parent 9197bf221f
commit d65ef8edb6

View file

@ -131,7 +131,7 @@ public final class DeadLetterQueueWriter implements Closeable {
byte[] record = entry.serialize();
int eventPayloadSize = RECORD_HEADER_SIZE + record.length;
if (currentQueueSize.longValue() + eventPayloadSize > maxQueueSize) {
logger.error("cannot write event to DLQ: reached maxQueueSize of " + maxQueueSize);
logger.error("cannot write event to DLQ(path: " + this.queuePath + "): reached maxQueueSize of " + maxQueueSize);
return;
} else if (currentWriter.getPosition() + eventPayloadSize > maxSegmentSize) {
currentWriter.close();