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

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1556734 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Karthik Kambatla 2014-01-09 06:34:54 +00:00
parent fbf1227008
commit 519d5d3014
2 changed files with 4 additions and 1 deletions

View File

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

View File

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