Aias00 opened a new issue, #6563:
URL: https://github.com/apache/shenyu/issues/6563

   ## Description
   `initClient0` always executes `CREATE_DISTRIBUTED_TABLE_SQL` using 
`config.getClusterName()`, and `consume0` always inserts into 
`request_log_distributed`. On a single-node ClickHouse (no cluster configured), 
`clusterName` is null -> `Distributed('null', ...)`, the distributed table 
creation fails (caught and logged), so `request_log_distributed` is never 
created, and every batch insert then fails.
   
   ## Location
   ```
   
shenyu-plugin-logging-clickhouse/.../client/ClickHouseLogCollectClient.java:140,
 87
   ClickHouseLoggingConstant.java:68 (PRE_INSERT_SQL targets 
request_log_distributed)
   ```
   
   ## Impact
   On a single-node ClickHouse deployment without a `clusterName` configured, 
all log batches throw on insert; `AbstractLogCollector` catches and drops them, 
so no logs are persisted.
   
   ## Suggested fix
   Only create/insert-through the distributed table when `clusterName` is 
configured; otherwise insert directly into `request_log`.
   
   ## Related existing issue(s)
   None
   
   _Identified during the 2026-08-02 audit; full list in 
[`docs/issue-candidates-2026-08-02.md`](docs/issue-candidates-2026-08-02.md)._


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to