You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "voonhous (via GitHub)" <gi...@apache.org> on 2026/07/04 16:26:53 UTC
[PR] refactor(utilities): use SLF4J parameterized logging instead of strin… [hudi]
voonhous opened a new pull request, #19185:
URL: https://github.com/apache/hudi/pull/19185
…g concatenation
Convert log/LOG string concatenation to {} placeholders across hudi-utilities (main + tests). Mechanical and behavior-preserving:
- HoodieDataTableValidator: the trailing throwable stays the last arg so its stacktrace is logged as before; dropped a redundant entry.toString().
- Preserved CRLF line endings in S3EventsMetaSelector.
### Describe the issue this Pull Request addresses
<!-- Either describe the issue inline here with motivation behind the changes
(or) link to an issue by including `Closes #<issue-number>` for context.
If this PR includes changes to the storage format, public APIs,
or has breaking changes, use `!` (e.g., feat!: ...) -->
### Summary and Changelog
<!-- Short, plain-English summary of what users gain or what changed in behavior.
Followed by a detailed log of all the changes. Highlight if any code was copied. -->
### Impact
<!-- Describe any public API or user-facing feature change or any performance impact. -->
### Risk Level
<!-- Accepted values: none, low, medium or high. Other than `none`, explain the risk.
If medium or high, explain what verification was done to mitigate the risks. -->
### Documentation Update
<!-- Describe any necessary documentation update if there is any new feature, config, or user-facing change. If not, put "none".
- The config description must be updated if new configs are added or the default value of the configs are changed.
- Any new feature or user-facing change requires updating the Hudi website. Please follow the
[instruction](https://hudi.apache.org/contribute/developer-setup#website) to make changes to the website. -->
### Contributor's checklist
- [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
- [ ] Enough context is provided in the sections above
- [ ] Adequate tests were added if applicable
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(utilities): use SLF4J parameterized logging instead of string concatenation [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #19185:
URL: https://github.com/apache/hudi/pull/19185#issuecomment-4883399989
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "815678ea26b749de9489b927777e7068fe48f98e",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=15225",
"triggerID" : "815678ea26b749de9489b927777e7068fe48f98e",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 815678ea26b749de9489b927777e7068fe48f98e Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=15225)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(utilities): use SLF4J parameterized logging instead of string concatenation [hudi]
Posted by "yihua (via GitHub)" <gi...@apache.org>.
yihua commented on code in PR #19185:
URL: https://github.com/apache/hudi/pull/19185#discussion_r3523812268
##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/DFSPathSelector.java:
##########
@@ -125,8 +125,7 @@ public Pair<Option<String>, Checkpoint> getNextFilePathsAndMaxModificationTime(O
long sourceLimit) {
try {
// obtain all eligible files under root folder.
- log.info("Root path => " + getStringWithAltKeys(props, DFSPathSelectorConfig.ROOT_INPUT_PATH)
- + " source limit => " + sourceLimit);
+ log.info("Root path => {} source limit => {}", getStringWithAltKeys(props, DFSPathSelectorConfig.ROOT_INPUT_PATH), sourceLimit);
Review Comment:
super nit, could be ignored.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(utilities): use SLF4J parameterized logging instead of string concatenation [hudi]
Posted by "hudi-agent (via GitHub)" <gi...@apache.org>.
hudi-agent commented on code in PR #19185:
URL: https://github.com/apache/hudi/pull/19185#discussion_r3523521861
##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/DFSPathSelector.java:
##########
@@ -125,8 +125,7 @@ public Pair<Option<String>, Checkpoint> getNextFilePathsAndMaxModificationTime(O
long sourceLimit) {
try {
// obtain all eligible files under root folder.
- log.info("Root path => " + getStringWithAltKeys(props, DFSPathSelectorConfig.ROOT_INPUT_PATH)
- + " source limit => " + sourceLimit);
+ log.info("Root path => {} source limit => {}", getStringWithAltKeys(props, DFSPathSelectorConfig.ROOT_INPUT_PATH), sourceLimit);
Review Comment:
🤖 nit: the original was split across two lines for a reason — this collapsed form comes out to ~135 chars and is a bit of a wall to read. Could you keep the arguments on their own line, e.g. `log.info("Root path => {} source limit => {}",\n getStringWithAltKeys(...), sourceLimit);`?
<sub><i>⚠️ AI-generated; verify before applying. React 👍/👎 to flag quality.</i></sub>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(utilities): use SLF4J parameterized logging instead of string concatenation [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #19185:
URL: https://github.com/apache/hudi/pull/19185#issuecomment-4883081779
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "815678ea26b749de9489b927777e7068fe48f98e",
"status" : "PENDING",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=15225",
"triggerID" : "815678ea26b749de9489b927777e7068fe48f98e",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 815678ea26b749de9489b927777e7068fe48f98e Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=15225)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(utilities): use SLF4J parameterized logging instead of string concatenation [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #19185:
URL: https://github.com/apache/hudi/pull/19185#issuecomment-4883065642
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "815678ea26b749de9489b927777e7068fe48f98e",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "815678ea26b749de9489b927777e7068fe48f98e",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 815678ea26b749de9489b927777e7068fe48f98e UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(utilities): use SLF4J parameterized logging instead of string concatenation [hudi]
Posted by "yihua (via GitHub)" <gi...@apache.org>.
yihua merged PR #19185:
URL: https://github.com/apache/hudi/pull/19185
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org