You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2023/03/28 14:14:00 UTC

[jira] [Assigned] (RATIS-1823) Improve error log in StreamObserverWithTimeout

     [ 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)