22 months agoreplace use of dict with orddict for per-msg_store partitions bug21673
Matthias Radestock <matthias@rabbitmq.com> [Thu, 22 Jul 2010 15:14:07 +0100] rev 4146
replace use of dict with orddict for per-msg_store partitions
which is much faster for small dicts

22 months agomerge default into bug21673 bug21673
Matthias Radestock <matthias@rabbitmq.com> [Thu, 22 Jul 2010 15:12:58 +0100] rev 4145
merge default into bug21673

22 months agoadd rabbit_misc:orddict_cons helper
Matthias Radestock <matthias@rabbitmq.com> [Thu, 22 Jul 2010 15:12:36 +0100] rev 4144
add rabbit_misc:orddict_cons helper
analogous to dict_cons

22 months agoUnit test, and fix a bug found by the test. bug21387
Simon MacMullen <simon@rabbitmq.com> [Thu, 22 Jul 2010 14:05:41 +0100] rev 4143
Unit test, and fix a bug found by the test.

22 months agoSpelling bug22964
Simon MacMullen <simon@rabbitmq.com> [Thu, 22 Jul 2010 10:57:26 +0100] rev 4142
Spelling

22 months agoMerge bug22992 into default.
Simon MacMullen <simon@rabbitmq.com> [Thu, 22 Jul 2010 10:32:09 +0100] rev 4141
Merge bug22992 into default.

22 months agorefactor: extract rates into separate part of vq state bug21673
Matthias Radestock <matthias@rabbitmq.com> [Thu, 22 Jul 2010 09:36:55 +0100] rev 4140
refactor: extract rates into separate part of vq state

22 months agoRewrite the channel stats again to use ets. Not sure if this is any faster, maybe a bit. bug21387
Simon MacMullen <simon@rabbitmq.com> [Wed, 21 Jul 2010 21:26:23 +0100] rev 4139
Rewrite the channel stats again to use ets. Not sure if this is any faster, maybe a bit.

22 months agoCosmetics bug21387
Simon MacMullen <simon@rabbitmq.com> [Wed, 21 Jul 2010 19:17:11 +0100] rev 4138
Cosmetics

22 months agoMerged default into bug21387 bug21387
Simon MacMullen <simon@rabbitmq.com> [Wed, 21 Jul 2010 19:10:41 +0100] rev 4137
Merged default into bug21387

22 months agoMerging default into bug 21673 bug21673
Matthew Sackman <matthew@rabbitmq.com> [Wed, 21 Jul 2010 17:30:18 +0100] rev 4136
Merging default into bug 21673

22 months agoBump specs requirements to R14A
Matthew Sackman <matthew@rabbitmq.com> [Wed, 21 Jul 2010 17:29:24 +0100] rev 4135
Bump specs requirements to R14A

22 months agoIncrease priority of stats messages for channel and queue. Don't use gen_server2 for reader since it's not a real gen_server anyway. bug21387
Simon MacMullen <simon@rabbitmq.com> [Wed, 21 Jul 2010 17:27:33 +0100] rev 4134
Increase priority of stats messages for channel and queue. Don't use gen_server2 for reader since it's not a real gen_server anyway.

22 months agoFixed channel shutdown mechanisms bug15930
Matthew Sackman <matthew@rabbitmq.com> [Wed, 21 Jul 2010 16:46:41 +0100] rev 4133
Fixed channel shutdown mechanisms

22 months agoCorrect shutdown to use API bug15930
Matthew Sackman <matthew@rabbitmq.com> [Wed, 21 Jul 2010 15:29:42 +0100] rev 4132
Correct shutdown to use API

22 months agoStore (channel, exchange) stats as well as (channel, exchange, queue) since we can't derive the former from the latter. bug21387
Simon MacMullen <simon@rabbitmq.com> [Wed, 21 Jul 2010 16:36:54 +0100] rev 4131
Store (channel, exchange) stats as well as (channel, exchange, queue) since we can't derive the former from the latter.

22 months agoStore queue/exchange stats in the process dictionary since that's rather a lot faster than dict: bug21387
Simon MacMullen <simon@rabbitmq.com> [Wed, 21 Jul 2010 16:17:01 +0100] rev 4130
Store queue/exchange stats in the process dictionary since that's rather a lot faster than dict:

22 months agoWell the rabbit_tests now pass owing to being able to support a very similar API to previously wrt channel, but shutdown seems to be sporadically successful at best. bug15930
Matthew Sackman <matthew@rabbitmq.com> [Wed, 21 Jul 2010 15:10:12 +0100] rev 4129
Well the rabbit_tests now pass owing to being able to support a very similar API to previously wrt channel, but shutdown seems to be sporadically successful at best.

22 months agoWhoops - revert to avoid deadlock with supervisor trying to call itself during child creation bug15930
Matthew Sackman <matthew@rabbitmq.com> [Wed, 21 Jul 2010 14:38:45 +0100] rev 4128
Whoops - revert to avoid deadlock with supervisor trying to call itself during child creation

22 months agoInvoking os:timestamp and timer:now_diff all the time is too expensive, use timers instead. bug21387
Simon MacMullen <simon@rabbitmq.com> [Wed, 21 Jul 2010 14:15:31 +0100] rev 4127
Invoking os:timestamp and timer:now_diff all the time is too expensive, use timers instead.

22 months agoAdd framing_channel:start_link/1 for use by Erlang client bug15930
Matthew Sackman <matthew@rabbitmq.com> [Wed, 21 Jul 2010 13:59:59 +0100] rev 4126
Add framing_channel:start_link/1 for use by Erlang client

22 months agoMerging default into bug 15930 bug15930
Matthew Sackman <matthew@rabbitmq.com> [Wed, 21 Jul 2010 13:57:14 +0100] rev 4125
Merging default into bug 15930

22 months agoMerging default into bug 21922 bug21922
Matthew Sackman <matthew@rabbitmq.com> [Wed, 21 Jul 2010 13:24:03 +0100] rev 4124
Merging default into bug 21922

22 months agouse the new BQ:stop/0 function in tests bug21673
Matthias Radestock <matthias@rabbitmq.com> [Wed, 21 Jul 2010 13:20:15 +0100] rev 4123
use the new BQ:stop/0 function in tests
for better symmetry

22 months agoMove logic for validating arguments to queue declaration out of the initialisation of the queue process. bug21922
Matthew Sackman <matthew@rabbitmq.com> [Wed, 21 Jul 2010 13:16:20 +0100] rev 4122
Move logic for validating arguments to queue declaration out of the initialisation of the queue process.

22 months agoIf a new QPid appears more than once in the list, only monitor it once. bug21387
Simon MacMullen <simon@rabbitmq.com> [Wed, 21 Jul 2010 10:53:09 +0100] rev 4121
If a new QPid appears more than once in the list, only monitor it once.

22 months agoStore (channel, queue, exchange) stats instead of (channel, exchange). Unify the two stats dictionaries in the channel. bug21387
Simon MacMullen <simon@rabbitmq.com> [Wed, 21 Jul 2010 10:32:13 +0100] rev 4120
Store (channel, queue, exchange) stats instead of (channel, exchange). Unify the two stats dictionaries in the channel.

22 months agoRename some variables. bug21387
Simon MacMullen <simon@rabbitmq.com> [Tue, 20 Jul 2010 18:02:03 +0100] rev 4119
Rename some variables.

22 months agoStandardise on "stats" rather than "statistics" since we were getting rather verbose. And inconsistent. bug21387
Simon MacMullen <simon@rabbitmq.com> [Tue, 20 Jul 2010 17:07:20 +0100] rev 4118
Standardise on "stats" rather than "statistics" since we were getting rather verbose. And inconsistent.

22 months agoStore both channel-exchange stats and channel-queue stats in the same format. bug21387
Simon MacMullen <simon@rabbitmq.com> [Tue, 20 Jul 2010 17:04:31 +0100] rev 4117
Store both channel-exchange stats and channel-queue stats in the same format.

22 months agosimplified code bug22141
Alexandru Scvortov <alexandru@rabbitmq.com> [Tue, 20 Jul 2010 23:02:46 +0100] rev 4116
simplified code

22 months agoreformatted comments bug22992
Alexandru Scvortov <alexandru@rabbitmq.com> [Tue, 20 Jul 2010 22:49:18 +0100] rev 4115
reformatted comments

22 months agolist_connections can now print a peer's ssl certificate bug22902
Alexandru Scvortov <alexandru@rabbitmq.com> [Tue, 20 Jul 2010 22:38:58 +0100] rev 4114
list_connections can now print a peer's ssl certificate

22 months agorabbit_amqqueue:stop already stops the msg_store bug21673
Matthias Radestock <matthias@rabbitmq.com> [Wed, 21 Jul 2010 07:39:10 +0100] rev 4113
rabbit_amqqueue:stop already stops the msg_store

22 months agomerge default into bug21673 bug21673
Matthias Radestock <matthias@rabbitmq.com> [Wed, 21 Jul 2010 07:04:55 +0100] rev 4112
merge default into bug21673

22 months agoflesh out backing_queue API
Matthias Radestock <matthias@rabbitmq.com> [Wed, 21 Jul 2010 06:59:57 +0100] rev 4111
flesh out backing_queue API

22 months agocosmetic bug21673
Matthias Radestock <matthias@rabbitmq.com> [Wed, 21 Jul 2010 06:05:07 +0100] rev 4110
cosmetic

22 months agocosmetic bug21673
Matthias Radestock <matthias@rabbitmq.com> [Wed, 21 Jul 2010 05:50:03 +0100] rev 4109
cosmetic

22 months agomore vq test refactoring bug21673
Matthias Radestock <matthias@rabbitmq.com> [Tue, 20 Jul 2010 18:33:13 +0100] rev 4108
more vq test refactoring

22 months agoRefactorings in observation of commonality between queues and exchange arg equivalences. Also cosmetics, and various specs fixes. bug21922
Matthew Sackman <matthew@rabbitmq.com> [Tue, 20 Jul 2010 18:17:32 +0100] rev 4107
Refactorings in observation of commonality between queues and exchange arg equivalences. Also cosmetics, and various specs fixes.

22 months agoMerge the timed/delayed restart code originally from supervisor3 in shovel into supervisor2 bug21396
Matthew Sackman <matthew@rabbitmq.com> [Tue, 20 Jul 2010 16:55:26 +0100] rev 4106
Merge the timed/delayed restart code originally from supervisor3 in shovel into supervisor2

22 months agovq test refactoring bug21673
Matthias Radestock <matthias@rabbitmq.com> [Tue, 20 Jul 2010 16:48:01 +0100] rev 4105
vq test refactoring

22 months agobug22917 merged into default.
Marek Majkowski <marek@rabbitmq.com> [Tue, 20 Jul 2010 16:45:59 +0100] rev 4104
bug22917 merged into default.

22 months agodefault merged into bug22917 bug22917
Marek Majkowski <marek@rabbitmq.com> [Tue, 20 Jul 2010 16:09:19 +0100] rev 4103
default merged into bug22917

22 months agocosmetics bug21922
Matthew Sackman <matthew@rabbitmq.com> [Tue, 20 Jul 2010 15:27:32 +0100] rev 4102
cosmetics

22 months agoMerging bug 22677 onto default
Matthew Sackman <matthew@rabbitmq.com> [Tue, 20 Jul 2010 15:00:41 +0100] rev 4101
Merging bug 22677 onto default

22 months agoreporting of cluster node types now works bug22992
Alexandru Scvortov <alexandru@rabbitmq.com> [Tue, 20 Jul 2010 14:22:44 +0100] rev 4100
reporting of cluster node types now works

22 months agoCherry-pick the last differences between bug 22889 and amqp_0_9_1. bug22889
Simon MacMullen <simon@rabbitmq.com> [Tue, 20 Jul 2010 13:01:41 +0100] rev 4099
Cherry-pick the last differences between bug 22889 and amqp_0_9_1.

22 months agoMake more consistent with bug 22889 - see comment 83 on that bug amqp_0_9_1
Simon MacMullen <simon@rabbitmq.com> [Tue, 20 Jul 2010 12:54:12 +0100] rev 4098
Make more consistent with bug 22889 - see comment 83 on that bug

22 months agoremove superfluous test bug21673
Matthias Radestock <matthias@rabbitmq.com> [Tue, 20 Jul 2010 12:52:50 +0100] rev 4097
remove superfluous test
this is covered elsewhere already, notably in
test_variable_queue_partial_segments_delta_thing.

22 months agoMerged default into bug 22889 bug22889
Simon MacMullen <simon@rabbitmq.com> [Tue, 20 Jul 2010 12:46:47 +0100] rev 4096
Merged default into bug 22889

22 months agoMerge default into amqp_0_9_1 amqp_0_9_1
Simon MacMullen <simon@rabbitmq.com> [Tue, 20 Jul 2010 12:30:24 +0100] rev 4095
Merge default into amqp_0_9_1

22 months agoThis function was merged wrong; fix. amqp_0_9_1
Simon MacMullen <simon@rabbitmq.com> [Tue, 20 Jul 2010 12:25:56 +0100] rev 4094
This function was merged wrong; fix.

22 months agoMerge bug22889 into amqp_0_9_1 amqp_0_9_1
Simon MacMullen <simon@rabbitmq.com> [Tue, 20 Jul 2010 11:06:36 +0100] rev 4093
Merge bug22889 into amqp_0_9_1

22 months agomade one of the vq tests a little less obscure bug21673
Matthias Radestock <matthias@rabbitmq.com> [Tue, 20 Jul 2010 11:28:17 +0100] rev 4092
made one of the vq tests a little less obscure
...and don't rely on timing

22 months agorabbit_plugin_activator blows up on xref_undef warnings bug22141
Alexandru Scvortov <alexandru@rabbitmq.com> [Tue, 20 Jul 2010 10:09:01 +0100] rev 4091
rabbit_plugin_activator blows up on xref_undef warnings

22 months agoinitial break-for-some warnings support in plugin activator bug22141
Alexandru Scvortov <alexandru@rabbitmq.com> [Tue, 20 Jul 2010 09:36:37 +0100] rev 4090
initial break-for-some warnings support in plugin activator

22 months agoapplied qa notes; refactoring bug22677
Alexandru Scvortov <alexandru@rabbitmq.com> [Mon, 19 Jul 2010 23:21:34 +0100] rev 4089
applied qa notes; refactoring

22 months agocosmetic bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 19:47:27 +0100] rev 4088
cosmetic

22 months agocosmetic bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 19:37:12 +0100] rev 4087
cosmetic

22 months agoAll sorts of improvements to the queue lease code - simplifications and removing dead code bug21922
Matthew Sackman <matthew@rabbitmq.com> [Mon, 19 Jul 2010 18:13:10 +0100] rev 4086
All sorts of improvements to the queue lease code - simplifications and removing dead code

22 months agoMissed out arguments in binding_created. bug21387
Simon MacMullen <simon@rabbitmq.com> [Mon, 19 Jul 2010 17:42:01 +0100] rev 4085
Missed out arguments in binding_created.

22 months agoLifecycle events for queues, exchanges and bindings. bug21387
Simon MacMullen <simon@rabbitmq.com> [Mon, 19 Jul 2010 17:39:40 +0100] rev 4084
Lifecycle events for queues, exchanges and bindings.

22 months agominor refactoring of vq tests bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 17:33:49 +0100] rev 4083
minor refactoring of vq tests

22 months agoThe channel has a few statistics / state of its own too. bug21387
Simon MacMullen <simon@rabbitmq.com> [Mon, 19 Jul 2010 17:13:40 +0100] rev 4082
The channel has a few statistics / state of its own too.

22 months agoInitial commit of Ask's work bug21922
Ask Solem <askh@opera.com> [Mon, 19 Jul 2010 17:09:13 +0100] rev 4081
Initial commit of Ask's work

22 months agosimplify qi tests bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 17:00:45 +0100] rev 4080
simplify qi tests

22 months agoUse list comprehensions to build the stats proplists. bug21387
Simon MacMullen <simon@rabbitmq.com> [Mon, 19 Jul 2010 16:51:14 +0100] rev 4079
Use list comprehensions to build the stats proplists.

22 months agosimplify qi tests bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 16:48:13 +0100] rev 4078
simplify qi tests

22 months agoSwitch to using proplists rather than records for events. bug21387
Simon MacMullen <simon@rabbitmq.com> [Mon, 19 Jul 2010 16:21:59 +0100] rev 4077
Switch to using proplists rather than records for events.

22 months agoMake channel monitor queues for which it is gathering statistics, and remove the stats when the queue goes away. bug21387
Simon MacMullen <simon@rabbitmq.com> [Mon, 19 Jul 2010 14:56:34 +0100] rev 4076
Make channel monitor queues for which it is gathering statistics, and remove the stats when the queue goes away.

22 months agosimplify qi tests bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 16:15:41 +0100] rev 4075
simplify qi tests

22 months agocosmetic bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 16:00:14 +0100] rev 4074
cosmetic

22 months agosimplify qi tests bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 15:53:02 +0100] rev 4073
simplify qi tests

22 months agorefactor msg_store starting/stopping in tests bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 15:27:04 +0100] rev 4072
refactor msg_store starting/stopping in tests
using the new funs in vq

22 months agoflesh out vq API with funs useful for testing bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 15:26:13 +0100] rev 4071
flesh out vq API with funs useful for testing

22 months agomerge default into bug21673 bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 15:24:06 +0100] rev 4070
merge default into bug21673

22 months agoflesh out APIs somewhat
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 15:23:40 +0100] rev 4069
flesh out APIs somewhat
useful in tests

22 months agoMore documentation bug21673
Matthew Sackman <matthew@rabbitmq.com> [Mon, 19 Jul 2010 14:47:59 +0100] rev 4068
More documentation

22 months agoThat's not needed. bug21387
Simon MacMullen <simon@rabbitmq.com> [Mon, 19 Jul 2010 14:33:51 +0100] rev 4067
That's not needed.

22 months agoImprove documentation and document persistent vs transient msg store are for bug21673
Matthew Sackman <matthew@rabbitmq.com> [Mon, 19 Jul 2010 14:20:41 +0100] rev 4066
Improve documentation and document persistent vs transient msg store are for

22 months agoMerging default into bug 15930 and a little debitrotting bug15930
Matthew Sackman <matthew@rabbitmq.com> [Mon, 19 Jul 2010 14:12:06 +0100] rev 4065
Merging default into bug 15930 and a little debitrotting

22 months agoEmit events for connection and channel statistics and creation / deletion. bug21387
Simon MacMullen <simon@rabbitmq.com> [Mon, 19 Jul 2010 14:11:48 +0100] rev 4064
Emit events for connection and channel statistics and creation / deletion.

22 months agorefactor: simplify msg_store tests bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 13:35:01 +0100] rev 4063
refactor: simplify msg_store tests

22 months agorefactor: simplify msg_store tests bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 13:26:04 +0100] rev 4062
refactor: simplify msg_store tests

22 months agorefactor: simplify msg_store tests bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 13:11:22 +0100] rev 4061
refactor: simplify msg_store tests

22 months agotweak bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 12:55:34 +0100] rev 4060
tweak

22 months agorefactor: take adantage of l/r symmetry in bpqueue tests bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 12:51:30 +0100] rev 4059
refactor: take adantage of l/r symmetry in bpqueue tests

22 months agodict:find -> dict:fetch andalso lists:flatten -> lists:append bug21673
Matthew Sackman <matthew@rabbitmq.com> [Mon, 19 Jul 2010 12:20:19 +0100] rev 4058
dict:find -> dict:fetch andalso lists:flatten -> lists:append

22 months agoMerging bug 22987 into bug 21673 bug21673
Matthew Sackman <matthew@rabbitmq.com> [Mon, 19 Jul 2010 12:09:46 +0100] rev 4057
Merging bug 22987 into bug 21673

22 months agoCosmetics bug22987
Matthew Sackman <matthew@rabbitmq.com> [Mon, 19 Jul 2010 12:08:26 +0100] rev 4056
Cosmetics

22 months agooptimise qi:sync call in tx commit bug22987
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 11:10:34 +0100] rev 4055
optimise qi:sync call in tx commit
call it with acks for persistent & durable messages only

22 months agoapplication:get_env/2 -> application:get_env/1 bug22973
Alexandru Scvortov <alexandru@rabbitmq.com> [Mon, 19 Jul 2010 10:00:21 +0100] rev 4054
application:get_env/2 -> application:get_env/1

22 months agomoved rabbitmq_cluster.config into the cluster_nodes field of rabbit in rabbitmq.config bug22973
Alexandru Scvortov <alexandru@rabbitmq.com> [Mon, 19 Jul 2010 00:23:07 +0100] rev 4053
moved rabbitmq_cluster.config into the cluster_nodes field of rabbit in rabbitmq.config

22 months agorefactor: 'cons_if' helper function bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 09:01:28 +0100] rev 4052
refactor: 'cons_if' helper function

22 months agomerge default into bug21673 bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 08:09:08 +0100] rev 4051
merge default into bug21673

22 months agocosmetic bug21673
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 08:08:48 +0100] rev 4050
cosmetic

22 months agotweak to assist testing
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 08:06:13 +0100] rev 4049
tweak to assist testing
...outside the context of the rabbit app
cherry-picked from bug 21673.

22 months ago'sync' -> 'idle_timeout'
Matthias Radestock <matthias@rabbitmq.com> [Mon, 19 Jul 2010 08:02:39 +0100] rev 4048
'sync' -> 'idle_timeout'
cherry-picked from bug 21673.

22 months agotweak msg_store API to make it safer bug21673
Matthias Radestock <matthias@rabbitmq.com> [Sun, 18 Jul 2010 17:45:54 +0100] rev 4047
tweak msg_store API to make it safer
...by not allowing clients to be deleted w/o terminating them too

22 months agotiny refactor bug21673
Matthias Radestock <matthias@rabbitmq.com> [Sun, 18 Jul 2010 14:29:29 +0100] rev 4046
tiny refactor

22 months agoadd a 'todo' bug21673
Matthias Radestock <matthias@rabbitmq.com> [Sun, 18 Jul 2010 14:20:46 +0100] rev 4045
add a 'todo'

22 months agodon't log warnings on clean startup of a msg_store bug21673
Matthias Radestock <matthias@rabbitmq.com> [Sun, 18 Jul 2010 13:32:09 +0100] rev 4044
don't log warnings on clean startup of a msg_store

22 months agocleared up manpage bug22964
Alexandru Scvortov <alexandru@rabbitmq.com> [Fri, 16 Jul 2010 16:30:25 +0100] rev 4043
cleared up manpage

22 months agocosmetics bug21387
Simon MacMullen <simon@rabbitmq.com> [Fri, 16 Jul 2010 15:40:22 +0100] rev 4042
cosmetics

22 months agoUse timer:now_diff, don't double-wrap. bug21387
Simon MacMullen <simon@rabbitmq.com> [Fri, 16 Jul 2010 15:37:17 +0100] rev 4041
Use timer:now_diff, don't double-wrap.

22 months agoq_pid -> qpid bug21387
Simon MacMullen <simon@rabbitmq.com> [Fri, 16 Jul 2010 15:25:13 +0100] rev 4040
q_pid -> qpid

22 months agoMerged bug22140 into default.
Simon MacMullen <simon@rabbitmq.com> [Fri, 16 Jul 2010 15:18:16 +0100] rev 4039
Merged bug22140 into default.

22 months agoGet queues to emit events for statistics. bug21387
Simon MacMullen <simon@rabbitmq.com> [Fri, 16 Jul 2010 14:52:26 +0100] rev 4038
Get queues to emit events for statistics.

22 months agodon't forget to process transactional acks bug21673
Matthias Radestock <matthias@rabbitmq.com> [Fri, 16 Jul 2010 11:51:30 +0100] rev 4037
don't forget to process transactional acks
...when the tx doesn't involve any persistent messages, thus plugging
a leak in pending_ack and qi.

To reproduce:

rr(amqp_connection).
Conn = amqp_connection:start_network(),
Ch = amqp_connection:open_channel(Conn),
Q = <<"Q">>,
amqp_channel:call(Ch, #'queue.declare'{queue = Q, durable = true, exclusive = true}),
amqp_channel:call(Ch, #'basic.publish'{routing_key = Q}, #amqp_msg{}),
amqp_channel:call(Ch, #'basic.get'{queue = Q}),
amqp_channel:call(Ch, #'tx.select'{}),
amqp_channel:call(Ch, #'basic.ack'{delivery_tag = 1}),
amqp_channel:call(Ch, #'tx.commit'{}),
ok.

and then

$ ./scripts/rabbitmqctl list_queues name messages_unacknowledged backing_queue_status
Listing queues ...
Q 0 [{q1,0},{q2,0},{delta,{delta,undefined,0,undefined}},{q3,0},{q4,0},{len,0},{pending_acks,1},{outstanding_txns,0},{target_ram_msg_count,infinity},{ram_msg_count,0},{ram_index_count,0},{avg_egress_rate,0.0},{avg_ingress_rate,0.0},{next_seq_id,1},{persistent_count,0}]
...done.

Note the pending_acks of 1.

22 months agoadd pending_acks to bq state report bug21673
Matthias Radestock <matthias@rabbitmq.com> [Fri, 16 Jul 2010 11:30:08 +0100] rev 4036
add pending_acks to bq state report
it turns out to be useful

22 months agorefactor: invert some conditionals for better readability bug21673
Matthias Radestock <matthias@rabbitmq.com> [Fri, 16 Jul 2010 08:44:13 +0100] rev 4035
refactor: invert some conditionals for better readability

22 months agorefactor: trim args for msg_store_callback bug21673
Matthias Radestock <matthias@rabbitmq.com> [Fri, 16 Jul 2010 08:04:12 +0100] rev 4034
refactor: trim args for msg_store_callback
we only ever need a msg_store_callback when we have persisted pubs

22 months agoanother place were averages could end up being integers instead of floats bug21673
Matthias Radestock <matthias@rabbitmq.com> [Thu, 15 Jul 2010 14:56:41 +0100] rev 4033
another place were averages could end up being integers instead of floats

22 months agorate averages are meant to be floats bug21673
Matthias Radestock <matthias@rabbitmq.com> [Thu, 15 Jul 2010 14:13:00 +0100] rev 4032
rate averages are meant to be floats

22 months agoavoid >= between a number and an atom bug21673
Matthias Radestock <matthias@rabbitmq.com> [Thu, 15 Jul 2010 14:11:28 +0100] rev 4031
avoid >= between a number and an atom

22 months agoimprove type specs bug21673
Matthias Radestock <matthias@rabbitmq.com> [Thu, 15 Jul 2010 14:06:31 +0100] rev 4030
improve type specs

22 months agocosmetic bug21673
Matthias Radestock <matthias@rabbitmq.com> [Thu, 15 Jul 2010 13:54:08 +0100] rev 4029
cosmetic

22 months agomerge default into bug21673 bug21673
Matthias Radestock <matthias@rabbitmq.com> [Thu, 15 Jul 2010 13:52:33 +0100] rev 4028
merge default into bug21673

22 months agoadd some msg_status invariants bug21673
Matthias Radestock <matthias@rabbitmq.com> [Thu, 15 Jul 2010 13:37:54 +0100] rev 4027
add some msg_status invariants
these are quite important for understanding much of the code

22 months agoadded exref option to systools:make_script bug22141
Alexandru Scvortov <alexandru@rabbitmq.com> [Thu, 15 Jul 2010 13:31:39 +0100] rev 4026
added exref option to systools:make_script

*WARNING*s are emitted when plugins reference undefined functions

22 months agocosmetic bug21673
Matthias Radestock <matthias@rabbitmq.com> [Thu, 15 Jul 2010 12:59:59 +0100] rev 4025
cosmetic

22 months agorenamed variables; alligned code bug22964
Alexandru Scvortov <alexandru@rabbitmq.com> [Thu, 15 Jul 2010 10:40:41 +0100] rev 4024
renamed variables; alligned code

22 months agocosmetic bug21673
Matthias Radestock <matthias@rabbitmq.com> [Thu, 15 Jul 2010 08:53:21 +0100] rev 4023
cosmetic

22 months agorefactor bug21673
Matthias Radestock <matthias@rabbitmq.com> [Thu, 15 Jul 2010 08:53:04 +0100] rev 4022
refactor

22 months agosimplify remove_pending_ack bug21673
Matthias Radestock <matthias@rabbitmq.com> [Thu, 15 Jul 2010 08:21:54 +0100] rev 4021
simplify remove_pending_ack
The pending_ack dict should always be empty at the end. Previously we
kept the ack records of persistent messages when KeepPersistent=true.

22 months agocosmetic bug21673
Matthias Radestock <matthias@rabbitmq.com> [Thu, 15 Jul 2010 07:54:25 +0100] rev 4020
cosmetic

22 months agomerging in from default bug22180
Vlad Ionescu <vlad@rabbitmq.com> [Wed, 14 Jul 2010 18:28:23 +0100] rev 4019
merging in from default

22 months agoMerged heads
Emile Joubert <emile@rabbitmq.com> [Wed, 14 Jul 2010 16:56:52 +0100] rev 4018
Merged heads

22 months agoChangelog updates for release 1.8.1
Emile Joubert <emile@rabbitmq.com> [Wed, 14 Jul 2010 16:50:47 +0100] rev 4017
Changelog updates for release 1.8.1

22 months agoAdded tag rabbitmq_v1_8_1 for changeset 5d9e3ff32dcb
Emile Joubert <emile@rabbitmq.com> [Wed, 14 Jul 2010 12:06:58 +0100] rev 4016
Added tag rabbitmq_v1_8_1 for changeset 5d9e3ff32dcb

22 months agocosmetic: more sensible order bug21673
Matthias Radestock <matthias@rabbitmq.com> [Wed, 14 Jul 2010 15:56:28 +0100] rev 4015
cosmetic: more sensible order

22 months agoMerge bug22875 into default
Simon MacMullen <simon@rabbitmq.com> [Wed, 14 Jul 2010 15:53:49 +0100] rev 4014
Merge bug22875 into default

22 months ago>80 lines fix. bug22875
Simon MacMullen <simon@rabbitmq.com> [Wed, 14 Jul 2010 15:39:15 +0100] rev 4013
>80 lines fix.

22 months agomerge bug22875 into bug22964 bug22964
Alexandru Scvortov <alexandru@rabbitmq.com> [Wed, 14 Jul 2010 15:35:07 +0100] rev 4012
merge bug22875 into bug22964

22 months agoadded insightful comment bug22875
Alexandru Scvortov <alexandru@rabbitmq.com> [Wed, 14 Jul 2010 14:04:16 +0100] rev 4011
added insightful comment

22 months agoscope is not set via the -s flag bug22964
Alexandru Scvortov <alexandru@rabbitmq.com> [Wed, 14 Jul 2010 12:52:28 +0100] rev 4010
scope is not set via the -s flag

22 months agoMerged bug22851 to junk junk
Simon MacMullen <simon@rabbitmq.com> [Wed, 14 Jul 2010 12:30:16 +0100] rev 4009
Merged bug22851 to junk

22 months agoadded coverage tests bug22964
Alexandru Scvortov <alexandru@rabbitmq.com> [Wed, 14 Jul 2010 12:03:25 +0100] rev 4008
added coverage tests

22 months agoadded a flag to set_permissions to control their scope bug22964
Alexandru Scvortov <alexandru@rabbitmq.com> [Wed, 14 Jul 2010 10:56:38 +0100] rev 4007
added a flag to set_permissions to control their scope

set_permissions -check_user_named is the default and checks
permissions only for user named permissions. I.e. server generated
names are not checked.

set_permissions -check_all_resources enables the check for server
generated names.

I had to shorten the argument names in the man page because otherwise
the set_permissions line would have exceeded 80 characters.

All parameters passed from rabbit_control to rabbit_access_control are
binary(), hence why we're passing <<"check_user_name">> rather than
'check_user_named'.

Rabbit_access_control:set_permissions now takes 6 parameters. There's
also a 5 parameter version that sets the default value for Check and
calls the other one. I've added it because I don't want the default
value for Check in 10 different places.

22 months agobug22914 merged into default rabbitmq_v1_8_1
Marek Majkowski <marek@rabbitmq.com> [Wed, 14 Jul 2010 11:59:13 +0100] rev 4006
bug22914 merged into default

22 months agoreplaced call bad:bad/0 with a call to exit/1 bug22140
Alexandru Scvortov <alexandru@rabbitmq.com> [Tue, 13 Jul 2010 23:14:20 +0100] rev 4005
replaced call bad:bad/0 with a call to exit/1

22 months agoupdated man page bug22875
Alexandru Scvortov <alexandru@rabbitmq.com> [Tue, 13 Jul 2010 17:20:12 +0100] rev 4004
updated man page

22 months agofixed compile errors; all tests pass bug22964
Alexandru Scvortov <alexandru@rabbitmq.com> [Tue, 13 Jul 2010 16:10:37 +0100] rev 4003
fixed compile errors; all tests pass

22 months agopermission tags are now displayed bug22964
Alexandru Scvortov <alexandru@rabbitmq.com> [Tue, 13 Jul 2010 15:51:41 +0100] rev 4002
permission tags are now displayed

22 months agocheck_all == 'true' => permissions are checked for server-generated names as well bug22964
Alexandru Scvortov <alexandru@rabbitmq.com> [Tue, 13 Jul 2010 15:37:40 +0100] rev 4001
check_all == 'true' => permissions are checked for server-generated names as well

22 months agoadded necessary fields to records bug22964
Alexandru Scvortov <alexandru@rabbitmq.com> [Tue, 13 Jul 2010 15:16:45 +0100] rev 4000
added necessary fields to records

22 months agoempty permissions are not printed as "" anymore bug22875
Alexandru Scvortov <alexandru@rabbitmq.com> [Tue, 13 Jul 2010 13:23:34 +0100] rev 3999
empty permissions are not printed as "" anymore

22 months ago"" is changed to "^$" when checking permissions bug22875
Alexandru Scvortov <alexandru@rabbitmq.com> [Tue, 13 Jul 2010 10:06:00 +0100] rev 3998
"" is changed to "^$" when checking permissions

% rabbitmqctl set_permissions guest "" "" ""
Setting permissions for user "guest" in vhost "/" ...
...done.

% rabbitmqctl list_permissions
Listing permissions in vhost "/" ...
guest "" "" ""
...done.

22 months agoempty strings are displayed as "" bug22875
Alexandru Scvortov <alexandru@rabbitmq.com> [Tue, 13 Jul 2010 09:51:38 +0100] rev 3997
empty strings are displayed as ""

% rabbitmqctl list_permissions
Listing permissions in vhost "/" ...
guest "" "" ""
...done.

22 months agocorrected regexp bug22875
Alexandru Scvortov <alexandru@rabbitmq.com> [Tue, 13 Jul 2010 09:38:02 +0100] rev 3996
corrected regexp

Used character escaping because erlang-mode has problems correctly
parsing "^$".

22 months agosimplifying refactor bug22875
Matthias Radestock <matthias@rabbitmq.com> [Tue, 13 Jul 2010 08:38:10 +0100] rev 3995
simplifying refactor

22 months agoAdjust the CONFIG_FILE default with the macports prefix bug22917
David Wragg <david@rabbitmq.com> [Tue, 13 Jul 2010 03:00:33 +0100] rev 3994
Adjust the CONFIG_FILE default with the macports prefix

22 months agoRemove IFS setting on the su command bug22914
David Wragg <david@rabbitmq.com> [Tue, 13 Jul 2010 01:49:28 +0100] rev 3993
Remove IFS setting on the su command

The script has lots of IFS vulnerabilities before it reaches the su
command. If we really want to guard against IFS, we should set it at
the top. But how many shell scripts have you ever seen that do that?
If the user sets IFS, and breaks things, it seem reasonable to regard
that as their problem. There is no security issue here because you
should already be root or the rabbitmq user to run the script.

22 months ago"make clean" should clean all the macports-generated files bug22914
David Wragg <david@rabbitmq.com> [Tue, 13 Jul 2010 01:49:18 +0100] rev 3992
"make clean" should clean all the macports-generated files

22 months ago"" is transformed to "$^" in rabbitmqctl set_permissions bug22875
Alexandru Scvortov <alexandru@rabbitmq.com> [Mon, 12 Jul 2010 15:00:45 +0100] rev 3991
"" is transformed to "$^" in rabbitmqctl set_permissions

22 months agoRemove maybe_encode_properties bug22889
Simon MacMullen <simon@rabbitmq.com> [Fri, 09 Jul 2010 17:51:50 +0100] rev 3990
Remove maybe_encode_properties

22 months agoversion should come first bug22889
Matthias Radestock <matthias@rabbitmq.com> [Fri, 09 Jul 2010 17:29:19 +0100] rev 3989
version should come first

22 months agoexport protocol/0 type bug22889
Matthias Radestock <matthias@rabbitmq.com> [Fri, 09 Jul 2010 17:21:23 +0100] rev 3988
export protocol/0 type
to avoid compiler warning

22 months agoput the 'none' check back into ensure_content_encoded bug22889
Matthias Radestock <matthias@rabbitmq.com> [Fri, 09 Jul 2010 17:19:05 +0100] rev 3987
put the 'none' check back into ensure_content_encoded
it's safer and more obviously correct that way

22 months agorefactor: extract error helper bug22886
Matthias Radestock <matthias@rabbitmq.com> [Fri, 09 Jul 2010 14:25:44 +0100] rev 3986
refactor: extract error helper

22 months agodon't log content on framing error bug22886
Matthias Radestock <matthias@rabbitmq.com> [Fri, 09 Jul 2010 14:14:50 +0100] rev 3985
don't log content on framing error
plus some minor refactors and cosmetic changes

22 months agoslight optimisation bug22677
Alexandru Scvortov <alexandru@rabbitmq.com> [Fri, 09 Jul 2010 13:09:33 +0100] rev 3984
slight optimisation

22 months agoMerged bug22877 into default
Emile Joubert <emile@rabbitmq.com> [Fri, 09 Jul 2010 13:03:10 +0100] rev 3983
Merged bug22877 into default

22 months agofinished transition from regexp to re bug22677
Alexandru Scvortov <alexandru@rabbitmq.com> [Fri, 09 Jul 2010 12:59:30 +0100] rev 3982
finished transition from regexp to re

22 months agoreplaced regexp with re bug22677
Alexandru Scvortov <alexandru@rabbitmq.com> [Fri, 09 Jul 2010 12:11:22 +0100] rev 3981
replaced regexp with re

22 months ago0-9-1 error codes in a multi-prococol broker bug22886
Emile Joubert <emile@rabbitmq.com> [Fri, 09 Jul 2010 12:55:04 +0100] rev 3980
0-9-1 error codes in a multi-prococol broker

22 months agoMerge bug22886 into junk junk
Emile Joubert <emile@rabbitmq.com> [Fri, 09 Jul 2010 12:42:13 +0100] rev 3979
Merge bug22886 into junk

22 months agoThis wiped out rabbit_framing_channel. Never mind. bug22889
Simon MacMullen <simon@rabbitmq.com> [Fri, 09 Jul 2010 12:42:19 +0100] rev 3978
This wiped out rabbit_framing_channel. Never mind.

22 months agoMerge default into bug22889 bug22889
Simon MacMullen <simon@rabbitmq.com> [Fri, 09 Jul 2010 12:41:39 +0100] rev 3977
Merge default into bug22889

22 months agoDon't change the signature of ensure_content_decoded. bug22889
Simon MacMullen <simon@rabbitmq.com> [Fri, 09 Jul 2010 12:21:59 +0100] rev 3976
Don't change the signature of ensure_content_decoded.

22 months agomerged default into bug22877 bug22877
Alexandru Scvortov <alexandru@rabbitmq.com> [Fri, 09 Jul 2010 11:58:49 +0100] rev 3975
merged default into bug22877

22 months agoFix idiocy bug22889
Simon MacMullen <simon@rabbitmq.com> [Fri, 09 Jul 2010 12:00:12 +0100] rev 3974
Fix idiocy

22 months agoMake sure one does not accidentally build a server containing old rabbit_framing when switching branches. bug22889
Simon MacMullen <simon@rabbitmq.com> [Fri, 09 Jul 2010 11:56:47 +0100] rev 3973
Make sure one does not accidentally build a server containing old rabbit_framing when switching branches.

22 months agoStore protocol with encoded properties, use it to transcode if needed. bug22889
Simon MacMullen <simon@rabbitmq.com> [Fri, 09 Jul 2010 11:56:10 +0100] rev 3972
Store protocol with encoded properties, use it to transcode if needed.

22 months agodeduplicate even the current node bug22877
Alexandru Scvortov <alexandru@rabbitmq.com> [Fri, 09 Jul 2010 11:03:00 +0100] rev 3971
deduplicate even the current node

22 months agoadded deduplication of cluster node list bug22877
Alexandru Scvortov <alexandru@rabbitmq.com> [Fri, 09 Jul 2010 09:53:54 +0100] rev 3970
added deduplication of cluster node list

Deduplication happens for both cluster and force_cluster because
clustering with the same node twice doesn't make sense in either case.

22 months agoimproved docs bug22877
Alexandru Scvortov <alexandru@rabbitmq.com> [Fri, 09 Jul 2010 09:29:21 +0100] rev 3969
improved docs

22 months agorefactor: introduce rabbit_misc:protocol_error/1
Matthias Radestock <matthias@rabbitmq.com> [Fri, 09 Jul 2010 05:14:17 +0100] rev 3968
refactor: introduce rabbit_misc:protocol_error/1
so that the channel can get away with knowing a little bit less about
error handling

22 months agoMerging bug 22935 into default
Matthew Sackman <matthew@rabbitmq.com> [Thu, 08 Jul 2010 17:23:17 +0100] rev 3967
Merging bug 22935 into default

22 months agoamqp_error is a record. Duh. bug22935
Simon MacMullen <simon@rabbitmq.com> [Thu, 08 Jul 2010 17:14:11 +0100] rev 3966
amqp_error is a record. Duh.

22 months agoExpose the persistent count in the vq status bug21673
Matthew Sackman <matthew@rabbitmq.com> [Thu, 08 Jul 2010 16:58:29 +0100] rev 3965
Expose the persistent count in the vq status

22 months agoFix type of inner_fun, cosmetics. bug22935
Simon MacMullen <simon@rabbitmq.com> [Thu, 08 Jul 2010 16:58:03 +0100] rev 3964
Fix type of inner_fun, cosmetics.

22 months agoDocument ram_index_count bug21673
Matthew Sackman <matthew@rabbitmq.com> [Thu, 08 Jul 2010 16:48:58 +0100] rev 3963
Document ram_index_count

22 months agodon't force storing of binary properties bug21673
Matthias Radestock <matthias@rabbitmq.com> [Thu, 08 Jul 2010 15:30:53 +0100] rev 3962
don't force storing of binary properties
see also bug 22957.

22 months agomerge default into bug21673 bug21673
Matthias Radestock <matthias@rabbitmq.com> [Thu, 08 Jul 2010 15:17:27 +0100] rev 3961
merge default into bug21673

22 months agomerge heads
Matthias Radestock <matthias@rabbitmq.com> [Thu, 08 Jul 2010 15:11:12 +0100] rev 3960
merge heads

22 months agoUpdate inner_fun spec. bug22935
Simon MacMullen <simon@rabbitmq.com> [Thu, 08 Jul 2010 14:05:31 +0100] rev 3959
Update inner_fun spec.

22 months agoMake add and delete more symmetrical, tidy up a bit. bug22935
Simon MacMullen <simon@rabbitmq.com> [Thu, 08 Jul 2010 14:02:17 +0100] rev 3958
Make add and delete more symmetrical, tidy up a bit.

22 months agoUpdate comment. bug22935
Simon MacMullen <simon@rabbitmq.com> [Thu, 08 Jul 2010 10:55:33 +0100] rev 3957
Update comment.

22 months agoWrap much less in try / catch bug22935
Simon MacMullen <simon@rabbitmq.com> [Thu, 08 Jul 2010 10:52:05 +0100] rev 3956
Wrap much less in try / catch

22 months agoremove incorrect comment
Matthias Radestock <matthias@rabbitmq.com> [Wed, 07 Jul 2010 23:56:58 +0100] rev 3955
remove incorrect comment
We actually never decode the properties on recovery (or later) since
the broker doesn't need them after the initial stages of message
processing.

22 months agominor refactor bug21673
Matthias Radestock <matthias@rabbitmq.com> [Wed, 07 Jul 2010 23:44:36 +0100] rev 3954
minor refactor

22 months agocosmetic bug21673
Matthias Radestock <matthias@rabbitmq.com> [Wed, 07 Jul 2010 23:16:14 +0100] rev 3953
cosmetic

22 months agoUnwrap amqp_error and rethrow bug22935
Simon MacMullen <simon@rabbitmq.com> [Wed, 07 Jul 2010 17:40:34 +0100] rev 3952
Unwrap amqp_error and rethrow

22 months agomerged bug22950 into default
Alexandru Scvortov <alexandru@rabbitmq.com> [Wed, 07 Jul 2010 17:13:11 +0100] rev 3951
merged bug22950 into default

22 months agoRename rabbit_reader_queue_collector to rabbit_queue_collector, and shorten some function and variable names. bug22950
Simon MacMullen <simon@rabbitmq.com> [Wed, 07 Jul 2010 15:36:23 +0100] rev 3950
Rename rabbit_reader_queue_collector to rabbit_queue_collector, and shorten some function and variable names.

22 months agomerge heads bug21673
Matthias Radestock <matthias@rabbitmq.com> [Wed, 07 Jul 2010 14:26:46 +0100] rev 3949
merge heads

22 months agomerge bug22896 into bug21673 bug21673
Matthias Radestock <matthias@rabbitmq.com> [Wed, 07 Jul 2010 14:26:20 +0100] rev 3948
merge bug22896 into bug21673

22 months agoBump the msg_store file size limit when testing from 128bytes to 512bytes (normal operational limit is 16MB). This ensures that the GC code is hit bug21673
Matthew Sackman <matthew@rabbitmq.com> [Wed, 07 Jul 2010 14:22:17 +0100] rev 3947
Bump the msg_store file size limit when testing from 128bytes to 512bytes (normal operational limit is 16MB). This ensures that the GC code is hit