Merge pull request #30033 from taosdata/fix/TS-6078-main

fix(query): change error log to warning when failed to acquire tsdb reader
This commit is contained in:
Simon Guan 2025-03-06 17:19:03 +08:00 committed by GitHub
commit c642f5e6e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -610,11 +610,12 @@ static int32_t tsdbTryAcquireReader(STsdbReader* pReader) {
code = taosThreadMutexTryLock(&pReader->readerMutex);
if (code != TSDB_CODE_SUCCESS) {
tsdbError("tsdb/read: %p, post-trytake read mutex: %p, code: %d", pReader, &pReader->readerMutex, code);
// Failing to acquire the lock is reasonable, not an error
tsdbWarn("tsdb/read: %p, post-trytake read mutex: %p, code: %d", pReader, &pReader->readerMutex, code);
} else {
tsdbTrace("tsdb/read: %p, post-trytask read mutex: %p", pReader, &pReader->readerMutex);
}
TSDB_CHECK_CODE(code, lino, _end);
return code;
_end:
if (code != TSDB_CODE_SUCCESS) {