Skip to content

Commit

Permalink
Merge pull request #1990 from doxsch/fix_1955
Browse files Browse the repository at this point in the history
fix: correctly pass ValidateOnly through to CreatePartitionsRequest
  • Loading branch information
bai authored Aug 9, 2021
2 parents 70416ae + b231d1b commit 387f1e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ func (ca *clusterAdmin) CreatePartitions(topic string, count int32, assignment [
request := &CreatePartitionsRequest{
TopicPartitions: topicPartitions,
Timeout: ca.conf.Admin.Timeout,
ValidateOnly: validateOnly,
}

return ca.retryOnError(isErrNoController, func() error {
Expand Down

0 comments on commit 387f1e2

Please sign in to comment.