forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Bug]: priority nonce mempool iteration is not thread safe #675
Comments
12 tasks
yihuang
changed the title
[Bug]: concurrent map read and map write from priority nonce mempool
[Bug]: priority nonce mempool iteration is not thread safe
Aug 27, 2024
there are general data races other than map read/write:
|
Actually, I only get the above error with the new unit test, I don't see the concurrent map access error. |
error log was from some failed testground test |
12 tasks
yihuang
added a commit
that referenced
this issue
Sep 2, 2024
* Problem: mempool iteration is not thread safe Closes: #675 Solution: - hold the lock during iteration * Update CHANGELOG.md Signed-off-by: yihuang <[email protected]> * cleanup * cleanup * commit * remove invalid txs out of the loop * fix error handling * Update baseapp/abci_utils.go Signed-off-by: yihuang <[email protected]> --------- Signed-off-by: yihuang <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
What happened?
fatal during concurrent call
Cosmos SDK Version
0.50
How to reproduce?
The text was updated successfully, but these errors were encountered: