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

REST Client class is not thread safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0-alpha-1
    • 3.0.0-beta-2
    • Client, REST
    • None

    Description

      The REST Client class for HBase is not Thread safe, and the class itself does not have thread safety documented in the Javadoc. Previous versions of the class were thread safe.

      Adhering to the "principal of least surprise" future versions of the Client class should also be thread safe. 

      The class can be found on the master branch, however the issue exists at least as far back as version 2.1. On line 68 and line 69 are two instance variables that can potentially change on a per-request basis, are not synchronized and have no associated Lock. Both variables should be removed and their usage within method should be replaced with variables local to the method. 

      Attachments

        Activity

          People

            jsp1611 Jon Poulton
            jsp1611 Jon Poulton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified