Skip to content

Commit 7727b30

Browse files
committed
Attempt to fix EAGAIN error
1 parent 6e6e705 commit 7727b30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docker/test/base/setup_export_logs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ function setup_logs_replication
188188

189189
echo -e "Creating remote destination table ${table}_${hash} with statement:" >&2
190190
echo "::group::${table}"
191-
cat >&2 <<EOF
192-
$statement
193-
EOF
191+
# there's the only way big "$statement" can be printed without causing EAGAIN error
192+
# cat: write error: Resource temporarily unavailable
193+
echo "$statement" | cat
194194
echo "::endgroup::"
195195

196196
echo "$statement" | clickhouse-client --database_replicated_initial_query_timeout_sec=10 \

0 commit comments

Comments
 (0)