You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Krish Dey (JIRA)" <ji...@apache.org> on 2018/08/23 22:33:00 UTC
[jira] [Created] (HBASE-21108) RpcServer when trace enabled might
get the following exception. java.lang.StringIndexOutOfBoundsException:
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)