Open jayaprabhakar opened 1 day ago
I think this issue will be resolved once this PR https://github.com/slatedb/slatedb-go/pull/34 is merged.
In the updated code, we now acquire lock before accessing lastWalID
func (m *Memtable) LastWalID() mo.Option[uint64] {
m.RLock()
defer m.RUnlock()
return m.lastWalID
}
func (m *Memtable) SetLastWalID(lastWalID uint64) {
m.Lock()
defer m.Unlock()
m.lastWalID = mo.Some(lastWalID)
}
@jayaprabhakar https://github.com/slatedb/slatedb-go/pull/34 is merged and this should be resolved. Can you please test once with the latest code
Go provides a basic race detector https://go.dev/blog/race-detector. When running the fizzbee's concurrency tests with race detector enabled, I get this error
The problematic code is here,
and