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

uber / cadence / 01905fb8-bb8f-4e40-b7b8-0b7dc522c2e4
72%

Build:
DEFAULT BRANCH: master
Ran 28 Jun 2024 05:10PM UTC
Jobs 1
Files 720
Run time 2min
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

28 Jun 2024 04:40PM UTC coverage: 71.438% (+0.006%) from 71.432%
01905fb8-bb8f-4e40-b7b8-0b7dc522c2e4

push

buildkite

web-flow
Bugfix: replication messaged dropped during host shutdown (#6143)

What changed?

Internal details: CDNC-9597

A user reported some problems during a failover in which a workflow, during a continue-as-new event got dropped during replication silently, without any corresponding DLQ message. We were able to track down the (expected) cause to likely have been a shard movement during that time which triggers several unpleasant edge-conditions with interactions with the following:

A silent dropping of errors due to the shard closing
The in-memory offsets being advanced incorrectly during shard-closed events due to some missing control-flow handling
The GetReplication API call actually being a write call and tracking offsets (perhaps somewhat surprisingly, I really don't like this API).
The GetReplicationCall being called, with these invalid parameters during a shard-closing event.
How did you test it?

Tested locally and with unit tests. Was able to repro the sequence of events mostly with unit-tests.

14 of 15 new or added lines in 1 file covered. (93.33%)

34 existing lines in 11 files now uncovered.

104697 of 146557 relevant lines covered (71.44%)

2650.06 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
84.34
1.58% service/history/replication/task_processor.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
84.34
1.58% service/history/replication/task_processor.go
2
88.06
-1.0% common/task/weighted_round_robin_task_scheduler.go
2
73.23
-1.57% service/matching/tasklist/db.go
2
82.47
0.0% common/task/fifo_task_scheduler.go
2
75.62
-0.06% service/frontend/api/handler.go
2
82.21
-1.23% service/matching/tasklist/task_writer.go
3
50.46
-0.55% common/log/tag/tags.go
3
85.52
-1.01% common/persistence/nosql/nosql_task_store.go
4
85.83
-0.81% service/history/task/transfer_standby_task_executor.go
4
80.95
-2.12% common/archiver/filestore/historyArchiver.go
9
75.86
-2.39% service/matching/tasklist/task_reader.go
Jobs
ID Job ID Ran Files Coverage
1 01905fb8-bb8f-4e40-b7b8-0b7dc522c2e4.1 28 Jun 2024 05:10PM UTC 720
71.44
Source Files on build 01905fb8-bb8f-4e40-b7b8-0b7dc522c2e4
  • Tree
  • List 720
  • Changed 286
  • Source Changed 0
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c1793e1e on github
  • Prev Build on v1.2.11-prerelease9 (#01905AEC...)
  • Next Build on master (#019060E3...)
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

© 2025 Coveralls, Inc