Commit a310bcb
authored
MINOR: system-tests: fix KafkaServer#leader (#22168)
PR #7136 standardised the output format for TopicCommand to print `none`
when the leader for a TP is unknown. `KafkaServer#leader` in
system-tests however fails to account for this change and possibly
panics trying to type cast `none` to an integer.
This change fixes the regression so that we parse the value correctly
and return None if the leader is undefined.
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>, Federico Valeri
<fedevaleri@gmail.com>1 parent ebd7cd3 commit a310bcb
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1657 | 1657 | | |
1658 | 1658 | | |
1659 | 1659 | | |
1660 | | - | |
| 1660 | + | |
| 1661 | + | |
1661 | 1662 | | |
1662 | | - | |
1663 | | - | |
| 1663 | + | |
| 1664 | + | |
1664 | 1665 | | |
1665 | 1666 | | |
1666 | 1667 | | |
| |||
0 commit comments