Commit fceb60d
committed
fix(config): accept '_' digit separator in addr port
parsePort used Integer.parseInt, which rejects underscores, while every
other numeric config key parses via Numbers.parseInt/parseLong, which
treat '_' as a digit-group separator. The merge-base ingress parser
(Sender.addAddressEntry) also used Numbers.parseInt, so addr=host:9_000
parsed before this refactor and regressed to rejection.
Switch parsePort to Numbers.parseInt (catching NumericException) to
restore prior behaviour and align addr with the other numeric keys.1 parent 98269c8 commit fceb60d
2 files changed
Lines changed: 10 additions & 2 deletions
File tree
- core/src
- main/java/io/questdb/client/impl
- test/java/io/questdb/client/test/impl
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | | - | |
| 237 | + | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
64 | 72 | | |
65 | 73 | | |
66 | 74 | | |
| |||
0 commit comments