This is an automated email from the ASF dual-hosted git repository.

tdsilva pushed a commit to branch 4.14-HBase-1.4
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.14-HBase-1.4 by this push:
     new c453cce  PHOENIX-5246: PhoenixAccessControllers.getAccessControllers() 
method is not correctly implementing the double-checked locking
c453cce is described below

commit c453cce3251223b8ca04a9f1e1d59c311013401b
Author: s.kadam <s.ka...@salesforce.com>
AuthorDate: Fri Apr 19 13:10:27 2019 -0700

    PHOENIX-5246: PhoenixAccessControllers.getAccessControllers() method is not 
correctly implementing the double-checked locking
---
 .../java/org/apache/phoenix/coprocessor/PhoenixAccessController.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/PhoenixAccessController.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/PhoenixAccessController.java
index 96467f2..0db2801 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/PhoenixAccessController.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/PhoenixAccessController.java
@@ -71,7 +71,7 @@ import com.google.protobuf.RpcCallback;
 public class PhoenixAccessController extends BaseMetaDataEndpointObserver {
 
     private PhoenixMetaDataControllerEnvironment env;
-    private ArrayList<BaseMasterAndRegionObserver> accessControllers;
+    private volatile ArrayList<BaseMasterAndRegionObserver> accessControllers;
     private boolean accessCheckEnabled;
     private UserProvider userProvider;
     public static final Log LOG = 
LogFactory.getLog(PhoenixAccessController.class);

Reply via email to