mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Attempt to fix EAGAIN error
This commit is contained in:
parent
6e6e705486
commit
7727b30f5c
@ -188,9 +188,9 @@ function setup_logs_replication
|
||||
|
||||
echo -e "Creating remote destination table ${table}_${hash} with statement:" >&2
|
||||
echo "::group::${table}"
|
||||
cat >&2 <<EOF
|
||||
$statement
|
||||
EOF
|
||||
# there's the only way big "$statement" can be printed without causing EAGAIN error
|
||||
# cat: write error: Resource temporarily unavailable
|
||||
echo "$statement" | cat
|
||||
echo "::endgroup::"
|
||||
|
||||
echo "$statement" | clickhouse-client --database_replicated_initial_query_timeout_sec=10 \
|
||||
|
Loading…
Reference in New Issue
Block a user