Commit ed1b731
committed
Adjust default values for replicas and partitions
Requests to create topics will fail if you supply assignments and
partitions/replicas together. If you don't supply a value for
partitions/replicas at all, default values of 1 will be used which also
leads to topic creation failures. Here, the default values for the two
settings are changed to -1 so that topic creations do not fail due to
conflicting settings. Furthermore, this has the benefit of using the
default values set inside the Kafka cluster.
Related:
- tulios/kafkajs#13051 parent 4966e07 commit ed1b731
2 files changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
448 | | - | |
| 447 | + | |
| 448 | + | |
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
443 | | - | |
444 | 442 | | |
445 | 443 | | |
446 | 444 | | |
| |||
0 commit comments