-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apply: Allow ignoring a specific error returned from updatePartitions()
When applying topic's configuration, we'd like to be able avoid failing in case the desired topic's partition count is smaller than the actual topic's partitions count (on the broker). We know that Kafka doesn't allow partitions decrease, so instead of failing the operation we'd like to continue without doing anything. This is very convenient when trying to apply a batch of topics in which case, we don't want to fail the rest of the batch for one topic that its partition count configuration is lower than the actual partitions count. This change is backward compatible, as the default behavior is kept. Signed-off-by: shimon-armis <[email protected]>
- Loading branch information
1 parent
48409ce
commit 19daf93
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters