After running acra-server with -race parameter compiler found some places with race conditions. Here they are fixed.
No tests, because I don't know how to check it without manual checks with unit tests. And even running binary with this flag it only warns but don't stop execution (that we can detect by calls). IMHO, with this case we can leave it as is. Or discuss and plan how to run integration tests with compiled binaries with -race flag. But we should keep in mind that it decreases performance x2-x2.5 (measured it locally).
Met one failed test when run it locally:
After running
acra-server
with-race
parameter compiler found some places with race conditions. Here they are fixed. No tests, because I don't know how to check it without manual checks with unit tests. And even running binary with this flag it only warns but don't stop execution (that we can detect by calls). IMHO, with this case we can leave it as is. Or discuss and plan how to run integration tests with compiled binaries with-race
flag. But we should keep in mind that it decreases performance x2-x2.5 (measured it locally).Checklist