Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-21108

RpcServer when trace enabled might get the following exception. java.lang.StringIndexOutOfBoundsException:

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      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

      Attachments

        1. HBASE-21108.002.patch
          8 kB
          Krish Dey

        Issue Links

          Activity

            People

              krish.dey Krish Dey
              krish.dey Krish Dey
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: