[
https://issues.apache.org/jira/browse/RATIS-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Song Ziyang updated RATIS-1823:
-------------------------------
Description:
In StreamObserverWithTimeout's LOG, Request body is fully printed , e.g.
https://github.com/apache/ratis/blob/d495846f0b754a67594cc48f5559ca36838fd700/ratis-grpc/src/main/java/org/apache/ratis/grpc/util/StreamObserverWithTimeout.java#L85.
However, the installSnapshot requests are sometimes large and even reach
multiple megabytes (maxChunkSize). Print the whole request is cpu-consuming and
annoying.
was:
Requests are printed in StreamObserverWithTimeout, e.g.
https://github.com/apache/ratis/blob/d495846f0b754a67594cc48f5559ca36838fd700/ratis-grpc/src/main/java/org/apache/ratis/grpc/util/StreamObserverWithTimeout.java#L85.
However, the installSnapshot requests are sometimes large and even reach
multiple megabytes (maxChunkSize). Print the whole request is cpu-consuming and
annoying.
> Improve error log in StreamObserverWithTimeout
> ----------------------------------------------
>
> Key: RATIS-1823
> URL: https://issues.apache.org/jira/browse/RATIS-1823
> Project: Ratis
> Issue Type: Improvement
> Components: gRPC, snapshot
> Reporter: Song Ziyang
> Priority: Major
>
> In StreamObserverWithTimeout's LOG, Request body is fully printed , e.g.
> https://github.com/apache/ratis/blob/d495846f0b754a67594cc48f5559ca36838fd700/ratis-grpc/src/main/java/org/apache/ratis/grpc/util/StreamObserverWithTimeout.java#L85.
>
> However, the installSnapshot requests are sometimes large and even reach
> multiple megabytes (maxChunkSize). Print the whole request is cpu-consuming
> and annoying.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)