• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

uber / cadence / 01903bc8-798b-41ce-bd5b-c8557de7de2b / 1
72%
master: 72%

Build:
DEFAULT BRANCH: master
Ran 21 Jun 2024 05:45PM UTC
Files 720
Run time 21s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Jun 2024 05:11PM UTC coverage: 71.496% (-0.002%) from 71.498%
01903bc8-798b-41ce-bd5b-c8557de7de2b.1

push

buildkite

web-flow
Persist failover history in DomainInfo data (#6139)

**What changed?**
Added functionality to persist recent failover event data in the DomainInfo whenever a valid failover is executed.
`FailoverEvent` contains the failover `timestamp`, `fromCluster`, `toCluster`, and `FailoverType`("Force"/"Grace") information.
`FailoverHistory` is the key in the `DomainInfo` `data`. It's a slice stored as a string containing the `FailoverEvents`, with max size defined by `dynamicconfig.FrontendFailoverHistoryMaxSize`. It has a default value of 5 and domain filter allowed.
`FailoverHistory` always keep the n most recent `FailoverEvents` and it's sorted by descending timestamp.

**Why?**
Persist failover information, improving failover visibility to clients and the cadence team.

**How did you test it?**
Unit tests and integration tests. Tested locally, triggering failovers in a multiple Cadence clusters with replication environment.

**Potential risks**
The change does not affect the logic of UpdateDomain. It adds the failover info to the DomainInfo data. The main risk is that we introduce something that can cause the code to panic. Errors while adding the FailoverHistory are logged as warnings and do not return/interrupt the UpdateDomain action.

**Release notes**

**Documentation Changes**

106671 of 149198 relevant lines covered (71.5%)

2612.88 hits per line

Source Files on job 01903bc8-798b-41ce-bd5b-c8557de7de2b.1
  • Tree
  • List 720
  • Changed 291
  • Source Changed 0
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1903
  • 1e300fc1 on github
  • Prev Job for on master (#0190377e-f43d-435a-8a67-a08ecb9832b7.1)
  • Next Job for on master (#01903cd7-c1ac-49f3-a7a4-fe9da6c16ce7.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc