Skip to content

Commit d86ca0b

Browse files
ZhangJian Heeolivelli
authored andcommitted
Adjust Log Level for LedgerFencedException in WriteEntryProcessor (#4327)
Signed-off-by: ZhangJian He <[email protected]> (cherry picked from commit eee9492)
1 parent 3ef5eb9 commit d86ca0b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/WriteEntryProcessor.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected void processPacket() {
8181
}
8282
} catch (OperationRejectedException e) {
8383
requestProcessor.getRequestStats().getAddEntryRejectedCounter().inc();
84-
// Avoid to log each occurence of this exception as this can happen when the ledger storage is
84+
// Avoid to log each occurrence of this exception as this can happen when the ledger storage is
8585
// unable to keep up with the write rate.
8686
if (LOG.isDebugEnabled()) {
8787
LOG.debug("Operation rejected while writing {}", request, e);
@@ -91,7 +91,8 @@ protected void processPacket() {
9191
LOG.error("Error writing {}", request, e);
9292
rc = BookieProtocol.EIO;
9393
} catch (BookieException.LedgerFencedException lfe) {
94-
LOG.error("Attempt to write to fenced ledger", lfe);
94+
LOG.warn("Write attempt on fenced ledger {} by client {}", request.getLedgerId(),
95+
requestHandler.ctx().channel().remoteAddress());
9596
rc = BookieProtocol.EFENCED;
9697
} catch (BookieException e) {
9798
LOG.error("Unauthorized access to ledger {}", request.getLedgerId(), e);

0 commit comments

Comments
 (0)