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

Unguarded access to stackIndexes in Procedure#toStringDetails()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.3.0, 2.0.0
    • None
    • None
    • Reviewed

    Description

      In Procedure#toStringDetails() :

          if (stackIndexes != null) {
            sb.append("\n");
            sb.append("stackIndexes=");
            sb.append(Arrays.toString(getStackIndexes()));
          }
      

      The access is not protected by synchronized keyword whereas access to stackIndexes is protected in all other methods.

      Note: getStackIndexes() has proper protection.

      Attachments

        1. HBASE-15639.v1.patch
          0.8 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: