mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 19:42:00 +00:00
Fix annoying test
This commit is contained in:
parent
cbedc5553c
commit
16851040df
@ -35,7 +35,7 @@ FileCacheKey FileCacheKey::random()
|
|||||||
FileCacheKey FileCacheKey::fromKeyString(const std::string & key_str)
|
FileCacheKey FileCacheKey::fromKeyString(const std::string & key_str)
|
||||||
{
|
{
|
||||||
if (key_str.size() != 32)
|
if (key_str.size() != 32)
|
||||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Invalid key: {}", key_str);
|
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Invalid cache key hex: {}", key_str);
|
||||||
return FileCacheKey(unhexUInt<UInt128>(key_str.data()));
|
return FileCacheKey(unhexUInt<UInt128>(key_str.data()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ $CLICKHOUSE_CLIENT --query_id "$query_id" --query "SELECT * FROM test FORMAT Nul
|
|||||||
|
|
||||||
$CLICKHOUSE_CLIENT -nm --query """
|
$CLICKHOUSE_CLIENT -nm --query """
|
||||||
SYSTEM DROP FILESYSTEM CACHE '$disk_name' KEY kek;
|
SYSTEM DROP FILESYSTEM CACHE '$disk_name' KEY kek;
|
||||||
""" 2>&1 | grep -q "Invalid key: kek" && echo "OK" || echo "FAIL"
|
""" 2>&1 | grep -q "Invalid cache key hex: kek" && echo "OK" || echo "FAIL"
|
||||||
|
|
||||||
${CLICKHOUSE_CLIENT} -q " system flush logs"
|
${CLICKHOUSE_CLIENT} -q " system flush logs"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user