From 6418018385226f988a003fd07e8c3062c82e64a9 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 16 Jun 2019 02:32:33 +0300 Subject: [PATCH] Added comment --- dbms/src/Common/ZooKeeper/TestKeeper.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dbms/src/Common/ZooKeeper/TestKeeper.h b/dbms/src/Common/ZooKeeper/TestKeeper.h index 8095537c72d..6b26e4cf8a1 100644 --- a/dbms/src/Common/ZooKeeper/TestKeeper.h +++ b/dbms/src/Common/ZooKeeper/TestKeeper.h @@ -19,6 +19,17 @@ struct TestKeeperRequest; using TestKeeperRequestPtr = std::shared_ptr; +/** Looks like ZooKeeper but stores all data in memory of server process. + * All data is not shared between different servers and is lost after server restart. + * + * The only purpose is to more simple testing for interaction with ZooKeeper within a single server. + * This still makes sense, because multiple replicas of a single table can be created on a single server, + * and it is used to test replication logic. + * + * Does not support ACLs. Does not support NULL node values. + * + * NOTE: You can add various failure modes for better testing. + */ class TestKeeper : public IKeeper { public: