[
https://issues.apache.org/jira/browse/RATIS-2418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18061421#comment-18061421
]
Tsz-wo Sze edited comment on RATIS-2418 at 2/26/26 6:25 PM:
------------------------------------------------------------
The pull request is now merged. Thanks, [~slfan1989]!
Thanks also fixing the bug causing by my review comment in RATIS-2415.
was (Author: szetszwo):
The pull request is now merged. Thanks, [~slfan1989]!
> NettyClient LoggingHandler prints too many messages
> ---------------------------------------------------
>
> Key: RATIS-2418
> URL: https://issues.apache.org/jira/browse/RATIS-2418
> Project: Ratis
> Issue Type: Bug
> Components: Netty
> Reporter: Tsz-wo Sze
> Assignee: Shilun Fan
> Priority: Major
> Time Spent: 50m
> Remaining Estimate: 0h
>
> After RATIS-2412 has fixed NettyClient LoggingHandler, it is printing a lot
> of log messages. For example, TestRaftAsyncWithNetty is printing 1.6m lines
> now. We should reduce the number of messages.
> {code}
> 2026-02-24 02:52:08,334 [s1--thread2] WARN logging.LoggingHandler
> (AbstractInternalLogger.java:log(151)) - [id: 0xb2e7957a, L:/127.0.0.1:50240
> - R:localhost/127.0.0.1:15008] WRITE: 37B
> +-------------------------------------------------+
> | 0 1 2 3 4 5 6 7 8 9 a b c d e f |
> +--------+-------------------------------------------------+----------------+
> |00000000| 24 0a 22 0a 1e 0a 02 73 31 12 02 73 32 1a 12 0a |$."....s1..s2...|
> |00000010| 10 e3 ba bf a7 b0 c5 4d 9c 9f cd 53 94 8a 51 44 |.......M...S..QD|
> |00000020| 41 20 06 20 01 |A . . |
> +--------+-------------------------------------------------+----------------+
> 2026-02-24 02:52:08,334 [s2--thread2] WARN logging.LoggingHandler
> (AbstractInternalLogger.java:log(151)) - [id: 0x708727b6, L:/127.0.0.1:49852
> - R:localhost/127.0.0.1:15004] WRITE: 37B
> +-------------------------------------------------+
> | 0 1 2 3 4 5 6 7 8 9 a b c d e f |
> +--------+-------------------------------------------------+----------------+
> |00000000| 24 0a 22 0a 1e 0a 02 73 32 12 02 73 31 1a 12 0a |$."....s2..s1...|
> |00000010| 10 e3 ba bf a7 b0 c5 4d 9c 9f cd 53 94 8a 51 44 |.......M...S..QD|
> |00000020| 41 20 04 20 01 |A . . |
> +--------+-------------------------------------------------+----------------+
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)