Merge pull request #66095 from hanfei1991/hanfei/update-keeper-bench-example

update keeper bench example config file
This commit is contained in:
Han Fei 2024-07-04 21:21:24 +00:00 committed by GitHub
commit 447edfba44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 36 additions and 35 deletions

View File

@ -1311,9 +1311,9 @@ void removeRecursive(Coordination::ZooKeeper & zookeeper, const std::string & pa
while (!children_span.empty())
{
Coordination::Requests ops;
for (size_t i = 0; i < 1000 && !children.empty(); ++i)
for (size_t i = 0; i < 1000 && !children_span.empty(); ++i)
{
removeRecursive(zookeeper, fs::path(path) / children.back());
removeRecursive(zookeeper, fs::path(path) / children_span.back());
ops.emplace_back(zkutil::makeRemoveRequest(fs::path(path) / children_span.back(), -1));
children_span = children_span.subspan(0, children_span.size() - 1);
}

View File

@ -18,8 +18,7 @@ connections:
host: "localhost:9181"
generator:
setup:
setup:
node:
name: "test3"
node:
@ -57,6 +56,8 @@ generator:
node:
name: "test2"
data: "somedata"
generator:
requests:
create:
path: "/test_create"