You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by td...@apache.org on 2019/04/19 22:45:06 UTC
[phoenix] branch 4.14-HBase-1.2 updated: PHOENIX-5246:
PhoenixAccessControllers.getAccessControllers() method is not correctly
implementing the double-checked locking
This is an automated email from the ASF dual-hosted git repository.
tdsilva pushed a commit to branch 4.14-HBase-1.2
in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/4.14-HBase-1.2 by this push:
new 371900a PHOENIX-5246: PhoenixAccessControllers.getAccessControllers() method is not correctly implementing the double-checked locking
371900a is described below
commit 371900af58ef6978cd38d024ccf0d4180fa8ff8e
Author: s.kadam <s....@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 62c158c..18a293f 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);