Skip to content

Conversation

@aayushshah15
Copy link
Contributor

@aayushshah15 aayushshah15 commented Jun 12, 2022

Backport 2/2 commits from #81005.

/cc @cockroachdb/release


Related to #80993
Relates to #79453

This commit makes it such that failures to rebalance replicas on
decommissioning nodes no longer move the replica out of the
replicateQueue as they previously used to. Instead, these failures now
put these replicas into the replicateQueue's purgatory, which will retry
these replicas every minute.

All this is intended to improve the speed of decommissioning towards
its tail end, since previously, failures to rebalance these replicas
meant that they were only retried after about 10 minutes.

Release note: None

Release justification: low risk change to improve decommissioning reliability.

Previously, replicas in the replicateQueue purgatory were only
reprocessed after changes to the cluster's topology. This included
things like changes to any node's liveness or changes to individual
store descriptors.

This commit makes it such that replicas in the replicateQueue purgatory
are also (attempted to be) reprocessed every minute. This extension
allows for, for instance, replicateQueue purgatory errors that were
caused as a result of the cluster having hardware related issues (e.g.
rebalances failing due to snapshots temporarily timing out).

Release note: None
This commit makes it such that failures to rebalance replicas on
decommissioning nodes no longer move the replica out of the
replicateQueue as they previously used to. Instead, these failures now
put these replicas into the replicateQueue's purgatory, which will retry
these replicas every minute.

All this is intended to improve the speed of decommissioning towards
its tail end, since previously, failures to rebalance these replicas
meant that they were only retried after about 10 minutes.

Release note: None
@aayushshah15 aayushshah15 requested a review from a team as a code owner June 12, 2022 22:59
@blathers-crl
Copy link

blathers-crl bot commented Jun 12, 2022

Thanks for opening a backport.

Please check the backport criteria before merging:

  • Patches should only be created for serious issues or test-only changes.
  • Patches should not break backwards-compatibility.
  • Patches should change as little code as possible.
  • Patches should not change on-disk formats or node communication protocols.
  • Patches should not add new functionality.
  • Patches must not add, edit, or otherwise modify cluster versions; or add version gates.
If some of the basic criteria cannot be satisfied, ensure that the exceptional criteria are satisfied within.
  • There is a high priority need for the functionality that cannot wait until the next release and is difficult to address in another way.
  • The new functionality is additive-only and only runs for clusters which have specifically “opted in” to it (e.g. by a cluster setting).
  • New code is protected by a conditional check that is trivial to verify and ensures that it only runs for opt-in clusters.
  • The PM and TL on the team that owns the changed code have signed off that the change obeys the above rules.

Add a brief release justification to the body of your PR to justify this backport.

Some other things to consider:

  • What did we do to ensure that a user that doesn’t know & care about this backport, has no idea that it happened?
  • Will this work in a cluster of mixed patch versions? Did we test that?
  • If a user upgrades a patch version, uses this feature, and then downgrades, what happens?

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@aayushshah15 aayushshah15 requested review from AlexTalks, kvoli and nvb June 21, 2022 23:42
@aayushshah15 aayushshah15 merged commit fcae3f9 into cockroachdb:release-22.1 Jul 5, 2022
@aayushshah15 aayushshah15 deleted the backport22.1-81005 branch July 5, 2022 18:02
@nvb
Copy link
Contributor

nvb commented Jul 6, 2022

@aayushshah15 I think this skewed with #82680, breaking the release-22.1 build along the way.

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.

4 participants