uber / cadence

Cadence is a distributed, scalable, durable, and highly available orchestration engine to execute asynchronous long-running business logic in a scalable and resilient way.
https://cadenceworkflow.io
MIT License
7.97k stars 773 forks source link

We now only log "Failed to signal external workflow execution" on unexpected errors #6092

Closed jakobht closed 4 weeks ago

jakobht commented 4 weeks ago

What changed? We now only log "Failed to signal external workflow execution" for unexpected errors. Expected errors are defined as transient errors, not exists errors and "workflow execution already completed" errors.

Why? We have a lot of "Failed to signal extermal workflow execution" error logs in server with the error being "workflow execution already completed".

This is an expected state so we should not log errors for this. Additionally we add transient errors and not exists errors to the things we should not log errors for, as they are expected in the normal operation of the system.

How did you test it? Unit tests

Potential risks

Release notes

Documentation Changes

codecov[bot] commented 4 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 68.98%. Comparing base (233626d) to head (3c87e0b). Report is 18 commits behind head on master.

:exclamation: Current head 3c87e0b differs from pull request most recent head cd77fe7

Please upload reports for the commit cd77fe7 to get more accurate results.

Additional details and impacted files | [Files](https://app.codecov.io/gh/uber/cadence/pull/6092?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uber) | Coverage Δ | | |---|---|---| | [common/util.go](https://app.codecov.io/gh/uber/cadence/pull/6092?src=pr&el=tree&filepath=common%2Futil.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uber#diff-Y29tbW9uL3V0aWwuZ28=) | `78.30% <100.00%> (+0.16%)` | :arrow_up: | | [...vice/history/task/transfer\_active\_task\_executor.go](https://app.codecov.io/gh/uber/cadence/pull/6092?src=pr&el=tree&filepath=service%2Fhistory%2Ftask%2Ftransfer_active_task_executor.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uber#diff-c2VydmljZS9oaXN0b3J5L3Rhc2svdHJhbnNmZXJfYWN0aXZlX3Rhc2tfZXhlY3V0b3IuZ28=) | `68.76% <100.00%> (+0.02%)` | :arrow_up: | ... and [38 files with indirect coverage changes](https://app.codecov.io/gh/uber/cadence/pull/6092/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uber) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/uber/cadence/pull/6092?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uber). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uber) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/uber/cadence/pull/6092?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uber). Last update [233626d...cd77fe7](https://app.codecov.io/gh/uber/cadence/pull/6092?dropdown=coverage&src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uber). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=uber).
coveralls commented 4 weeks ago

Pull Request Test Coverage Report for Build 018fe297-243a-428e-aaa9-0bec8e4c63b4

Details


Files with Coverage Reduction New Missed Lines %
common/task/weighted_round_robin_task_scheduler.go 2 88.56%
common/task/fifo_task_scheduler.go 2 83.51%
common/persistence/taskManager.go 2 74.49%
service/history/task/transfer_active_task_executor.go 2 72.77%
common/persistence/visibility_single_manager.go 2 99.33%
common/membership/hashring.go 2 84.69%
service/matching/poller/history.go 3 74.0%
service/history/queue/timer_queue_processor_base.go 3 77.87%
common/persistence/wrappers/errorinjectors/utils.go 3 93.7%
service/matching/tasklist/task_gc.go 3 92.11%
<!-- Total: 1932 -->
Totals Coverage Status
Change from base Build 018fe0d5-41bf-4bbb-a373-d503fd5baf3b: -0.4%
Covered Lines: 102858
Relevant Lines: 147702

💛 - Coveralls