mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
Merge pull request #71437 from ClickHouse/backport/24.10/71236
Backport #71236 to 24.10: Ignore `No such key` exceptions in some cases
This commit is contained in:
commit
efad00478f
@ -365,7 +365,7 @@ AsynchronousBoundedReadBuffer::~AsynchronousBoundedReadBuffer()
|
|||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
tryLogCurrentException(__PRETTY_FUNCTION__);
|
tryLogCurrentException(log);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -263,8 +263,12 @@ function check_logs_for_critical_errors()
|
|||||||
# Remove file logical_errors.txt if it's empty
|
# Remove file logical_errors.txt if it's empty
|
||||||
[ -s /test_output/logical_errors.txt ] || rm /test_output/logical_errors.txt
|
[ -s /test_output/logical_errors.txt ] || rm /test_output/logical_errors.txt
|
||||||
|
|
||||||
# No such key errors (ignore a.myext which is used in 02724_database_s3.sh and does not exist)
|
# ignore:
|
||||||
rg --text "Code: 499.*The specified key does not exist" /var/log/clickhouse-server/clickhouse-server*.log | grep -v "a.myext" > /test_output/no_such_key_errors.txt \
|
# - a.myext which is used in 02724_database_s3.sh and does not exist
|
||||||
|
# - "DistributedCacheTCPHandler" and "caller id: None:DistribCache" because they happen inside distributed cache server
|
||||||
|
# - "ReadBufferFromDistributedCache", "AsynchronousBoundedReadBuffer", "ReadBufferFromS3", "ReadBufferFromAzureBlobStorage"
|
||||||
|
# exceptions printed internally by a buffer, exception will be rethrown and handled correctly
|
||||||
|
rg --text "Code: 499.*The specified key does not exist" /var/log/clickhouse-server/clickhouse-server*.log | grep -v -e "a.myext" -e "DistributedCacheTCPHandler" -e "ReadBufferFromDistributedCache" -e "ReadBufferFromS3" -e "ReadBufferFromAzureBlobStorage" -e "AsynchronousBoundedReadBuffer" -e "caller id: None:DistribCache" > /test_output/no_such_key_errors.txt \
|
||||||
&& echo -e "S3_ERROR No such key thrown (see clickhouse-server.log or no_such_key_errors.txt)$FAIL$(trim_server_logs no_such_key_errors.txt)" >> /test_output/test_results.tsv \
|
&& echo -e "S3_ERROR No such key thrown (see clickhouse-server.log or no_such_key_errors.txt)$FAIL$(trim_server_logs no_such_key_errors.txt)" >> /test_output/test_results.tsv \
|
||||||
|| echo -e "No lost s3 keys$OK" >> /test_output/test_results.tsv
|
|| echo -e "No lost s3 keys$OK" >> /test_output/test_results.tsv
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user