Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configurable wait time between restart and preferred leader election #8

Open
wants to merge 1 commit into
base: rackrolling-update
Choose a base branch
from

Conversation

tinaselenge
Copy link
Owner

This overall addresses strimzi/proposals#103 (comment).

  • Send elect request only if there are partitions that need leader re-elections.
  • After reconfiguration, wait for nodes to have SERVING state, rather than LEADING_ALL_PREFERRED (this is from the proposal PR comment).
  • Refactor tests to reflect the reconfiguration change, and accurately test logging reconfiguration.

Type of change

Select the type of your PR

  • Bugfix
  • Enhancement / new feature
  • Refactoring
  • Documentation

Description

Please describe your pull request

Checklist

Please go through this checklist and make sure all applicable tasks have been done

  • Write tests
  • Make sure all tests pass
  • Update documentation
  • Check RBAC rights for Kubernetes / OpenShift roles
  • Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
  • Reference relevant issue(s) and close them after merging
  • Update CHANGELOG.md
  • Supply screenshots for visual changes, such as Grafana dashboards

…ion.

Send elect request only if there are partitions that need leader relections.
After reconfiguration, wait for nodes to have SERVING state, rathen than LEADING_ALL_PREFERRED (this is from the proposal PR comment).
Refactor tests to reflect the reconfiguration change, and accurately test logging reconfiguration.

Signed-off-by: Gantigmaa Selenge <tina.selenge@gmail.com>
@@ -530,6 +533,7 @@ public static RackRolling rollingRestart(PodOperator podOperator,
kafkaConfigProvider,
kafkaLogging,
postOperationTimeoutMs,
waitBetweenRestartAndPreferredLeaderElection,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering if we can have a smaller name? Something like restartAndPreferredLeaderElectionDelay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants