-
Notifications
You must be signed in to change notification settings - Fork 16.8k
[incubator/kafka]: add reassignPartitions to topic configuration #7623
[incubator/kafka]: add reassignPartitions to topic configuration #7623
Conversation
/assign @davidkarlsen |
/assign @benjigoldberg |
@benjigoldberg is this ok to merge? |
@davidkarlsen yes |
Signed-off-by: Giacomo Guiulfo <giacomoguiulfo@gmail.com>
Signed-off-by: Giacomo Guiulfo <giacomoguiulfo@gmail.com>
@benjigoldberg (cc @davidkarlsen) |
Thanks @giacomoguiulfo -- apologies for the delay on merging this. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: benjigoldberg, giacomoguiulfo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* superset-annotations: (27 commits) [stable/superset] Bump version to 0.1.3 [stable/superset] Add service annotations support [stable/drupal] Fix chart not being upgradable (helm#7825) [stable/parse] Fix chart not being upgradable (helm#7824) [stable/jasperreports] Fix chart not being upgradable (helm#7818) [stable/osclass] Fix chart not being upgradable (helm#7817) [stable/phpbb] Fix chart not being upgradable (helm#7820) [stable/ghost] Fix chart not being upgradable (helm#7814) [stable/suitecrm] Fix chart not being upgradable (helm#7816) [stable/phpmyadmin] Fix chart not being upgradable (helm#7830) [stable/magento] Release 2.0.6 (helm#7810) [stable/wordpress] Fix chart not being upgradable (helm#7831) [stable/mongodb] Use .Values.existingSecret for standalone deployments (helm#7839) [incubator/kafka]: add reassignPartitions to topic configuration (helm#7623) Changed syntax error in custom-metrics-apiserver-service and secret (label to labels) (helm#7295) [stable/spinnaker] Changing email of dwardu89 (helm#7838) fix: mongo init issues (helm#7772) [stable/mattemost-team-edition] Add initial charts for Mattermost Team Edition (helm#5987) Fixed TLS Ingress, updated mongo dep requirements and app to latest version (helm#7636) Adding dwardu89 to owners and chart maintainers of stable/spinnaker (helm#7751) ...
…m#7623) * [incubator/kafka]: add reassignPartitions to topic configuration Signed-off-by: Giacomo Guiulfo <giacomoguiulfo@gmail.com> * [incubator/kafka]: bump chart to 0.10.0 Signed-off-by: Giacomo Guiulfo <giacomoguiulfo@gmail.com> Signed-off-by: jenkin-x <jicowan@hotmail.com>
Wouldn't it be better to move the if statement from the template to runtime? Currently, if the reassignPartitions flag is set, non-existing topics are not created anymore. What about changing the script to the following behaviour:
WDYT? |
@vanto If it works, it sounds good to me. I agree this is not the best way to do things. |
…m#7623) * [incubator/kafka]: add reassignPartitions to topic configuration Signed-off-by: Giacomo Guiulfo <giacomoguiulfo@gmail.com> * [incubator/kafka]: bump chart to 0.10.0 Signed-off-by: Giacomo Guiulfo <giacomoguiulfo@gmail.com> Signed-off-by: Jakob Niggel <info@jakobniggel.de>
…m#7623) * [incubator/kafka]: add reassignPartitions to topic configuration Signed-off-by: Giacomo Guiulfo <giacomoguiulfo@gmail.com> * [incubator/kafka]: bump chart to 0.10.0 Signed-off-by: Giacomo Guiulfo <giacomoguiulfo@gmail.com>
What this PR does / why we need it:
The only way to increase the replication factor of an existing topic, is by reassigning partitions. This PR adds a new field to the topic configuration values:
reassignPartitions
. When this value is set totrue
, thekafka-config-job
will reassign partitions and increase the replication factor of an existing topic. Bothpartitions
andreplicationFactor
need to be specified as well.