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

Krish Dey updated HBASE-21108:
------------------------------
    Attachment: HBASE-21108.002.patch
        Status: Patch Available  (was: Open)

> RpcServer when trace enabled might get the following exception. 
> java.lang.StringIndexOutOfBoundsException: 
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-21108
>                 URL: https://issues.apache.org/jira/browse/HBASE-21108
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Krish Dey
>            Assignee: Krish Dey
>            Priority: Major
>         Attachments: HBASE-21108.002.patch
>
>
> In the RpcServer#logResponse method the logic
> stringifiedParam = stringifiedParam.subSequence(
> 0, LOG.isTraceEnabled() ? 1000 : 150) + " <TRUNCATED>";
> If the trace is on and the length of stringifiedParam is 150< 
> stringifiedParam.length() < 1000  will get the following exception.
> java.lang.StringIndexOutOfBoundsException: String index out of range: 1000



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

Reply via email to