Skip to content

Commit

Permalink
Backport #59735 to 23.8: 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 e4110b6 commit c9c9b7a
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 @@ -359,6 +359,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 c9c9b7a

Please sign in to comment.