This is an automated email from the ASF dual-hosted git repository.

jan pushed a commit to branch auto-delete-3-plus-shard-move
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 9568238837f2f420657ffb3404929f2df73febcf
Author: Robert Newson <[email protected]>
AuthorDate: Mon Jun 9 16:58:52 2025 +0100

    shorten natural mem3 sync delay
---
 Makefile                                   | 1 +
 test/elixir/test/config/cluster-config.ini | 4 ++++
 test/elixir/test/drop_seq_statem_test.exs  | 6 +++---
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 14935225b..0057cbcc9 100644
--- a/Makefile
+++ b/Makefile
@@ -262,6 +262,7 @@ elixir-cluster-with-quorum: elixir-init devclean
 elixir-cluster: export MIX_ENV=integration
 elixir-cluster: elixir-init devclean
        @dev/run -n 3 -q -a adm:pass --with-nouveau --no-auto \
+               --locald-config test/elixir/test/config/cluster-config.ini \
                --no-eval 'mix test --trace --only with_cluster $(EXUNIT_OPTS)'
 
 .PHONY: elixir
diff --git a/test/elixir/test/config/cluster-config.ini 
b/test/elixir/test/config/cluster-config.ini
new file mode 100644
index 000000000..ee59eed03
--- /dev/null
+++ b/test/elixir/test/config/cluster-config.ini
@@ -0,0 +1,4 @@
+[mem3]
+sync_delay = 100
+sync_frequency = 20
+
diff --git a/test/elixir/test/drop_seq_statem_test.exs 
b/test/elixir/test/drop_seq_statem_test.exs
index 499660023..2695b8a1f 100644
--- a/test/elixir/test/drop_seq_statem_test.exs
+++ b/test/elixir/test/drop_seq_statem_test.exs
@@ -22,7 +22,6 @@ defmodule DropSeqStateM do
         db_name = random_db_name()
         n = Enum.random(1..3)
         q = Enum.random(1..10)
-
         {:ok, _} = create_db(db_name, query: %{n: n, q: q})
         r = run_commands(__MODULE__, cmds, [{:dbname, db_name}])
         {_history, _state, result} = r
@@ -163,7 +162,7 @@ defmodule DropSeqStateM do
     compact(db_name)
     # try to avoid seeing pre-compact state of shards immediately after
     # compactor pids exit
-    :timer.sleep(1000)
+    :timer.sleep(500)
   end
 
   def changes(db_name) do
@@ -292,7 +291,8 @@ defmodule DropSeqStateM do
     assert resp.status_code == 202,
            "sync_shards failed #{resp.status_code} #{inspect(resp.body)}"
 
-    :timer.sleep(1000)
+    # mem3_rep configured for 100ms frequency
+    :timer.sleep(200)
   end
 
   def precondition(s, {:call, _, :update_document, [_db_name, doc_id]}) do

Reply via email to