diff options
author | Nick Vatamaniuc <vatamane@gmail.com> | 2022-12-02 11:30:02 -0500 |
---|---|---|
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | 2022-12-02 14:16:29 -0500 |
commit | 214b564e90937f2083718ba67779a2f04dd245c6 (patch) | |
tree | af5b7588111622dc14a49f4baca10ca35c454b9d | |
parent | 4530f8e1f0613bcb2118aef157f0151507866ddd (diff) | |
download | couchdb-214b564e90937f2083718ba67779a2f04dd245c6.tar.gz |
Add debug logs to smoosh test
Saw this fail 2 in a the last week or so but couldn't reproduce it locally.
Instead of deleting, this is an attempt to emit debug lines to see how far it
goes before it times out in the CI.
-rw-r--r-- | src/smoosh/test/smoosh_tests.erl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/smoosh/test/smoosh_tests.erl b/src/smoosh/test/smoosh_tests.erl index 0ec07025a..9c0bcb075 100644 --- a/src/smoosh/test/smoosh_tests.erl +++ b/src/smoosh/test/smoosh_tests.erl @@ -239,13 +239,17 @@ t_checkpointing_works(DbName) -> setup_db_compactor_intercept(), {ok, _} = delete_doc(DbName, <<"doc1">>), ok = wait_to_enqueue(DbName), + ?debugHere, CompPid = wait_db_compactor_pid(), + ?debugHere, ChanPid = get_channel_pid("ratio_dbs"), config:set("smoosh", "persist", "true", false), meck:reset(smoosh_channel), ChanPid ! checkpoint, % Wait for checkpoint process to exit + ?debugHere, ok = wait_normal_down(), + ?debugHere, % Stop smoosh and then crash the compaction ok = application:stop(smoosh), CompPid ! {raise, error, kapow}, @@ -253,10 +257,15 @@ t_checkpointing_works(DbName) -> setup_db_compactor_intercept(), meck:reset(smoosh_channel), ok = application:start(smoosh), + ?debugHere, CompPid2 = wait_db_compactor_pid(), + ?debugHere, ?assertEqual({1, 0, 0}, sync_status("ratio_dbs")), CompPid2 ! continue, - ok = wait_normal_down(). + ?debugHere, + ok = wait_normal_down(), + ?debugHere, + ok. t_ignore_checkpoint_resume_if_compacted_already(DbName) -> setup_db_compactor_intercept(), |