mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Show owner query ids in the message for the DEADLOCK_AVOIDED error.
This commit is contained in:
parent
dc83e27164
commit
f1ccf4e29f
@ -41,8 +41,8 @@ RWLockImpl::LockHolder IStorage::tryLockTimed(
|
|||||||
{
|
{
|
||||||
const String type_str = type == RWLockImpl::Type::Read ? "READ" : "WRITE";
|
const String type_str = type == RWLockImpl::Type::Read ? "READ" : "WRITE";
|
||||||
throw Exception(ErrorCodes::DEADLOCK_AVOIDED,
|
throw Exception(ErrorCodes::DEADLOCK_AVOIDED,
|
||||||
"{} locking attempt on \"{}\" has timed out! ({}ms) Possible deadlock avoided. Client should retry",
|
"{} locking attempt on \"{}\" has timed out! ({}ms) Possible deadlock avoided. Client should retry. Owner query ids: {}",
|
||||||
type_str, getStorageID(), acquire_timeout.count());
|
type_str, getStorageID(), acquire_timeout.count(), rwlock->getOwnerQueryIdsDescription());
|
||||||
}
|
}
|
||||||
return lock_holder;
|
return lock_holder;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user