Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.0-alpha-1
-
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.