Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.9.0, 3.9.1, 3.9.2
-
None
Description
Remove the synchronized keyword from Zookeeper.takeSnapshot() and ZookeeperServer.restoreFromSnapshot() API, as it causes lock contention on the ZookeeperServer object with the sync operation.
In ZookeeperServer.java, we have the following
public synchronized File takeSnapshot(boolean syncSnap, boolean isSevere, boolean fastForwardFromEdits) throws IOException { .... }
In ObserverZookeeperServer.java and FollowerZookeeperServer.java, we have the following
public synchronized void sync() { ... }
Attachments
Issue Links
- links to