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

Fix deadlock in sharded nosql store #6493

Conversation

taylanisikdemir
Copy link
Member

What changed?
Sharded nosql store has a deadlock where the mutex is not unlocked in one of the error paths.
This was reported in #6492.

Why?
Fix deadlock.

How did you test it?
First Reproduced the issue without fixing the code. Then applied the fix and ensured test is passing

@taylanisikdemir taylanisikdemir merged commit d871c20 into cadence-workflow:master Nov 13, 2024
18 checks passed
Copy link

codecov bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.12%. Comparing base (d2d1d47) to head (30ec610).
Report is 1 commits behind head on master.

Additional details and impacted files
Files with missing lines Coverage Δ
common/persistence/nosql/sharded_nosql_store.go 79.34% <100.00%> (+21.10%) ⬆️

... and 6 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 d2d1d47...30ec610. Read the comment docs.

Copy link
Member

@davidporter-id-au davidporter-id-au left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@taylanisikdemir taylanisikdemir deleted the taylan/nosql_sharded_store_deadlock_fix branch November 13, 2024 06:30
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.

2 participants