Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

[PDS-243785] Count Attempted Hosts per DC #5903

Merged
merged 4 commits into from
Feb 11, 2022

Conversation

jeremyk-91
Copy link
Contributor

@jeremyk-91 jeremyk-91 commented Feb 10, 2022

Goals (and why):
#5902 introduces a consideration for datacenters when choosing hosts to retry on. However, this is still vulnerable to an edge case (h/t @zpear): if a node in DC 1 bounces while it's being attempted and we go to DC 2, then it's possible that we retry exclusively in DC 2 (i.e., we only ever made a single attempt in DC 1).

==COMMIT_MSG==
Cassandra host routing now distributes retry attempts between datacenters as evenly as possible.
==COMMIT_MSG==

Implementation Description (bullets):
Ban hosts from the datacenter that has had the most hosts attempted.

Testing (What was existing testing like? What have you done to improve it?): Added new tests

Concerns (what feedback would you like?): Did I accidentally break anything?

Where should we start reviewing?: small

Priority (whenever / two weeks / yesterday): 🔥

@changelog-app
Copy link

changelog-app bot commented Feb 10, 2022

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Cassandra host routing now distributes retry attempts between datacenters as evenly as possible.

Check the box to generate changelog(s)

  • Generate changelog entry

.filter(attempts -> Objects.equals(
attempts,
maximumAttemptsPerDatacenter.orElseThrow(() -> new SafeIllegalStateException(
"Unexpectedly could not find the max attempts per " + "datacenter"))))
Copy link
Contributor

Choose a reason for hiding this comment

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

oops

@bulldozer-bot bulldozer-bot bot merged commit ee5cee8 into develop Feb 11, 2022
@bulldozer-bot bulldozer-bot bot deleted the jkong/count-the-cost-2 branch February 11, 2022 11:48
@svc-autorelease
Copy link
Collaborator

Released 0.542.0

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

Successfully merging this pull request may close these issues.

4 participants