SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 'dict_invalidate' DB 'dictdb' INVALIDATE_QUERY 'select max(last_time) from dictdb.dict_invalidate'))
SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 'dict_invalidate' DB 'dictdb_01041_01040' INVALIDATE_QUERY 'select max(last_time) from dictdb_01041_01040.dict_invalidate'))
query_result=$($CLICKHOUSE_CLIENT--query"SELECT last_exception FROM system.dictionaries WHERE database = 'dictdb' AND name = 'invalidate'" 2>&1)
query_result=$($CLICKHOUSE_CLIENT--query"SELECT last_exception FROM system.dictionaries WHERE database = 'dictdb_01041_01040' AND name = 'invalidate'" 2>&1)
while[-z"$query_result"]
do
query_result=$($CLICKHOUSE_CLIENT--query"SELECT last_exception FROM system.dictionaries WHERE database = 'dictdb' AND name = 'invalidate'" 2>&1)
query_result=$($CLICKHOUSE_CLIENT--query"SELECT last_exception FROM system.dictionaries WHERE database = 'dictdb_01041_01040' AND name = 'invalidate'" 2>&1)
sleep 0.1
done
}
...
...
@@ -52,10 +52,10 @@ function check_exception_detected()
$CLICKHOUSE_CLIENT--query"SELECT last_exception FROM system.dictionaries WHERE database = 'dictdb' AND name = 'invalidate'" 2>&1 | grep-Eo"Table dictdb.dict_invalidate .* exist"
$CLICKHOUSE_CLIENT--query"SELECT last_exception FROM system.dictionaries WHERE database = 'dictdb_01041_01040' AND name = 'invalidate'" 2>&1 | grep-Eo"Table dictdb_01041_01040.dict_invalidate .* exist"
$CLICKHOUSE_CLIENT--query"
CREATE TABLE dictdb.dict_invalidate
CREATE TABLE dictdb_01041_01040.dict_invalidate
ENGINE = Memory AS
SELECT
133 as dummy,
...
...
@@ -64,11 +64,11 @@ FROM system.one"
function check_exception_fixed()
{
query_result=$($CLICKHOUSE_CLIENT--query"SELECT last_exception FROM system.dictionaries WHERE database = 'dictdb' AND name = 'invalidate'" 2>&1)
query_result=$($CLICKHOUSE_CLIENT--query"SELECT last_exception FROM system.dictionaries WHERE database = 'dictdb_01041_01040' AND name = 'invalidate'" 2>&1)
while["$query_result"]
do
query_result=$($CLICKHOUSE_CLIENT--query"SELECT last_exception FROM system.dictionaries WHERE database = 'dictdb' AND name = 'invalidate'" 2>&1)
query_result=$($CLICKHOUSE_CLIENT--query"SELECT last_exception FROM system.dictionaries WHERE database = 'dictdb_01041_01040' AND name = 'invalidate'" 2>&1)