diff options
author | Binbin <binloveplay1314@qq.com> | 2023-04-18 21:14:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-18 16:14:26 +0300 |
commit | 20533cc1d7684e3ffc8c74bbd6725e4189de6939 (patch) | |
tree | d9b04973990a412024680d7648c915f4e7623bef /tests/assets | |
parent | 42c8c61813a8c3287b8acb3155473551a491aa2b (diff) | |
download | redis-20533cc1d7684e3ffc8c74bbd6725e4189de6939.tar.gz |
Tests: Do not save an RDB by default and add a SIGTERM default AOFRW test (#12064)
In order to speed up tests, avoid saving an RDB (mostly notable on shutdown),
except for tests that explicitly test the RDB mechanism
In addition, use `shutdown-on-sigterm force` to prevetn shutdown from failing
in case the server is in the middle of the initial AOFRW
Also a a test that checks that the `shutdown-on-sigterm default` is to refuse
shutdown if there's an initial AOFRW
Co-authored-by: Guy Benoish <guy.benoish@redislabs.com>
Diffstat (limited to 'tests/assets')
-rw-r--r-- | tests/assets/default.conf | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/assets/default.conf b/tests/assets/default.conf index 4ae420790..de460cc08 100644 --- a/tests/assets/default.conf +++ b/tests/assets/default.conf @@ -13,8 +13,9 @@ databases 16 latency-monitor-threshold 1 repl-diskless-sync-delay 0 +# Turn off RDB by default (to speedup tests) # Note the infrastructure in server.tcl uses a dict, we can't provide several save directives -save 900 1 +save '' rdbcompression yes dbfilename dump.rdb @@ -30,4 +31,7 @@ enable-protected-configs yes enable-debug-command yes enable-module-command yes -propagation-error-behavior panic
\ No newline at end of file +propagation-error-behavior panic + +# Make sure shutdown doesn't fail if there's an initial AOFRW +shutdown-on-sigterm force |