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
It looks like something is still occasionally trying to access the datastore after the database has been closed. The test still passed in this case, but there is a chance that it may be occasionally responsible for test flakiness. Rate of occurrence seems quite low (<~= 1:100), but I have seen it a few times now.
My best guess so far is that this is being logged in db/subscriptions.go handleSubscription, with an event being received after close:
for evt := range pub.Event() {
txn, err := db.NewTxn(ctx, false)
if err != nil {
log.Error(ctx, err.Error())
continue
}
*simpleChannel[T].Close() is asynchronous, and does leave room for it to not have fully closed before the root datastore has closed. It would however be odd that an 'extra' event could be received after the datastore has been closed - this would suggest that the test is exiting prematurely, and that extra, unexpected, events are being received.
The text was updated successfully, but these errors were encountered:
It looks like something is still occasionally trying to access the datastore after the database has been closed. The test still passed in this case, but there is a chance that it may be occasionally responsible for test flakiness. Rate of occurrence seems quite low (<~= 1:100), but I have seen it a few times now.
My best guess so far is that this is being logged in db/subscriptions.go
handleSubscription
, with an event being received after close:*simpleChannel[T].Close()
is asynchronous, and does leave room for it to not have fully closed before the root datastore has closed. It would however be odd that an 'extra' event could be received after the datastore has been closed - this would suggest that the test is exiting prematurely, and that extra, unexpected, events are being received.The text was updated successfully, but these errors were encountered: