Skip to content

Commit 0878968

Browse files
Merge pull request ClickHouse#80176 from Algunenano/multi_log
Provide more information when a Keeper Multi requests times out
2 parents abb704d + 6e70a01 commit 0878968

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Common/ZooKeeper/ZooKeeper.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,13 @@ ZooKeeper::multiImpl(const Coordination::Requests & requests, Coordination::Resp
771771

772772
if (future_result.wait_for(std::chrono::milliseconds(args.operation_timeout_ms)) != std::future_status::ready)
773773
{
774-
impl->finalize(fmt::format("Operation timeout on {} {}", Coordination::OpNum::Multi, requests[0]->getPath()));
774+
auto & request = *requests[0];
775+
impl->finalize(fmt::format(
776+
"Operation timeout on {} of {} requests. First ({}): {}",
777+
Coordination::OpNum::Multi,
778+
requests.size(),
779+
demangle(typeid(request).name()),
780+
request.getPath()));
775781
return {Coordination::Error::ZOPERATIONTIMEOUT, ""};
776782
}
777783

0 commit comments

Comments
 (0)