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:
parent
082d4713bb
commit
fc73a88bd3
|
@ -212,6 +212,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
|
||||
|
|
|
@ -768,7 +768,7 @@ public class ActiveStandbyElector implements StatCallback, StringCallback {
|
|||
}
|
||||
|
||||
@InterfaceAudience.Private
|
||||
public void terminateConnection() {
|
||||
public synchronized void terminateConnection() {
|
||||
if (zkClient == null) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue