summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkjnilsson <knilsson@pivotal.io>2020-09-17 14:33:01 +0100
committerkjnilsson <knilsson@pivotal.io>2020-09-17 14:33:33 +0100
commit8f75eb5e984dea13ceaff075b40712e5ac1ace84 (patch)
treec3a5bf57a7a1d367f211d87b08f443e24e099272
parent280a22f8a8ccaa8fdb123b6da2a031ff6b8c53f7 (diff)
downloadrabbitmq-server-git-8f75eb5e984dea13ceaff075b40712e5ac1ace84.tar.gz
quorum_queue_SUITE test reliability
For mixed versions.
-rw-r--r--src/rabbit_quorum_queue.erl1
-rw-r--r--test/quorum_queue_SUITE.erl18
2 files changed, 16 insertions, 3 deletions
diff --git a/src/rabbit_quorum_queue.erl b/src/rabbit_quorum_queue.erl
index 327fc11a5e..c64ccae9a8 100644
--- a/src/rabbit_quorum_queue.erl
+++ b/src/rabbit_quorum_queue.erl
@@ -102,7 +102,6 @@ handle_event({ra_event, From, Evt}, QState) ->
{new | existing, amqqueue:amqqueue()} | rabbit_types:channel_exit().
declare(Q) when ?amqqueue_is_quorum(Q) ->
- rabbit_log:info("quorum_queue declaring ~w", [Q]),
QName = amqqueue:get_name(Q),
Durable = amqqueue:is_durable(Q),
AutoDelete = amqqueue:is_auto_delete(Q),
diff --git a/test/quorum_queue_SUITE.erl b/test/quorum_queue_SUITE.erl
index cc54aae78e..e8fffd88e0 100644
--- a/test/quorum_queue_SUITE.erl
+++ b/test/quorum_queue_SUITE.erl
@@ -430,7 +430,12 @@ start_queue_concurrent(Config) ->
ok.
quorum_cluster_size_3(Config) ->
- quorum_cluster_size_x(Config, 3, 3).
+ case is_mixed_versions() of
+ true ->
+ {skip, "quorum_cluster_size_3 tests isn't mixed version reliable"};
+ false ->
+ quorum_cluster_size_x(Config, 3, 3)
+ end.
quorum_cluster_size_7(Config) ->
quorum_cluster_size_x(Config, 7, 5).
@@ -1221,7 +1226,16 @@ delete_declare(Config) ->
%% the actual data deletions happen after the call has returned as a quorum
%% queue leader waits for all nodes to confirm they replicated the poison
%% pill before terminating itself.
- timer:sleep(1000),
+ case is_mixed_versions() of
+ true ->
+ %% when in mixed versions the QQ may not be able to apply the posion
+ %% pill for all nodes so need to wait longer for forced delete to
+ %% happen
+ timer:sleep(10000);
+ false ->
+ timer:sleep(1000)
+ end,
+
?assertEqual({'queue.declare_ok', QQ, 0, 0},
declare(Ch, QQ, [{<<"x-queue-type">>, longstr, <<"quorum">>}])),