yykaue opened a new pull request, #6919: URL: https://github.com/apache/shenyu/pull/6919
Fixes #6767 `ClickHouseLogCollectClient.initClient0()` previously called `isEmpty()` directly on the configured TTL value. When the `ttl` field was omitted from the admin configuration, Gson deserialized it as `null`, causing the ClickHouse logging plugin to fail during initialization with a `NullPointerException`. This PR: - Uses `StringUtils.defaultIfBlank()` to default missing, empty, or blank TTL values to `30`. - Preserves explicitly configured TTL values. - Adds a regression test covering configuration JSON without the `ttl` field. ## Verification - The regression test reproduces the original exception before the fix. - The targeted test passes after the fix. - Relevant tests and Checkstyle pass. @Aias00 Could you please review this PR? -- 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]
