Commit c6f7f9a
committed
kgo: allow empty groups when finding coordinator / fetching offsets
v1.10.0 introduced a bug when switching to batch loadCoordinators:
we would strip empty coordinator keys from the request.
Technically, empty coordinator keys are valid. If a request contains an
empty coordinator key (empty group), we would not load it and not set a
map key for it and then using a field in the map value would panic.
Now, we always request all coordinator keys.
This also showed a bug in sharded OffsetFetch: fetching offsets for a
group with no name would be stripped (now we will just forward whatever
error happens).
Closes #283.1 parent b746123 commit c6f7f9a
1 file changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1154 | 1154 | | |
1155 | 1155 | | |
1156 | 1156 | | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
| 1157 | + | |
1160 | 1158 | | |
1161 | 1159 | | |
1162 | 1160 | | |
| |||
2324 | 2322 | | |
2325 | 2323 | | |
2326 | 2324 | | |
2327 | | - | |
2328 | | - | |
2329 | | - | |
| 2325 | + | |
2330 | 2326 | | |
2331 | 2327 | | |
2332 | 2328 | | |
| |||
2487 | 2483 | | |
2488 | 2484 | | |
2489 | 2485 | | |
2490 | | - | |
2491 | | - | |
2492 | | - | |
| 2486 | + | |
2493 | 2487 | | |
2494 | 2488 | | |
2495 | 2489 | | |
| |||
0 commit comments