diff options
author | Joan Touzet <joant@atypical.net> | 2017-07-07 19:59:09 -0400 |
---|---|---|
committer | Joan Touzet <joant@atypical.net> | 2017-07-07 19:59:09 -0400 |
commit | 4eec852fe59f6f4f0dce10c30e9203c6dca9782c (patch) | |
tree | b3b62b02a66284315496d21a905fe9aaeef2baac | |
parent | 3e4da6085b9989aa0a1436b659d7267a3c3f1226 (diff) | |
download | couchdb-652-disable-compaction-daemon.tar.gz |
Disable compaction daemon on eunit run couch startups652-disable-compaction-daemon
Commit 21f9544 enabled the compaction daemon by default. And commit
3afe3ad disabled the compaction daemon at the start of the compaction
daemon tests. Unfortunately, the compaction daemon remains active
during all the other EUnit tests.
I attempted to override the [compactions] _default line in the file
rel/files/eunit.ini but specifying `_default=` or `_default=[]` did not
provide the desired behaviour.
This change disables the _default config as part of
`test_util:start_couch` after startup. This means there is a very
brief period during which the daemon is running, but in empirical
testing the only thing I've seen it manage to do is compact `_dbs`
before being disabled.
Tested with `make soak-eunit` for 3 hours; this seems to eliminate
the `all_dbs_active` error we've been seeing in CI runs since the
compaction daemon was enabled by default.
-rw-r--r-- | src/couch/src/test_util.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couch/src/test_util.erl b/src/couch/src/test_util.erl index 1be177ad7..54fefd50e 100644 --- a/src/couch/src/test_util.erl +++ b/src/couch/src/test_util.erl @@ -72,6 +72,7 @@ start_couch(IniFiles, ExtraApps) -> load_applications_with_stats(), ok = application:set_env(config, ini_files, IniFiles), Apps = start_applications(?DEFAULT_APPS ++ ExtraApps), + ok = config:delete("compactions", "_default", false), #test_context{started = Apps}. stop_couch() -> |