Commit 380cda9
authored
KAFKA-20021 Document when Admin#createPartitions throws InvalidPartitionsException (apache#21245)
Refer to https://issues.apache.org/jira/browse/KAFKA-20021.
The `Admin#createPartitions` method anticipates an
`InvalidPartitionsException` when the requested partition count is less
than or equal to the current partition count (i.e., decreasing
partitions or keeping the same count is not allowed).
However, this exception was missing from the Javadoc description of the
returned `CreatePartitionsResult`, see
https://kafka.apache.org/41/javadoc/org/apache/kafka/clients/admin/Admin.html#createPartitions.
This PR adds `InvalidPartitionsException` to the Javadoc to clarify this
behavior for users.
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>1 parent 04da4fb commit 380cda9
1 file changed
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
| 668 | + | |
| 669 | + | |
668 | 670 | | |
669 | 671 | | |
670 | 672 | | |
| |||
0 commit comments