Merge pull request #69961 from ClickHouse/backport/24.8/68127

Backport #68127 to 24.8: Output an operation error for ZK Multi request failed operation into log
This commit is contained in:
robot-ch-test-poll2 2024-09-25 21:35:06 +04:00 committed by GitHub
commit c17facf99a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1570,7 +1570,7 @@ size_t getFailedOpIndex(Coordination::Error exception_code, const Coordination::
KeeperMultiException::KeeperMultiException(Coordination::Error exception_code, size_t failed_op_index_, const Coordination::Requests & requests_, const Coordination::Responses & responses_)
: KeeperException(exception_code, "Transaction failed: Op #{}, path", failed_op_index_),
: KeeperException(exception_code, "Transaction failed ({}): Op #{}, path", exception_code, failed_op_index_),
requests(requests_), responses(responses_), failed_op_index(failed_op_index_)
{
addMessage(getPathForFirstFailedOp());