Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

jakobht
Copy link
Member

@jakobht jakobht commented Jun 4, 2024

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

Copy link

codecov bot commented Jun 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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

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 Coverage Δ
common/util.go 78.30% <100.00%> (+0.16%) ⬆️
...vice/history/task/transfer_active_task_executor.go 68.76% <100.00%> (+0.02%) ⬆️

... and 38 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 233626d...cd77fe7. Read the comment docs.

We have a log 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.
@coveralls
Copy link

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

Details

  • 15 of 15 (100.0%) changed or added relevant lines in 2 files are covered.
  • 1932 unchanged lines in 36 files lost coverage.
  • Overall coverage decreased (-0.4%) to 69.639%

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%
Totals Coverage Status
Change from base Build 018fe0d5-41bf-4bbb-a373-d503fd5baf3b: -0.4%
Covered Lines: 102858
Relevant Lines: 147702

💛 - Coveralls

@jakobht jakobht merged commit a6eeb7e into cadence-workflow:master Jun 4, 2024
18 checks passed
timl3136 pushed a commit to timl3136/cadence that referenced this pull request Jun 6, 2024
…kflow#6092)

We have a log 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants