Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1953 Ratis streaming follow up
  3. RATIS-1956

Avoid built-in toString in NettyClientStreamRpc log

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.1
    • Streaming
    • None

    Description

      Some of the logs in NettyClientStreamRpc mention the source of the message using toString inherited from Object.

      Examples:

      [NettyClientStreamRpc-workerGroup--thread1] TRACE client.NettyClientStreamRpc (NettyClientStreamRpc.java:operationComplete(194)) - org.apache.ratis.netty.client.NettyClientStreamRpc$Connection$1@36383c10 succeed.
      
      [NettyClientStreamRpc-workerGroup--thread1] DEBUG client.NettyClientStreamRpc (NettyClientStreamRpc.java:channelRead(330)) - org.apache.ratis.netty.client.NettyClientStreamRpc$1@31294ad5: read DataStreamReplyByteBuffer:clientId=client-F61E6E1DAE37,type=STREAM_HEADER,id=1,offset=0,length=0,SUCCESS,bytesWritten=0
      

      org.apache.ratis.netty.client.NettyClientStreamRpc$Connection$1@36383c10
      org.apache.ratis.netty.client.NettyClientStreamRpc$1@31294ad5

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h