diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/meta/zk/ZKMetadataDriverBase.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/meta/zk/ZKMetadataDriverBase.java index 4a3a83453f5..818267b1b31 100644 --- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/meta/zk/ZKMetadataDriverBase.java +++ b/bookkeeper-server/src/main/java/org/apache/bookkeeper/meta/zk/ZKMetadataDriverBase.java @@ -259,7 +259,7 @@ protected void initialize(AbstractConfiguration conf, acls); } - private synchronized void handleState(Watcher.Event.KeeperState zkClientState) { + private void handleState(Watcher.Event.KeeperState zkClientState) { switch (zkClientState) { case Expired: case Disconnected: diff --git a/bookkeeper-server/src/test/java/org/apache/bookkeeper/sasl/MD5DigestBookKeeperTest.java b/bookkeeper-server/src/test/java/org/apache/bookkeeper/sasl/MD5DigestBookKeeperTest.java index a12b532a489..7358f2923b5 100644 --- a/bookkeeper-server/src/test/java/org/apache/bookkeeper/sasl/MD5DigestBookKeeperTest.java +++ b/bookkeeper-server/src/test/java/org/apache/bookkeeper/sasl/MD5DigestBookKeeperTest.java @@ -118,7 +118,6 @@ public void testSingleMessageAuth() throws Exception { bookieConf.setBookieAuthProviderFactoryClass( SASLBookieAuthProviderFactory.class.getName()); bookieConf.setProperty(JAAS_CLIENT_ALLOWED_IDS, ".*hd.*"); - ClientConfiguration clientConf = newClientConfiguration(); clientConf.setClientAuthProviderFactoryClass( SASLClientProviderFactory.class.getName());