[ 
https://issues.apache.org/jira/browse/RATIS-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz-wo Sze reassigned RATIS-1823:
---------------------------------

    Assignee: Tsz-wo Sze

[~William Song], let's pass a requestToStringFunction.

> 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
>            Assignee: Tsz-wo Sze
>            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)

Reply via email to