Open tleyden opened 9 years ago
Build sync gateway with the -race flag
I just pushed https://github.com/couchbase/sync_gateway/commit/6bad08136d1bc274e1f3990af33216242dad1a3c which allows calling:
build.sh -race
which will build the sync gw binary with race detection enabled.
This will have the negative side effect of slowing the tests down, so you may want to make this optional for normal builds, but enabled for release builds.
(if build.sh is called on other branches which don't have this change, passing the -race
flag will have no effect, but will be harmless)
This needs a Jenkins change
@michaelkwok this should be done as part of a PR
As mentioned in https://github.com/couchbase/sync_gateway/issues/1257, it's possible to induce and detect data races.
TODO:
-race
flag