You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "thswlsqls (via GitHub)" <gi...@apache.org> on 2026/07/15 03:42:08 UTC
[PR] [hive] Fix malformed error message for unknown client pool cache key [paimon]
thswlsqls opened a new pull request, #8639:
URL: https://github.com/apache/paimon/pull/8639
### Purpose
fix #8638
- `CachedClientPool.extractKey()` threw `new RuntimeException("Unknown key element %s" + trimmed)`; `RuntimeException(String)` does no `%s` substitution, so users saw a garbled message like `Unknown key element %sconf`.
- Reached on a normal misconfiguration: `client-pool-cache.keys=conf` (missing the `conf:` prefix) hits the `switch` default.
- Drop the literal `%s` and concatenate `trimmed` directly. Sibling checks (lines 162-165, 172-175) use `Preconditions.checkArgument` where `%s` is a real placeholder.
### Tests
- Added `TestCachedClientPool#testExtractKeyUnknownElementErrorMessage` asserting the message is exactly `Unknown key element conf` (proves the literal `%s` is gone).
- `mvn -pl paimon-hive/paimon-hive-catalog clean install` (JDK 11) passed: checkstyle, spotless, rat, and `TestCachedClientPool` (14 tests) green.
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [hive] Fix malformed error message for unknown client pool cache key [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi commented on PR #8639:
URL: https://github.com/apache/paimon/pull/8639#issuecomment-4988521410
+1
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [hive] Fix malformed error message for unknown client pool cache key [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #8639:
URL: https://github.com/apache/paimon/pull/8639
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org