You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "yashmayya (via GitHub)" <gi...@apache.org> on 2026/09/23 21:41:40 UTC
[PR] Trim listener access protocols and skipIndexes values [pinot]
yashmayya opened a new pull request, #19648:
URL: https://github.com/apache/pinot/pull/19648
## The bug
Two parsers split comma-separated values, but do not trim the parts.
**Listener access protocols.** `ServiceStartableUtils.applyClusterConfig` copies cluster configs into the instance config with `PinotConfiguration.setProperty`. This method keeps the raw value. For the cluster config `controller.access.protocols=http, https`, `ListenerConfigUtil.buildListenerConfigs` gets the protocol name `" https"`. It then reads `controller.access.protocols. https.port`, finds no value, and controller startup fails with `null is not a valid port`. The broker, server and minion listeners use the same code.
The same value in the instance config file works. A config that is built from a map or a file splits the value and trims each item.
**`skipIndexes` query option.** `QueryOptionsUtils.getSkipIndexes` splits on `&`, `=` and `,`, but does not trim:
- `SET skipIndexes='col1=inverted, range&col2=sorted'` fails with `No enum constant ...IndexType. RANGE`.
- A column name with a space, for example `" col2"`, does not match the column, so the option has no effect for that column.
## The fix
- `ListenerConfigUtil` trims each protocol name and skips empty names. A blank value still gives no listeners.
- `QueryOptionsUtils` trims each column name and index type. It also uppercases the index type with `Locale.ROOT`, like the `SqlOptionsMode` parsing in the same class.
## Testing
- `ListenerConfigUtilTest`: protocol values with spaces and empty names, set with `setProperty` like `applyClusterConfig` does, and blank values.
- `QueryOptionsUtilsTest`: `skipIndexes` values with spaces around the names.
- Each new test case fails on the old code.
- `spotless`, `checkstyle` and `license` are clean.
## Notes
- #19644 fixes the same cluster config problem for list configs that are read with `getProperty(String, List)`, including `ControllerConf.getControllerAccessProtocols()`. This PR trims inline, because `getCommaSeparatedList` from #19644 is not merged yet.
- Only servers parse `skipIndexes`. During a rolling upgrade, old servers still reject values with spaces.
--
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@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [PR] Trim listener access protocols and skipIndexes values [pinot]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #19648:
URL: https://github.com/apache/pinot/pull/19648#issuecomment-5803573375
## [Codecov](https://app.codecov.io/gh/apache/pinot/pull/19648?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 0.00%. Comparing base ([`33d88e4`](https://app.codecov.io/gh/apache/pinot/commit/33d88e480ba7e05528e619c34e100b0dc3965db6?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`65e3b95`](https://app.codecov.io/gh/apache/pinot/commit/65e3b9505c2a92f6fb0d346f26c561e8d56b816a?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
> :exclamation: There is a different number of reports uploaded between BASE (33d88e4) and HEAD (65e3b95). Click for more details.
>
> <details><summary>HEAD has 18 uploads less than BASE</summary>
>
>| Flag | BASE (33d88e4) | HEAD (65e3b95) |
>|------|------|------|
>|lane-b|2|1|
>|integration|3|1|
>|java-25|5|1|
>|temurin|5|1|
>|lane-a|1|0|
>|integration1|2|0|
>|unittests1|1|0|
>|unittests|2|0|
>|unittests2|1|0|
></details>
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #19648 +/- ##
=============================================
- Coverage 67.93% 0.00% -67.94%
=============================================
Files 3511 3 -3508
Lines 227353 6 -227347
Branches 35966 0 -35966
=============================================
- Hits 154451 0 -154451
+ Misses 60762 6 -60756
+ Partials 12140 0 -12140
```
| [Flag](https://app.codecov.io/gh/apache/pinot/pull/19648/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [integration](https://app.codecov.io/gh/apache/pinot/pull/19648/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `0.00% <ø> (ø)` | |
| [integration1](https://app.codecov.io/gh/apache/pinot/pull/19648/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [integration2](https://app.codecov.io/gh/apache/pinot/pull/19648/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `0.00% <ø> (ø)` | |
| [java-25](https://app.codecov.io/gh/apache/pinot/pull/19648/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `0.00% <ø> (-67.94%)` | :arrow_down: |
| [lane-a](https://app.codecov.io/gh/apache/pinot/pull/19648/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [lane-b](https://app.codecov.io/gh/apache/pinot/pull/19648/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `0.00% <ø> (ø)` | |
| [temurin](https://app.codecov.io/gh/apache/pinot/pull/19648/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `0.00% <ø> (-67.94%)` | :arrow_down: |
| [unittests](https://app.codecov.io/gh/apache/pinot/pull/19648/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [unittests1](https://app.codecov.io/gh/apache/pinot/pull/19648/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [unittests2](https://app.codecov.io/gh/apache/pinot/pull/19648/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/pinot/pull/19648?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</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@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [PR] Trim listener access protocols and skipIndexes values [pinot]
Posted by "yashmayya (via GitHub)" <gi...@apache.org>.
yashmayya merged PR #19648:
URL: https://github.com/apache/pinot/pull/19648
--
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@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org