Open Stebalien opened 3 years ago
Hello,i want to check with you guys whether we have a fix of this concurrent blockstore writing problem, i think our lotus client met this problem when we synced data, like below:
2023-04-09T06:56:58.022+0800 ERROR chainstore store/coalescer.go:213 error dispatching coalesced head change notification: 5 errors occurred:
The badger blockstore has a
state
field to record whether or not the badger database is closed. Unfortunately, either:Unless we have a really good reason not to, we should just use a RWMutex (like we do in go-ds-badger). If we do have a really good reason, we should figure out what we actually need here.