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 82799934d4097a218131bd0319a2d4c2bc1b83ac
Author: Robert Newson <rnew...@apache.org>
AuthorDate: Wed Jun 25 16:54:41 2025 +0100

    print range of doc when adding or deleting
---
 test/elixir/test/drop_seq_statem_test.exs | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test/elixir/test/drop_seq_statem_test.exs 
b/test/elixir/test/drop_seq_statem_test.exs
index 657098bfb..a21380426 100644
--- a/test/elixir/test/drop_seq_statem_test.exs
+++ b/test/elixir/test/drop_seq_statem_test.exs
@@ -252,6 +252,7 @@ defmodule DropSeqStateM do
     end
 
     wait_for_internal_replication(db_name)
+    get_range(db_name, doc_id)
   end
 
   def delete_document(db_name, doc_id) do
@@ -268,6 +269,7 @@ defmodule DropSeqStateM do
     end
 
     wait_for_internal_replication(db_name)
+    get_range(db_name, doc_id)
   end
 
   def update_peer_checkpoint(db_name) do
@@ -459,6 +461,12 @@ defmodule DropSeqStateM do
     :timer.sleep(3000)
   end
 
+  def get_range(db_name, doc_id) do
+    resp = Couch.get("/#{db_name}/_shards/#{doc_id}")
+    assert resp.status_code == 200
+    resp.body["range"]
+  end
+
   def precondition(s, {:call, _, :update_document, [_db_name, doc_id]}) do
     not doc_exists(s, doc_id)
   end

Reply via email to