HADOOP-10214. Fix multithreaded correctness warnings in ActiveStandbyElector (Liang Xie via kasha)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1556735 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Karthik Kambatla 2014-01-09 06:37:20 +00:00
parent 082d4713bb
commit fc73a88bd3
2 changed files with 4 additions and 1 deletions

View File

@ -212,6 +212,9 @@ Release 2.4.0 - UNRELEASED
HADOOP-10207. TestUserGroupInformation#testLogin is flaky (jxiang via HADOOP-10207. TestUserGroupInformation#testLogin is flaky (jxiang via
cmccabe) cmccabe)
HADOOP-10214. Fix multithreaded correctness warnings in ActiveStandbyElector
(Liang Xie via kasha)
Release 2.3.0 - UNRELEASED Release 2.3.0 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -768,7 +768,7 @@ public class ActiveStandbyElector implements StatCallback, StringCallback {
} }
@InterfaceAudience.Private @InterfaceAudience.Private
public void terminateConnection() { public synchronized void terminateConnection() {
if (zkClient == null) { if (zkClient == null) {
return; return;
} }