Krish Dey created HBASE-21108:
---------------------------------

             Summary: 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


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