Closed demirkayaender closed 3 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/context.go | 24 | 25 | 96.0% | ||
<!-- | Total: | 24 | 25 | 96.0% | --> |
Totals | |
---|---|
Change from base Build 23625b2f-f895-4e62-be1e-e45768586dbe: | 0.08% |
Covered Lines: | 12202 |
Relevant Lines: | 19296 |
What changed? Added locks around the code we access the children object which should prevent the race condition
AddChildCancelParent test is taken from https://github.com/uber-go/cadence-client/pull/1139
Why? Without this fix, we cause shutdown crashes
How did you test it?
go test -race -test.count 1 -test.run TestChildParentCancelRace ./internal
andgo test -race ./internal
to run them allPotential risks