You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In store/iavl/store.go, the implementation of "func (iter *iavlIterator) Close()" does not wait iterateRoutine to fully exit. So, after Close() returns, iterateRoutine can still run for a while, which may cause race condition.
Version
v0.37.4
Steps to Reproduce
Hard to reproduce, since it is a race condition. In our not-opensourced-yet project, we occasionally meet this bug.
Summary of Bug
In store/iavl/store.go, the implementation of "func (iter *iavlIterator) Close()" does not wait iterateRoutine to fully exit. So, after Close() returns, iterateRoutine can still run for a while, which may cause race condition.
Version
v0.37.4
Steps to Reproduce
Hard to reproduce, since it is a race condition. In our not-opensourced-yet project, we occasionally meet this bug.
The following code can fix this bug:
For Admin Use
The text was updated successfully, but these errors were encountered: