Skip to content

Commit

Permalink
Backport #59735 to 23.12: Make ZooKeeper actually sequentialy consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
robot-clickhouse committed Feb 12, 2024
1 parent ceb52e7 commit 0978f26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Common/ZooKeeper/ZooKeeperImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,9 @@ ZooKeeper::ZooKeeper(
keeper_feature_flags.logFlags(log);

ProfileEvents::increment(ProfileEvents::ZooKeeperInit);

/// Avoid stale reads after connecting
sync("/", [](const SyncResponse &){});
}
catch (...)
{
Expand Down

0 comments on commit 0978f26

Please sign in to comment.