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…
…() (#184) 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 <shimon.turjeman@armis.com>
- Loading branch information