Closed cabrador closed 4 months ago
Is there a test within Aida that would have detected this when being run with a race detector? Should such a test run be included in the Aida tests promoting developer branch commits to main?
We had an internal discussion earlier about introducing race detection. I will bring this up again on our meeting today.
Description
This PR fixes data-race inside
ArchiveInquirer
. This bug was caused by incorrectly passing acarmenStateDB
containingtxCtx
which is used by bothcarmenHeadState
andcarmenHistoricState
. Now only instance of the database itself is passed and newcarmenStateDB
instance is created hence eacharchive-inquiry
receives owntxCtx
.Fixes #1088
Type of change