Search stability improvements#1033
Conversation
…r improvments for mutex contention and Results channel panics Signed-off-by: Martin Disibio <mdisibio@gmail.com>
mapno
left a comment
There was a problem hiding this comment.
lgtm. probably another couple of eyes would be good
annanay25
left a comment
There was a problem hiding this comment.
Really nice batch of changes, just one comment on trying to understand the deadlock state better.
annanay25
left a comment
There was a problem hiding this comment.
Can add a bunch of bugfixes to the Changelog :)
|
Looks good to me, but we are getting a test timeout in integration tests.
|
|
The test that timed out is |
|
If the |
|
Unable to reproduce the flakey tests locally, and consensus is they are likely not caused by these changes. Merging. |
What this PR does:
This PR fixes several rough spots:
instance.writeTraceToHeadBlock, by takingi.blocksMtxuntil all search routines are started ininstance.Searchchannel already closedandsend on closed channelinsearch.Resultsby redoing the cleanup and usingsync.WaitGroupt.TempDir, behavior discussed here: golang/go/issues/43547StreamingSearchBlock.FlushBufferwith a mutexWhich issue(s) this PR fixes:
Fixes n/a
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]