This is an automated email from the ASF dual-hosted git repository. tdsilva pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/master by this push: new 2e98269 PHOENIX-5246: PhoenixAccessControllers.getAccessControllers() method is not correctly implementing the double-checked locking 2e98269 is described below commit 2e98269dd94f17fa01437065f36f26ef12a49dba 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 d07f4f7..1303363 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 @@ -77,7 +77,7 @@ import com.google.protobuf.RpcController; public class PhoenixAccessController extends BaseMetaDataEndpointObserver { private PhoenixMetaDataControllerEnvironment env; - private ArrayList<MasterObserver> accessControllers; + private volatile ArrayList<MasterObserver> accessControllers; private boolean accessCheckEnabled; private UserProvider userProvider; public static final Log LOG = LogFactory.getLog(PhoenixAccessController.class);