From 15a048d4f0465dc58be21d7e46d527ccfcc34a64 Mon Sep 17 00:00:00 2001 From: Roshan Khatri <117414976+roshkhatri@users.noreply.github.com> Date: Thu, 2 Nov 2023 04:55:48 -0700 Subject: [PATCH] re-enable defrag tests in cluster mode. (#12710) Reverts the skipping defrag tests in cluster mode (done in #12672. instead it skips only some defrag tests that are relevant for cluster modes. The test now run well after investigating and making the changes in #12674 and #12694. Co-authored-by: Oran Agra --- tests/unit/memefficiency.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/memefficiency.tcl b/tests/unit/memefficiency.tcl index 0fad0fba7..5081d7e19 100644 --- a/tests/unit/memefficiency.tcl +++ b/tests/unit/memefficiency.tcl @@ -168,7 +168,6 @@ run_solo {defrag} { r config set appendonly no r config set key-load-delay 0 - if {$type eq "standalone"} { test "Active defrag eval scripts: $type" { r flushdb r script flush sync @@ -396,6 +395,7 @@ run_solo {defrag} { r save ;# saving an rdb iterates over all the data / pointers } {OK} + if {$type eq "standalone"} { ;# skip in cluster mode test "Active defrag big list: $type" { r flushdb r config resetstat @@ -607,7 +607,7 @@ run_solo {defrag} { assert {$digest eq $newdigest} r save ;# saving an rdb iterates over all the data / pointers } - } + } ;# standalone } } }