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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]