[ 
https://issues.apache.org/jira/browse/HBASE-20942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16594276#comment-16594276
 ] 

Josh Elser commented on HBASE-20942:
------------------------------------

{quote}
Well I could have done it. But I want to pass the configuration for example.
 conf.setInt("hbase.ipc.trace.log.max.length", 250);

This will test the scenario that the configuration is used correctly for the 
variable traceLogMaxLength.
{quote}

Just pass your configuration object into your method :)

> Improve RpcServer TRACE logging
> -------------------------------
>
>                 Key: HBASE-20942
>                 URL: https://issues.apache.org/jira/browse/HBASE-20942
>             Project: HBase
>          Issue Type: Task
>            Reporter: Esteban Gutierrez
>            Assignee: Krish Dey
>            Priority: Major
>         Attachments: HBASE-20942.002.patch, HBASE-20942.003.patch, 
> HBASE-20942.004.patch
>
>
> Two things:
>  * We truncate RpcServer output to 1000 characters for trace logging. Would 
> be better if that value was configurable.
>  * There is the chance for an ArrayIndexOutOfBounds when truncating the TRACE 
> log message.
> Esteban mentioned this to me earlier, so I'm crediting him as the reporter.
> cc: [~elserj]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to