File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -201,9 +201,11 @@ function setup_logs_replication
201201 echo " Creating materialized view system.${table} _watcher" >&2
202202
203203 clickhouse-client --query "
204- CREATE MATERIALIZED VIEW system.${table} _watcher TO system.${table} _sender AS
205- SELECT ${EXTRA_COLUMNS_EXPRESSION_FOR_TABLE} , *
206- FROM system.${table}
204+ CREATE MATERIALIZED VIEW system.${table} _watcher
205+ TO system.${table} _sender
206+ DEFINER = ci_logs_sender
207+ AS
208+ SELECT ${EXTRA_COLUMNS_EXPRESSION_FOR_TABLE} , * FROM system.${table}
207209 " || continue
208210 done
209211)
Original file line number Diff line number Diff line change 9595
9696ln -sf $SRC_PATH /users.d/log_queries.xml $DEST_SERVER_PATH /users.d/
9797ln -sf $SRC_PATH /users.d/readonly.xml $DEST_SERVER_PATH /users.d/
98+ ln -sf $SRC_PATH /users.d/ci_logs_sender.yaml $DEST_SERVER_PATH /users.d/
9899ln -sf $SRC_PATH /users.d/access_management.xml $DEST_SERVER_PATH /users.d/
99100ln -sf $SRC_PATH /users.d/database_atomic_drop_detach_sync.xml $DEST_SERVER_PATH /users.d/
100101ln -sf $SRC_PATH /users.d/opentelemetry.xml $DEST_SERVER_PATH /users.d/
Original file line number Diff line number Diff line change 1+ profiles :
2+ ci_logs_sender :
3+ # The async sends will block the table shutdown for the timeout,
4+ # and default timeout of 300 seconds is too big and may lead to hangs,
5+ # the INSERTs will be retried anyway
6+ send_timeout : 15
7+ receive_timeout : 15
8+ users :
9+ ci_logs_sender :
10+ profile : ci_logs_sender
11+ no_password : true
12+ networks :
13+ ip :
14+ - ::1
15+ - 127.0.0.1
You can’t perform that action at this time.
0 commit comments