Merge pull request #27734 from ClickHouse/fix_test_01014

Fix test 01014_lazy_database_concurrent_recreate_reattach_and_show_tables
This commit is contained in:
tavplubix 2021-08-16 18:56:17 +03:00 committed by GitHub
commit 974acb615a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,14 +99,12 @@ timeout $TIMEOUT bash -c show_tables_func 2> /dev/null &
wait
sleep 1
${CLICKHOUSE_CLIENT} -n -q "
DROP TABLE IF EXISTS $CURR_DATABASE.log;
DROP TABLE IF EXISTS $CURR_DATABASE.slog;
DROP TABLE IF EXISTS $CURR_DATABASE.tlog;
DROP TABLE IF EXISTS $CURR_DATABASE.tlog2;
"
# DROP DATABASE $CURR_DATABASE; -- This fails for some reason
${CLICKHOUSE_CLIENT} -q "ATTACH TABLE $CURR_DATABASE.log;" 2>/dev/null
${CLICKHOUSE_CLIENT} -q "ATTACH TABLE $CURR_DATABASE.slog;" 2>/dev/null
${CLICKHOUSE_CLIENT} -q "ATTACH TABLE $CURR_DATABASE.tlog;" 2>/dev/null
${CLICKHOUSE_CLIENT} -q "ATTACH TABLE $CURR_DATABASE.tlog2;" 2>/dev/null
${CLICKHOUSE_CLIENT} -q "DROP DATABASE $CURR_DATABASE"
echo "Test OK"
# TODO: it doesn't work! $CLICKHOUSE_CLIENT -q "DROP DATABASE $CURR_DATABASE"