You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "PCloud63514 (via GitHub)" <gi...@apache.org> on 2025/08/09 07:30:57 UTC

[PR] [apache#7980] fix(config): Improve ConfigEntry parsing of comma-separated configuration [gravitino]

PCloud63514 opened a new pull request, #7993:
URL: https://github.com/apache/gravitino/pull/7993

   ### What changes were proposed in this pull request?
   Update `ConfigEntry` sequence parsing to:
   - Trim leading/trailing whitespace for the input and each element
   - Ignore empty/blank elements after trimming
   - Preserve element order and duplicates
   - Update tests accordingly (add parsing tests, remove obsolete empty-element failure, verify `checkValue` runs after parsing)
   
   ### Why are the changes needed?
   Issue #7980 requests trimming and skipping empty elements for comma-separated configuration.
   Previous behavior kept empty strings, which could lead to unexpected `IllegalArgumentException` and less ergonomic configuration.
   
   Fix: #7980
   
   ### Does this PR introduce _any_ user-facing change?
   - No API change.
   - Behavior change: parsing now trims and drops blank elements; configurations relying on empty strings being preserved will parse differently.
   
   
   ### How was this patch tested?
   
   (Please test your changes, and provide instructions on how to test it:
     1. If you add a feature or fix a bug, add a test to cover your changes.
     2. If you fix a flaky test, repeat it for many times to prove it works.)
   


-- 
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@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [apache#7980] fix(config): Improve ConfigEntry parsing of comma-separated configuration [gravitino]

Posted by "PCloud63514 (via GitHub)" <gi...@apache.org>.
PCloud63514 commented on PR #7993:
URL: https://github.com/apache/gravitino/pull/7993#issuecomment-3170464481

   Sorry, I am closing this PR and reopening it to change the commit branch name.


-- 
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@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [apache#7980] fix(config): Improve ConfigEntry parsing of comma-separated configuration [gravitino]

Posted by "PCloud63514 (via GitHub)" <gi...@apache.org>.
PCloud63514 closed pull request #7993: [apache#7980] fix(config): Improve ConfigEntry parsing of comma-separated configuration
URL: https://github.com/apache/gravitino/pull/7993


-- 
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@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org