crypto-org-chain / crypto-org-chain/cronos-store

memiavl/tree is not thread safe

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
0
Forks
3
PR merge metrics
No merged PRs in 30d

Description

because iavl.Cache is not thread safe. we may need to consider `ApplyChangeSetAsync` and `WaitToCompleteAysncWrite` if we need to run async writers, now we use unchecked in-place updates.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading memiavl/tree and the iavl.Cache usage, then inspect the named ApplyChangeSetAsync and WaitToCompleteAysncWrite paths. Determine how the current unchecked in-place updates interact with concurrent access and whether asynchronous writers are required. Done means the thread-safety behavior and needed change are clearly established.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.