summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2019-02-12 22:36:00 +0300
committerMichael Klishin <michael@clojurewerkz.org>2019-02-12 22:36:00 +0300
commitcea04c52dcdcda16ecca5d471bdb7cc6ec16beb8 (patch)
tree5d88331e64cf9869ece68df676bebc302a5925fb
parentb0dfe9352f083607d5d7346bd3962ba6c50cc03a (diff)
parenteacb5015d19fb5a4a3d1175bc581c045e77c7a9b (diff)
downloadrabbitmq-server-git-cea04c52dcdcda16ecca5d471bdb7cc6ec16beb8.tar.gz
Merge branch 'jsoref-spelling'
-rw-r--r--docs/rabbitmq-service.82
-rw-r--r--docs/rabbitmq.conf.example2
-rw-r--r--docs/rabbitmq.config.example4
-rw-r--r--docs/rabbitmqctl.84
-rw-r--r--erlang.mk6
-rw-r--r--priv/schema/rabbit.schema4
-rw-r--r--rabbitmq-components.mk2
-rwxr-xr-xscripts/rabbitmq-server4
-rw-r--r--scripts/rabbitmq-server.bat2
-rw-r--r--scripts/rabbitmq-service.bat2
-rw-r--r--src/gm.erl2
-rw-r--r--src/rabbit_amqqueue_process.erl2
-rw-r--r--src/rabbit_backing_queue.erl2
-rw-r--r--src/rabbit_channel.erl2
-rw-r--r--src/rabbit_feature_flags.erl2
-rw-r--r--src/rabbit_ff_registry.erl2
-rw-r--r--src/rabbit_fifo.erl12
-rw-r--r--src/rabbit_fifo_client.erl8
-rw-r--r--src/rabbit_fifo_index.erl2
-rw-r--r--src/rabbit_guid.erl2
-rw-r--r--src/rabbit_lager.erl4
-rw-r--r--src/rabbit_mirror_queue_coordinator.erl2
-rw-r--r--src/rabbit_mirror_queue_misc.erl2
-rw-r--r--src/rabbit_msg_store.erl4
-rw-r--r--src/rabbit_node_monitor.erl2
-rw-r--r--src/rabbit_priority_queue.erl4
-rw-r--r--src/rabbit_queue_index.erl2
-rw-r--r--src/rabbit_reader.erl4
-rw-r--r--src/rabbit_upgrade.erl4
-rw-r--r--src/rabbit_variable_queue.erl4
-rw-r--r--test/channel_operation_timeout_SUITE.erl2
-rw-r--r--test/clustering_management_SUITE.erl12
-rw-r--r--test/dead_lettering_SUITE.erl4
-rw-r--r--test/dynamic_ha_SUITE.erl2
-rw-r--r--test/metrics_SUITE.erl6
-rw-r--r--test/queue_master_location_SUITE.erl2
-rw-r--r--test/quorum_queue_SUITE.erl2
-rw-r--r--test/rabbit_fifo_SUITE.erl2
-rw-r--r--test/rabbit_fifo_prop_SUITE.erl4
-rw-r--r--test/rabbit_ha_test_consumer.erl2
-rw-r--r--test/rabbitmqctl_shutdown_SUITE.erl2
-rw-r--r--test/unit_inbroker_non_parallel_SUITE.erl2
-rw-r--r--test/unit_inbroker_parallel_SUITE.erl2
-rw-r--r--test/unit_log_config_SUITE.erl2
-rw-r--r--test/worker_pool_SUITE.erl4
45 files changed, 75 insertions, 75 deletions
diff --git a/docs/rabbitmq-service.8 b/docs/rabbitmq-service.8
index f9c5588435..ec02d98e15 100644
--- a/docs/rabbitmq-service.8
+++ b/docs/rabbitmq-service.8
@@ -115,7 +115,7 @@ Defaults to
for 64-bit environments).
This is the installation location of the Erlang service manager.
.It Ev RABBITMQ_CONSOLE_LOG
-Set this varable to
+Set this variable to
.Sy new or
.Sy reuse
to have the console output from the server redirected to a file named
diff --git a/docs/rabbitmq.conf.example b/docs/rabbitmq.conf.example
index 42aea4acf5..81958c89fd 100644
--- a/docs/rabbitmq.conf.example
+++ b/docs/rabbitmq.conf.example
@@ -804,7 +804,7 @@
## See http://rabbitmq.com/logging.html and https://github.com/erlang-lager/lager for details.
##
-## Log direcrory, taken from the RABBITMQ_LOG_BASE env variable by default.
+## Log directory, taken from the RABBITMQ_LOG_BASE env variable by default.
##
# log.dir = /var/log/rabbitmq
diff --git a/docs/rabbitmq.config.example b/docs/rabbitmq.config.example
index 9ee9a352be..eba4921c84 100644
--- a/docs/rabbitmq.config.example
+++ b/docs/rabbitmq.config.example
@@ -339,7 +339,7 @@
%% Enables flow control between queue mirrors.
%% Disabling this can be dangerous and is not recommended.
- %% When flow control is disablied, queue masters can outpace mirrors and not allow mirrors to catch up.
+ %% When flow control is disabled, queue masters can outpace mirrors and not allow mirrors to catch up.
%% Mirrors will end up using increasingly more RAM, eventually triggering a memory alarm.
%%
%% {mirroring_flow_control, true},
@@ -909,7 +909,7 @@
%% {rabbit_channel_lager_event, [{handlers, [
%% {lager_forwarder_backend,
%% [lager_event, info]}]}]},
- %% {rabbit_conection_lager_event, [{handlers, [
+ %% {rabbit_connection_lager_event, [{handlers, [
%% {lager_forwarder_backend,
%% [lager_event, info]}]}]},
%% {rabbit_mirroring_lager_event, [{handlers, [
diff --git a/docs/rabbitmqctl.8 b/docs/rabbitmqctl.8
index 6c08655acd..a087e80e85 100644
--- a/docs/rabbitmqctl.8
+++ b/docs/rabbitmqctl.8
@@ -156,7 +156,7 @@ To use this precompiled files, you should set
.Ev RABBITMQ_SERVER_CODE_PATH
environment variable to directory specified in
.Cm hipe_compile
-invokation.
+invocation.
.Pp
For example, to HiPE-compile modules and store them to
.Pa /tmp/rabbit-hipe/ebin
@@ -255,7 +255,7 @@ For example, to instruct the RabbitMQ node to terminate:
.Dl rabbitmqctl stop
.\" ------------------------------------
.It Cm stop_app
-Stops the RabbitMQ application, leaving the runtme (Erlang VM) running.
+Stops the RabbitMQ application, leaving the runtime (Erlang VM) running.
.Pp
This command is typically run prior to performing other management
actions that require the RabbitMQ application to be stopped, e.g.\&
diff --git a/erlang.mk b/erlang.mk
index 5939f04720..7e297e0b52 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -596,7 +596,7 @@ pkg_check_node_commit = master
PACKAGES += chronos
pkg_chronos_name = chronos
-pkg_chronos_description = Timer module for Erlang that makes it easy to abstact time out of the tests.
+pkg_chronos_description = Timer module for Erlang that makes it easy to abstract time out of the tests.
pkg_chronos_homepage = https://github.com/lehoff/chronos
pkg_chronos_fetch = git
pkg_chronos_repo = https://github.com/lehoff/chronos
@@ -1340,7 +1340,7 @@ pkg_erlang_cep_commit = master
PACKAGES += erlang_js
pkg_erlang_js_name = erlang_js
-pkg_erlang_js_description = A linked-in driver for Erlang to Mozilla's Spidermonkey Javascript runtime.
+pkg_erlang_js_description = A linked-in driver for Erlang to Mozilla's Spidermonkey JavaScript runtime.
pkg_erlang_js_homepage = https://github.com/basho/erlang_js
pkg_erlang_js_fetch = git
pkg_erlang_js_repo = https://github.com/basho/erlang_js
@@ -4132,7 +4132,7 @@ pkg_yaws_commit = master
PACKAGES += zab_engine
pkg_zab_engine_name = zab_engine
-pkg_zab_engine_description = zab propotocol implement by erlang
+pkg_zab_engine_description = zab protocol implement by erlang
pkg_zab_engine_homepage = https://github.com/xinmingyao/zab_engine
pkg_zab_engine_fetch = git
pkg_zab_engine_repo = https://github.com/xinmingyao/zab_engine
diff --git a/priv/schema/rabbit.schema b/priv/schema/rabbit.schema
index f24e74c9ef..2617f558f7 100644
--- a/priv/schema/rabbit.schema
+++ b/priv/schema/rabbit.schema
@@ -903,7 +903,7 @@ fun(Conf) ->
end
end}.
-%% Classic config-driven peer discuvery backend.
+%% Classic config-driven peer discovery backend.
%%
%% Make clustering happen *automatically* at startup - only applied
%% to nodes that have just been reset or started for the first time.
@@ -1530,7 +1530,7 @@ fun(Size) when is_integer(Size) ->
Size > 0 andalso Size < 536870912
end}.
-{validator, "less_than_1", "Flooat is not beetween 0 and 1",
+{validator, "less_than_1", "Float is not between 0 and 1",
fun(Float) when is_float(Float) ->
Float > 0 andalso Float < 1
end}.
diff --git a/rabbitmq-components.mk b/rabbitmq-components.mk
index 0cc6bd544a..a72365dc47 100644
--- a/rabbitmq-components.mk
+++ b/rabbitmq-components.mk
@@ -226,7 +226,7 @@ export base_rmq_ref
# If cloning from this computed location fails, we fallback to RabbitMQ
# upstream which is GitHub.
-# Maccro to transform eg. "rabbit_common" to "rabbitmq-common".
+# Macro to transform eg. "rabbit_common" to "rabbitmq-common".
rmq_cmp_repo_name = $(word 2,$(dep_$(1)))
# Upstream URL for the current project.
diff --git a/scripts/rabbitmq-server b/scripts/rabbitmq-server
index aeac38e46f..b4863057f0 100755
--- a/scripts/rabbitmq-server
+++ b/scripts/rabbitmq-server
@@ -219,7 +219,7 @@ fi
# The defaults are meant to reduce RabbitMQ's memory usage and help
# it reclaim memory at the cost of a slight decrease in performance
# (due to an increase in memory operations). These defaults can be
-# overriden using the RABBITMQ_SERVER_ERL_ARGS variable.
+# overridden using the RABBITMQ_SERVER_ERL_ARGS variable.
RABBITMQ_DEFAULT_ALLOC_ARGS="+MBas ageffcbf +MHas ageffcbf +MBlmbcs 512 +MHlmbcs 512 +MMmcs 30"
${ERL_DIR}erl ${RABBITMQ_DEFAULT_ALLOC_ARGS} \
@@ -374,7 +374,7 @@ else
# This is considered an abnormal process termination. Normally, we
# don't need to specify this exit code because the shell propagates it.
# Unfortunately, the signal handler doesn't work as expected in Dash,
- # thus we need to explicitely restate the exit code.
+ # thus we need to explicitly restate the exit code.
trap "stop_rabbitmq_server; exit 0" HUP TERM TSTP
trap "stop_rabbitmq_server; exit 130" INT
diff --git a/scripts/rabbitmq-server.bat b/scripts/rabbitmq-server.bat
index d417091732..462db4c10c 100644
--- a/scripts/rabbitmq-server.bat
+++ b/scripts/rabbitmq-server.bat
@@ -167,7 +167,7 @@ rem
rem The defaults are meant to reduce RabbitMQ's memory usage and help
rem it reclaim memory at the cost of a slight decrease in performance
rem (due to an increase in memory operations). These defaults can be
-rem overriden using the RABBITMQ_SERVER_ERL_ARGS variable.
+rem overridden using the RABBITMQ_SERVER_ERL_ARGS variable.
set RABBITMQ_DEFAULT_ALLOC_ARGS=+MBas ageffcbf +MHas ageffcbf +MBlmbcs 512 +MHlmbcs 512 +MMmcs 30
diff --git a/scripts/rabbitmq-service.bat b/scripts/rabbitmq-service.bat
index 7bb1f124b5..e3057f16b5 100644
--- a/scripts/rabbitmq-service.bat
+++ b/scripts/rabbitmq-service.bat
@@ -254,7 +254,7 @@ rem
rem The defaults are meant to reduce RabbitMQ's memory usage and help
rem it reclaim memory at the cost of a slight decrease in performance
rem (due to an increase in memory operations). These defaults can be
-rem overriden using the RABBITMQ_SERVER_ERL_ARGS variable.
+rem overridden using the RABBITMQ_SERVER_ERL_ARGS variable.
set RABBITMQ_DEFAULT_ALLOC_ARGS=+MBas ageffcbf +MHas ageffcbf +MBlmbcs 512 +MHlmbcs 512 +MMmcs 30
diff --git a/src/gm.erl b/src/gm.erl
index 02ee76cd60..7b9bbc8c8a 100644
--- a/src/gm.erl
+++ b/src/gm.erl
@@ -1271,7 +1271,7 @@ neighbour_cast(N, Msg) -> ?INSTR_MOD:cast(get_pid(N), Msg).
neighbour_call(N, Msg) -> ?INSTR_MOD:call(get_pid(N), Msg, infinity).
%% ---------------------------------------------------------------------------
-%% View monitoring and maintanence
+%% View monitoring and maintenance
%% ---------------------------------------------------------------------------
ensure_neighbour(_Ver, Self, {Self, undefined}, Self) ->
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index c3ba4a5c59..0cd8de8831 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -1195,7 +1195,7 @@ prioritise_cast(Msg, _Len, State) ->
%% will be rate limited by how fast consumers receive messages -
%% i.e. by notify_sent. We prioritise ack and resume to discourage
%% starvation caused by prioritising notify_sent. We don't vary their
-%% prioritiy since acks should stay in order (some parts of the queue
+%% priority since acks should stay in order (some parts of the queue
%% stack are optimised for that) and to make things easier to reason
%% about. Finally, we prioritise ack over resume since it should
%% always reduce memory use.
diff --git a/src/rabbit_backing_queue.erl b/src/rabbit_backing_queue.erl
index c3e570b26f..aea3c858a5 100644
--- a/src/rabbit_backing_queue.erl
+++ b/src/rabbit_backing_queue.erl
@@ -158,7 +158,7 @@
%% Drop messages from the head of the queue while the supplied
%% predicate on message properties returns true. Returns the first
-%% message properties for which the predictate returned false, or
+%% message properties for which the predicate returned false, or
%% 'undefined' if the whole backing queue was traversed w/o the
%% predicate ever returning false.
-callback dropwhile(msg_pred(), state())
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index ffd7c8fabc..b255e2cbce 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -1455,7 +1455,7 @@ handle_method(#'basic.qos'{prefetch_size = Size}, _, _State) when Size /= 0 ->
handle_method(#'basic.qos'{global = false,
prefetch_count = PrefetchCount},
_, State = #ch{limiter = Limiter}) ->
- %% Ensures that if default was set, it's overriden
+ %% Ensures that if default was set, it's overridden
Limiter1 = rabbit_limiter:unlimit_prefetch(Limiter),
{reply, #'basic.qos_ok'{}, State#ch{consumer_prefetch = PrefetchCount,
limiter = Limiter1}};
diff --git a/src/rabbit_feature_flags.erl b/src/rabbit_feature_flags.erl
index 8ba38179a5..74f5a34db0 100644
--- a/src/rabbit_feature_flags.erl
+++ b/src/rabbit_feature_flags.erl
@@ -1411,7 +1411,7 @@ does_node_support(Node, FeatureNames, Timeout) ->
%% If rabbit_feature_flags:is_supported_locally/1 is undefined
%% on the remote node, we consider it to be a 3.7.x node.
%%
- %% Theoritically, it could be an older version (3.6.x and
+ %% Theoretically, it could be an older version (3.6.x and
%% older). But the RabbitMQ version consistency check
%% (rabbit_misc:version_minor_equivalent/2) called from
%% rabbit_mnesia:check_rabbit_consistency/2 already blocked
diff --git a/src/rabbit_ff_registry.erl b/src/rabbit_ff_registry.erl
index e18a4b3456..16d7afb96e 100644
--- a/src/rabbit_ff_registry.erl
+++ b/src/rabbit_ff_registry.erl
@@ -148,7 +148,7 @@ is_registry_written_to_disk() ->
always_return_true() ->
%% This function is here to trick Dialyzer. We want some functions
%% in this initial on-disk registry to always return `true` or
- %% `false`. However the generated regsitry will return actual
+ %% `false`. However the generated registry will return actual
%% booleans. The `-spec()` correctly advertises a return type of
%% `boolean()`. But in the meantime, Dialyzer only knows about this
%% copy which, without the trick below, would always return either
diff --git a/src/rabbit_fifo.erl b/src/rabbit_fifo.erl
index 4f548568be..ee0f65950c 100644
--- a/src/rabbit_fifo.erl
+++ b/src/rabbit_fifo.erl
@@ -156,7 +156,7 @@
#update_config{}.
-type command() :: protocol() | ra_machine:builtin_command().
-%% all the command types suppored by ra fifo
+%% all the command types supported by ra fifo
-type client_msg() :: delivery().
%% the messages `rabbit_fifo' can send to consumers.
@@ -323,7 +323,7 @@ apply(Meta,
case Cons0 of
#{ConsumerId := Con0} ->
% need to increment metrics before completing as any snapshot
- % states taken need to includ them
+ % states taken need to include them
complete_and_checkout(Meta, MsgIds, ConsumerId,
Con0, [], State);
_ ->
@@ -693,7 +693,7 @@ get_checked_out(Cid, From, To, #state{consumers = Consumers}) ->
end.
init_aux(Name) when is_atom(Name) ->
- %% TODO: catch specific exeption throw if table already exists
+ %% TODO: catch specific exception throw if table already exists
ok = ra_machine_ets:create_table(rabbit_fifo_usage,
[named_table, set, public,
{write_concurrency, true}]),
@@ -1108,7 +1108,7 @@ increase_credit(#consumer{lifetime = once,
increase_credit(#consumer{lifetime = auto,
credit_mode = credited,
credit = Credit}, _) ->
- %% credit_mode: credit also doens't automatically increment credit
+ %% credit_mode: credit also doesn't automatically increment credit
Credit;
increase_credit(#consumer{credit = Current}, Credit) ->
Current + Credit.
@@ -2139,7 +2139,7 @@ enq_check_settle_duplicate_test() ->
run_snapshot_test(?FUNCTION_NAME, Commands).
run_snapshot_test(Name, Commands) ->
- %% create every incremental permuation of the commands lists
+ %% create every incremental permutation of the commands lists
%% and run the snapshot tests against that
[begin
run_snapshot_test0(Name, C)
@@ -2208,7 +2208,7 @@ state_enter_test() ->
[{mod_call, m, f, [a, the_name]}] = state_enter(leader, S0),
ok.
-state_enter_montors_and_notifications_test() ->
+state_enter_monitors_and_notifications_test() ->
Oth = spawn(fun () -> ok end),
{State0, _} = enq(1, 1, first, test_init(test)),
Cid = {<<"adf">>, self()},
diff --git a/src/rabbit_fifo_client.erl b/src/rabbit_fifo_client.erl
index ef0991f675..c7f908c9e9 100644
--- a/src/rabbit_fifo_client.erl
+++ b/src/rabbit_fifo_client.erl
@@ -165,7 +165,7 @@ enqueue(Msg, State) ->
%% @doc Dequeue a message from the queue.
%%
-%% This is a syncronous call. I.e. the call will block until the command
+%% This is a synchronous call. I.e. the call will block until the command
%% has been accepted by the ra process or it times out.
%%
%% @param ConsumerTag a unique tag to identify this particular consumer.
@@ -297,7 +297,7 @@ discard(ConsumerTag, [_|_] = MsgIds,
%% @doc Register with the rabbit_fifo queue to "checkout" messages as they
%% become available.
%%
-%% This is a syncronous call. I.e. the call will block until the command
+%% This is a synchronous call. I.e. the call will block until the command
%% has been accepted by the ra process or it times out.
%%
%% @param ConsumerTag a unique tag to identify this particular consumer.
@@ -316,7 +316,7 @@ checkout(ConsumerTag, NumUnsettled, ConsumerInfo, State0) ->
%% @doc Register with the rabbit_fifo queue to "checkout" messages as they
%% become available.
%%
-%% This is a syncronous call. I.e. the call will block until the command
+%% This is a synchronous call. I.e. the call will block until the command
%% has been accepted by the ra process or it times out.
%%
%% @param ConsumerTag a unique tag to identify this particular consumer.
@@ -374,7 +374,7 @@ credit(ConsumerTag, Credit, Drain,
%% @doc Cancels a checkout with the rabbit_fifo queue for the consumer tag
%%
-%% This is a syncronous call. I.e. the call will block until the command
+%% This is a synchronous call. I.e. the call will block until the command
%% has been accepted by the ra process or it times out.
%%
%% @param ConsumerTag a unique tag to identify this particular consumer.
diff --git a/src/rabbit_fifo_index.erl b/src/rabbit_fifo_index.erl
index 82a75b4adc..3bda9bab26 100644
--- a/src/rabbit_fifo_index.erl
+++ b/src/rabbit_fifo_index.erl
@@ -87,7 +87,7 @@ find_next(Next, Last, Map) ->
_ ->
% in degenerate cases the range here could be very large
% and hence this could be very slow
- % the typical case should idealy be better
+ % the typical case should ideally be better
% assuming fifo-ish deletion of entries
find_next(Next+1, Last, Map)
end.
diff --git a/src/rabbit_guid.erl b/src/rabbit_guid.erl
index 6f03a1a04f..5728ac88d7 100644
--- a/src/rabbit_guid.erl
+++ b/src/rabbit_guid.erl
@@ -92,7 +92,7 @@ advance_blocks({B1, B2, B3, B4}, I) ->
%% hashing {B5, I}. The new hash is used as last block, and the
%% other three blocks are XORed with it.
%%
- %% Doing this is convenient because it avoids cascading conflits,
+ %% Doing this is convenient because it avoids cascading conflicts,
%% while being very fast. The conflicts are avoided by propagating
%% the changes through all the blocks at each round by XORing, so
%% the only occasion in which a collision will take place is when
diff --git a/src/rabbit_lager.erl b/src/rabbit_lager.erl
index 1a72d15009..bfdd26fee3 100644
--- a/src/rabbit_lager.erl
+++ b/src/rabbit_lager.erl
@@ -396,7 +396,7 @@ prepare_rabbit_log_config() ->
set_env_default_log_console();
FileName when is_list(FileName) ->
case os:getenv("RABBITMQ_LOGS_source") of
- %% The user explicitely sets $RABBITMQ_LOGS;
+ %% The user explicitly sets $RABBITMQ_LOGS;
%% we should override a file location even
%% if it's set in rabbitmq.config
"environment" -> set_env_default_log_file(FileName, override);
@@ -406,7 +406,7 @@ prepare_rabbit_log_config() ->
%% Upgrade log file never overrides the value set in rabbitmq.config
case UpgradeFile of
- %% No special env for upgrade logs - rederect to the default sink
+ %% No special env for upgrade logs - redirect to the default sink
undefined -> ok;
%% Redirect logs to default output.
DefaultFile -> ok;
diff --git a/src/rabbit_mirror_queue_coordinator.erl b/src/rabbit_mirror_queue_coordinator.erl
index 96474b0d4e..b502da201a 100644
--- a/src/rabbit_mirror_queue_coordinator.erl
+++ b/src/rabbit_mirror_queue_coordinator.erl
@@ -364,7 +364,7 @@ handle_cast({gm_deaths, DeadGMPids}, State = #state{q = Q}) when ?amqqueue_pid_r
%% Different slave is now master, stop current coordinator normally.
%% Initiating queue is now slave and the least we could do is report
%% deaths which we 'think' we saw.
- %% NOTE: Reported deaths here, could be inconsistant.
+ %% NOTE: Reported deaths here, could be inconsistent.
rabbit_mirror_queue_misc:report_deaths(MPid, false, QueueName,
DeadPids),
{stop, shutdown, State};
diff --git a/src/rabbit_mirror_queue_misc.erl b/src/rabbit_mirror_queue_misc.erl
index 04ed4e2887..7383152898 100644
--- a/src/rabbit_mirror_queue_misc.erl
+++ b/src/rabbit_mirror_queue_misc.erl
@@ -615,7 +615,7 @@ validate_sync_batch_size(none) ->
validate_sync_batch_size(N) when is_integer(N) andalso N > 0 ->
ok;
validate_sync_batch_size(N) ->
- {error, "ha-sync-batch-size takes an integer greather than 0, "
+ {error, "ha-sync-batch-size takes an integer greater than 0, "
"~p given", [N]}.
validate_pos(PromoteOnShutdown) ->
diff --git a/src/rabbit_msg_store.erl b/src/rabbit_msg_store.erl
index 337064ad39..a4dfba47e7 100644
--- a/src/rabbit_msg_store.erl
+++ b/src/rabbit_msg_store.erl
@@ -236,7 +236,7 @@
%% updated.
%%
%% On non-clean startup, we scan the files we discover, dealing with
-%% the possibilites of a crash having occurred during a compaction
+%% the possibilities of a crash having occurred during a compaction
%% (this consists of tidyup - the compaction is deliberately designed
%% such that data is duplicated on disk rather than risking it being
%% lost), and rebuild the file summary and index ETS table.
@@ -596,7 +596,7 @@ client_read2(false, undefined, _MsgLocation, Defer, _CState) ->
Defer();
client_read2(true, _Right, _MsgLocation, Defer, _CState) ->
%% Of course, in the mean time, the GC could have run and our msg
- %% is actually in a different file, unlocked. However, defering is
+ %% is actually in a different file, unlocked. However, deferring is
%% the safest and simplest thing to do.
Defer();
client_read2(false, _Right,
diff --git a/src/rabbit_node_monitor.erl b/src/rabbit_node_monitor.erl
index cd46ade0e2..9fa1dfa462 100644
--- a/src/rabbit_node_monitor.erl
+++ b/src/rabbit_node_monitor.erl
@@ -219,7 +219,7 @@ subscribe(Pid) ->
%% We could confirm something by having an HA queue see the pausing
%% state (and fail over into it) before the node monitor stops us, or
%% by using unmirrored queues and just having them vanish (and
-%% confiming messages as thrown away).
+%% confirming messages as thrown away).
%%
%% So we have channels call in here before issuing confirms, to do a
%% lightweight check that we have not entered a pausing state.
diff --git a/src/rabbit_priority_queue.erl b/src/rabbit_priority_queue.erl
index 621f42dafb..12d3291b54 100644
--- a/src/rabbit_priority_queue.erl
+++ b/src/rabbit_priority_queue.erl
@@ -22,7 +22,7 @@
-behaviour(rabbit_backing_queue).
-%% enabled unconditionally. Disabling priority queueing after
+%% enabled unconditionally. Disabling priority queuing after
%% it has been enabled is dangerous.
-rabbit_boot_step({?MODULE,
[{description, "enable priority queue"},
@@ -55,7 +55,7 @@
-define(passthrough3(F),
{Res1, Res2, BQS1} = BQ:F, {Res1, Res2, State#passthrough{bqs = BQS1}}).
-%% This module adds suport for priority queues.
+%% This module adds support for priority queues.
%%
%% Priority queues have one backing queue per priority. Backing queue functions
%% then produce a list of results for each BQ and fold over them, sorting
diff --git a/src/rabbit_queue_index.erl b/src/rabbit_queue_index.erl
index e4047a9902..61373e49c1 100644
--- a/src/rabbit_queue_index.erl
+++ b/src/rabbit_queue_index.erl
@@ -355,7 +355,7 @@ pre_publish(MsgOrId, SeqId, MsgProps, IsPersistent, IsDelivered, JournalSizeHint
State1#qistate{pre_publish_cache = PPC1,
delivered_cache = DC1})).
-%% pre_publish_cache is the entry with most elements when comapred to
+%% pre_publish_cache is the entry with most elements when compared to
%% delivered_cache so we only check the former in the guard.
maybe_flush_pre_publish_cache(JournalSizeHint,
#qistate{pre_publish_cache = PPC} = State)
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl
index 3a2d4650ca..c0cb9c57d5 100644
--- a/src/rabbit_reader.erl
+++ b/src/rabbit_reader.erl
@@ -240,7 +240,7 @@ server_properties(Protocol) ->
{ok, RawConfigServerProps} = application:get_env(rabbit,
server_properties),
- %% Normalize the simplifed (2-tuple) and unsimplified (3-tuple) forms
+ %% Normalize the simplified (2-tuple) and unsimplified (3-tuple) forms
%% from the config and merge them with the generated built-in properties
NormalizedConfigServerProps =
[{<<"capabilities">>, table, server_capabilities(Protocol)} |
@@ -852,7 +852,7 @@ handle_exception(State = #v1{connection = #connection{protocol = Protocol},
respond_and_close(State, Channel, Protocol, Reason,
{handshake_error, CS, Reason});
%% when negotiation fails, e.g. due to channel_max being higher than the
-%% maxiumum allowed limit
+%% maximum allowed limit
handle_exception(State = #v1{connection = #connection{protocol = Protocol,
log_name = ConnName,
user = User},
diff --git a/src/rabbit_upgrade.erl b/src/rabbit_upgrade.erl
index f452d5c92f..83ec692ff3 100644
--- a/src/rabbit_upgrade.erl
+++ b/src/rabbit_upgrade.erl
@@ -31,7 +31,7 @@
%% clusters.
%%
%% Firstly, we have two different types of upgrades to do: Mnesia and
-%% everythinq else. Mnesia upgrades must only be done by one node in
+%% everything else. Mnesia upgrades must only be done by one node in
%% the cluster (we treat a non-clustered node as a single-node
%% cluster). This is the primary upgrader. The other upgrades need to
%% be done by all nodes.
@@ -314,7 +314,7 @@ node_type_legacy() ->
%% hang), we can't look at the config file (may not include us
%% even if we're a disc node). We also can't use
%% rabbit_mnesia:node_type/0 because that will give false
- %% postivies on Rabbit up to 2.5.1.
+ %% positives on Rabbit up to 2.5.1.
case filelib:is_regular(filename:join(dir(), "rabbit_durable_exchange.DCD")) of
true -> disc;
false -> ram
diff --git a/src/rabbit_variable_queue.erl b/src/rabbit_variable_queue.erl
index 8b773f2cc2..e2b4f64a8f 100644
--- a/src/rabbit_variable_queue.erl
+++ b/src/rabbit_variable_queue.erl
@@ -1735,7 +1735,7 @@ purge_and_index_reset(State) ->
%%
%% purge_betas_and_deltas/2 loads messages from the queue index,
%% filling up q3 and in some cases moving messages form q2 to q3 while
-%% reseting q2 to an empty queue (see maybe_deltas_to_betas/2). The
+%% resetting q2 to an empty queue (see maybe_deltas_to_betas/2). The
%% messages loaded into q3 are removed by calling
%% remove_queue_entries/3 until there are no more messages to be read
%% from the queue index. Messages are read in batches from the queue
@@ -1939,7 +1939,7 @@ maybe_write_msg_to_disk(Force, MsgStatus = #msg_status {
maybe_write_msg_to_disk(_Force, MsgStatus, State) ->
{MsgStatus, State}.
-%% Due to certain optimizations made inside
+%% Due to certain optimisations made inside
%% rabbit_queue_index:pre_publish/7 we need to have two separate
%% functions for index persistence. This one is only used when paging
%% during memory pressure. We didn't want to modify
diff --git a/test/channel_operation_timeout_SUITE.erl b/test/channel_operation_timeout_SUITE.erl
index 77da6133d8..47907d09f4 100644
--- a/test/channel_operation_timeout_SUITE.erl
+++ b/test/channel_operation_timeout_SUITE.erl
@@ -87,7 +87,7 @@ notify_down_all(Config) ->
declare(QCfg0),
%% Testing rabbit_amqqueue:notify_down_all via rabbit_channel.
%% Consumer count = 0 after correct channel termination and
- %% notification of queues via delagate:call/3
+ %% notification of queues via delegate:call/3
true = (0 =/= length(get_consumers(Config, Rabbit, ?DEFAULT_VHOST))),
rabbit_ct_client_helpers:close_channel(RabbitCh),
0 = length(get_consumers(Config, Rabbit, ?DEFAULT_VHOST)),
diff --git a/test/clustering_management_SUITE.erl b/test/clustering_management_SUITE.erl
index 5ae2fb687c..a4fd63ba04 100644
--- a/test/clustering_management_SUITE.erl
+++ b/test/clustering_management_SUITE.erl
@@ -153,9 +153,9 @@ join_and_part_cluster(Config) ->
join_cluster_bad_operations(Config) ->
[Rabbit, Hare, Bunny] = cluster_members(Config),
- %% Non-existant node
+ %% Nonexistent node
ok = stop_app(Rabbit),
- assert_failure(fun () -> join_cluster(Rabbit, non@existant) end),
+ assert_failure(fun () -> join_cluster(Rabbit, non@existent) end),
ok = start_app(Rabbit),
assert_not_clustered(Rabbit),
@@ -217,8 +217,8 @@ forget_cluster_node(Config) ->
ok = stop_app(Rabbit),
%% We're passing the --offline flag, but Hare is online
assert_failure(fun () -> forget_cluster_node(Hare, Rabbit, true) end),
- %% Removing some non-existant node will fail
- assert_failure(fun () -> forget_cluster_node(Hare, non@existant) end),
+ %% Removing some nonexistent node will fail
+ assert_failure(fun () -> forget_cluster_node(Hare, non@existent) end),
ok = forget_cluster_node(Hare, Rabbit),
assert_not_clustered(Hare),
assert_cluster_status({[Rabbit, Hare], [Rabbit, Hare], [Hare]},
@@ -504,8 +504,8 @@ update_cluster_nodes(Config) ->
stop_reset_start(Hare),
assert_failure(fun () -> start_app(Rabbit) end),
%% Bogus node
- assert_failure(fun () -> update_cluster_nodes(Rabbit, non@existant) end),
- %% Inconsisent node
+ assert_failure(fun () -> update_cluster_nodes(Rabbit, non@existent) end),
+ %% Inconsistent node
assert_failure(fun () -> update_cluster_nodes(Rabbit, Hare) end),
ok = update_cluster_nodes(Rabbit, Bunny),
ok = start_app(Rabbit),
diff --git a/test/dead_lettering_SUITE.erl b/test/dead_lettering_SUITE.erl
index 72c72b096c..6722958973 100644
--- a/test/dead_lettering_SUITE.erl
+++ b/test/dead_lettering_SUITE.erl
@@ -577,7 +577,7 @@ dead_letter_routing_key_header_BCC(Config) ->
%% It is possible to form a cycle of message dead-lettering. For instance,
%% this can happen when a queue dead-letters messages to the default exchange without
-%% specifiying a dead-letter routing key (5). Messages in such cycles (i.e. messages that
+%% specifying a dead-letter routing key (5). Messages in such cycles (i.e. messages that
%% reach the same queue twice) will be dropped if there was no rejections in the entire cycle.
%% i.e. x-message-ttl (7), x-max-length (6)
%%
@@ -741,7 +741,7 @@ dead_letter_override_policy(Config) ->
[_] = consume(Ch, DLXQName, [P1]).
%% 9) Policy is set after have declared a queue with dead letter arguments. Policy will be
-%% overriden/ignored.
+%% overridden/ignored.
dead_letter_ignore_policy(Config) ->
{_Conn, Ch} = rabbit_ct_client_helpers:open_connection_and_channel(Config, 0),
QName = ?config(queue_name, Config),
diff --git a/test/dynamic_ha_SUITE.erl b/test/dynamic_ha_SUITE.erl
index 6ccf3a75c3..3bdf7bb009 100644
--- a/test/dynamic_ha_SUITE.erl
+++ b/test/dynamic_ha_SUITE.erl
@@ -484,7 +484,7 @@ failing_random_policies(Config) ->
[A, B | _] = Nodes = rabbit_ct_broker_helpers:get_node_configs(Config,
nodename),
%% Those set of policies were found as failing by PropEr in the
- %% `random_policy` test above. We add them explicitely here to make
+ %% `random_policy` test above. We add them explicitly here to make
%% sure they get tested.
?assertEqual(true, test_random_policy(Config, Nodes,
[{nodes, [A, B]}, {nodes, [A]}])),
diff --git a/test/metrics_SUITE.erl b/test/metrics_SUITE.erl
index 44368b643d..d00c01408e 100644
--- a/test/metrics_SUITE.erl
+++ b/test/metrics_SUITE.erl
@@ -144,7 +144,7 @@ connection_metric_idemp(Config, {N, R}) ->
|| _ <- lists:seq(1, N)],
Table = [ Pid || {Pid, _} <- read_table_rpc(Config, connection_metrics)],
Table2 = [ Pid || {Pid, _} <- read_table_rpc(Config, connection_coarse_metrics)],
- % referesh stats 'R' times
+ % refresh stats 'R' times
[[Pid ! emit_stats || Pid <- Table] || _ <- lists:seq(1, R)],
force_metric_gc(Config),
TableAfter = [ Pid || {Pid, _} <- read_table_rpc(Config, connection_metrics)],
@@ -158,7 +158,7 @@ channel_metric_idemp(Config, {N, R}) ->
[amqp_connection:open_channel(Conn) || _ <- lists:seq(1, N)],
Table = [ Pid || {Pid, _} <- read_table_rpc(Config, channel_metrics)],
Table2 = [ Pid || {Pid, _} <- read_table_rpc(Config, channel_process_metrics)],
- % referesh stats 'R' times
+ % refresh stats 'R' times
[[Pid ! emit_stats || Pid <- Table] || _ <- lists:seq(1, R)],
force_metric_gc(Config),
TableAfter = [ Pid || {Pid, _} <- read_table_rpc(Config, channel_metrics)],
@@ -181,7 +181,7 @@ queue_metric_idemp(Config, {N, R}) ->
Table = [ Pid || {Pid, _, _} <- read_table_rpc(Config, queue_metrics)],
Table2 = [ Pid || {Pid, _, _} <- read_table_rpc(Config, queue_coarse_metrics)],
- % referesh stats 'R' times
+ % refresh stats 'R' times
ChanTable = read_table_rpc(Config, channel_created),
[[Pid ! emit_stats || {Pid, _, _} <- ChanTable ] || _ <- lists:seq(1, R)],
force_metric_gc(Config),
diff --git a/test/queue_master_location_SUITE.erl b/test/queue_master_location_SUITE.erl
index d4c8da2bcb..677355f5e8 100644
--- a/test/queue_master_location_SUITE.erl
+++ b/test/queue_master_location_SUITE.erl
@@ -22,7 +22,7 @@
%% location strategies can be applied in the following ways;
%% 1. As policy,
%% 2. As config (in rabbitmq.config),
-%% 3. or as part of the queue's declare arguements.
+%% 3. or as part of the queue's declare arguments.
%%
%% Currently supported strategies are;
%% min-masters : The queue master node is calculated as the one with the
diff --git a/test/quorum_queue_SUITE.erl b/test/quorum_queue_SUITE.erl
index 7d78558739..e9f49039ed 100644
--- a/test/quorum_queue_SUITE.erl
+++ b/test/quorum_queue_SUITE.erl
@@ -1503,7 +1503,7 @@ consume_redelivery_count(Config) ->
amqp_channel:cast(Ch, #'basic.nack'{delivery_tag = DeliveryTag,
multiple = false,
requeue = true}),
- %% wait for requeueing
+ %% wait for requeuing
timer:sleep(500),
{#'basic.get_ok'{delivery_tag = DeliveryTag1,
diff --git a/test/rabbit_fifo_SUITE.erl b/test/rabbit_fifo_SUITE.erl
index ab1f44ab27..60402b3a7b 100644
--- a/test/rabbit_fifo_SUITE.erl
+++ b/test/rabbit_fifo_SUITE.erl
@@ -104,7 +104,7 @@ basics(Config) ->
exit(await_msg_timeout)
end,
- % process settle applied notificaiton
+ % process settle applied notification
FState5b = process_ra_event(FState5, 250),
_ = ra:stop_server(ServerId),
_ = ra:restart_server(ServerId),
diff --git a/test/rabbit_fifo_prop_SUITE.erl b/test/rabbit_fifo_prop_SUITE.erl
index c4f5690b72..437cd02e25 100644
--- a/test/rabbit_fifo_prop_SUITE.erl
+++ b/test/rabbit_fifo_prop_SUITE.erl
@@ -321,7 +321,7 @@ checkout_gen(Pid) ->
}).
expand(Ops) ->
- %% execute each command against a rabbit_fifo state and capture all releavant
+ %% execute each command against a rabbit_fifo state and capture all relevant
%% effects
T = #t{},
#t{effects = Effs} = T1 = lists:foldl(fun handle_op/2, T, Ops),
@@ -463,7 +463,7 @@ run_proper(Fun, Args, NumTests) ->
end}])).
run_snapshot_test(Conf, Commands) ->
- %% create every incremental permuation of the commands lists
+ %% create every incremental permutation of the commands lists
%% and run the snapshot tests against that
[begin
% ?debugFmt("~w running command to ~w~n", [?FUNCTION_NAME, lists:last(C)]),
diff --git a/test/rabbit_ha_test_consumer.erl b/test/rabbit_ha_test_consumer.erl
index 8d61903308..85f0a17b2a 100644
--- a/test/rabbit_ha_test_consumer.erl
+++ b/test/rabbit_ha_test_consumer.erl
@@ -64,7 +64,7 @@ run(TestPid, Channel, Queue, CancelOnFailover, LowestSeen, MsgsToConsume) ->
CancelOnFailover, MsgNum, MsgsToConsume - 1);
MsgNum >= LowestSeen ->
error_logger:info_msg(
- "consumer ~p on ~p ignoring redeliverd msg ~p~n",
+ "consumer ~p on ~p ignoring redelivered msg ~p~n",
[self(), Channel, MsgNum]),
true = Redelivered, %% ASSERTION
run(TestPid, Channel, Queue,
diff --git a/test/rabbitmqctl_shutdown_SUITE.erl b/test/rabbitmqctl_shutdown_SUITE.erl
index 0debfde2b6..b4279c6032 100644
--- a/test/rabbitmqctl_shutdown_SUITE.erl
+++ b/test/rabbitmqctl_shutdown_SUITE.erl
@@ -111,7 +111,7 @@ node_is_running(Node) ->
shutdown_ok(Node) ->
%% Start a command
{stream, Stream} = rabbit_ct_broker_helpers:control_action(shutdown, Node, []),
- %% Execute command steps. Each step will ouput a binary string
+ %% Execute command steps. Each step will output a binary string
Lines = 'Elixir.Enum':to_list(Stream),
ct:pal("Command output ~p ~n", [Lines]),
[true = is_binary(Line) || Line <- Lines],
diff --git a/test/unit_inbroker_non_parallel_SUITE.erl b/test/unit_inbroker_non_parallel_SUITE.erl
index d2db382e30..aaded5fa99 100644
--- a/test/unit_inbroker_non_parallel_SUITE.erl
+++ b/test/unit_inbroker_non_parallel_SUITE.erl
@@ -338,7 +338,7 @@ log_management_during_startup1(_Config) ->
application:unset_env(lager, extra_sinks),
ok = try rabbit:start() of
ok -> exit({got_success_but_expected_failure,
- log_rotatation_parent_dirs_test})
+ log_rotation_parent_dirs_test})
catch
_:{error, {cannot_log_to_file, _, Reason2}}
when Reason2 =:= enoent orelse Reason2 =:= eacces -> ok;
diff --git a/test/unit_inbroker_parallel_SUITE.erl b/test/unit_inbroker_parallel_SUITE.erl
index 364bd5aabb..9518e06196 100644
--- a/test/unit_inbroker_parallel_SUITE.erl
+++ b/test/unit_inbroker_parallel_SUITE.erl
@@ -1384,7 +1384,7 @@ max_message_size(Config) ->
{_, Ch} = rabbit_ct_client_helpers:open_connection_and_channel(Config, 0),
- %% Binary is whithin the max size limit
+ %% Binary is within the max size limit
amqp_channel:call(Ch, #'basic.publish'{routing_key = <<"none">>}, #amqp_msg{payload = Binary2M}),
%% The channel process is alive
assert_channel_alive(Ch),
diff --git a/test/unit_log_config_SUITE.erl b/test/unit_log_config_SUITE.erl
index 584aa76760..07134f309a 100644
--- a/test/unit_log_config_SUITE.erl
+++ b/test/unit_log_config_SUITE.erl
@@ -660,7 +660,7 @@ env_var_tty(_) ->
application:set_env(rabbit, lager_log_root, "/tmp/log_base"),
application:set_env(rabbit, lager_default_file, tty),
application:set_env(rabbit, lager_upgrade_file, tty),
- %% tty can only be set explicitely
+ %% tty can only be set explicitly
os:putenv("RABBITMQ_LOGS_source", "environment"),
rabbit_lager:configure_lager(),
diff --git a/test/worker_pool_SUITE.erl b/test/worker_pool_SUITE.erl
index 8c9c5fa366..e53abdfa05 100644
--- a/test/worker_pool_SUITE.erl
+++ b/test/worker_pool_SUITE.erl
@@ -142,7 +142,7 @@ cancel_timeout(_) ->
reuse),
timer:sleep(1000),
- receive {hello, Worker, Test} -> exit(timeout_is_not_canceleld)
+ receive {hello, Worker, Test} -> exit(timeout_is_not_cancelled)
after 0 -> ok
end.
@@ -179,7 +179,7 @@ cancel_timeout_by_setting(_) ->
reuse),
timer:sleep(1000),
- receive {hello, Worker, Test} -> exit(timeout_is_not_canceleld)
+ receive {hello, Worker, Test} -> exit(timeout_is_not_cancelled)
after 0 -> ok
end,