Skip to content

Commit d827dd0

Browse files
Backport #65492 to 24.6: Fix bad test 02922_deduplication_with_zero_copy
1 parent 90a4a1b commit d827dd0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/queries/0_stateless/02922_deduplication_with_zero_copy.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ create table r2 (n int)
3131
function get_shared_locks()
3232
{
3333
table_shared_id="$1"
34-
for part in $($CLICKHOUSE_KEEPER_CLIENT -q "ls /clickhouse/zero_copy/zero_copy_s3/${table_shared_id}")
34+
for part in $($CLICKHOUSE_KEEPER_CLIENT -q "ls '/clickhouse/zero_copy/zero_copy_s3/${table_shared_id}'")
3535
do
36-
for blob in $($CLICKHOUSE_KEEPER_CLIENT -q "ls /clickhouse/zero_copy/zero_copy_s3/${table_shared_id}/${part}")
36+
for blob in $($CLICKHOUSE_KEEPER_CLIENT -q "ls '/clickhouse/zero_copy/zero_copy_s3/${table_shared_id}/${part}'")
3737
do
38-
for lock in $($CLICKHOUSE_KEEPER_CLIENT -q "ls /clickhouse/zero_copy/zero_copy_s3/${table_shared_id}/${part}/${blob}")
38+
for lock in $($CLICKHOUSE_KEEPER_CLIENT -q "ls '/clickhouse/zero_copy/zero_copy_s3/${table_shared_id}/${part}/${blob}'")
3939
do
4040
echo "/clickhouse/zero_copy/zero_copy_s3/${table_shared_id}/${part}/${blob}/${lock}"
4141
done
@@ -48,7 +48,7 @@ function filter_temporary_locks()
4848
{
4949
while read -r lock
5050
do
51-
owner="$($CLICKHOUSE_KEEPER_CLIENT -q "get_stat ${lock}" | grep 'ephemeralOwner' | sed 's/.*= //')"
51+
owner="$($CLICKHOUSE_KEEPER_CLIENT -q "get_stat '${lock}'" | grep 'ephemeralOwner' | sed 's/.*= //')"
5252
if [[ "${owner}" -eq "0" ]]
5353
then
5454
echo "${lock}"
@@ -111,7 +111,7 @@ export -f insert_duplicates
111111
export -f get_shared_locks
112112
export -f loop
113113

114-
table_shared_id="$($CLICKHOUSE_KEEPER_CLIENT -q "get /test/02922/${CLICKHOUSE_DATABASE}/table/table_shared_id")"
114+
table_shared_id="$($CLICKHOUSE_KEEPER_CLIENT -q "get '/test/02922/${CLICKHOUSE_DATABASE}/table/table_shared_id'")"
115115

116116
exit_code=0
117117
timeout 40 bash -c "loop '${table_shared_id}'" || exit_code="${?}"
@@ -128,11 +128,11 @@ function list_keeper_nodes() {
128128
table_shared_id=$1
129129

130130
echo "zero_copy:"
131-
$CLICKHOUSE_KEEPER_CLIENT -q "ls /clickhouse/zero_copy/zero_copy_s3" | grep -o "${table_shared_id}" | \
131+
$CLICKHOUSE_KEEPER_CLIENT -q "ls '/clickhouse/zero_copy/zero_copy_s3'" | grep -o "${table_shared_id}" | \
132132
sed "s/${table_shared_id}/<table_shared_id>/g" || :
133133

134134
echo "tables:"
135-
$CLICKHOUSE_KEEPER_CLIENT -q "ls /test/02922/${CLICKHOUSE_DATABASE}" | grep -o "table" || :
135+
$CLICKHOUSE_KEEPER_CLIENT -q "ls '/test/02922/${CLICKHOUSE_DATABASE}'" | grep -o "table" || :
136136
}
137137

138138
list_keeper_nodes "${table_shared_id}"

0 commit comments

Comments
 (0)