Michael Klishin
219fc225c2
Erlang/OTP 19.3 compatibility for #37
...
19.3 does not provide math:floor/1 or erlang:floor/1.
2018-08-20 20:01:16 +03:00
Michael Klishin
d6e9fd9b9e
Test suite improvements
...
* Use publisher confirms, that's what the test really needs
* Clean up exchanges before setting up topology to make sure failing tests
do not leave anything behind
2018-08-20 19:47:43 +03:00
Michael Klishin
0faf2ba272
Don't try to parse every routing key as an integer
...
References #37 .
2018-08-20 19:29:42 +03:00
Michael Klishin
e132a0a865
A typo
2018-08-20 18:31:56 +03:00
Michael Klishin
25ae2b3fe9
A typo
2018-08-20 15:13:28 +03:00
Michael Klishin
4adfec92e8
Add Ch-squared test results to implementation details
2018-08-20 15:12:27 +03:00
Michael Klishin
b887efdcf3
Extract a few test helpers
2018-08-20 15:05:01 +03:00
Michael Klishin
7cc7b376ad
More code examples in Java, minor doc edits
2018-08-20 14:10:23 +03:00
Michael Klishin
989efa604a
Add a Java code example
2018-08-20 13:39:35 +03:00
Diana Corbacho
f319c84343
Test different bucket sizes
2018-08-20 11:07:12 +01:00
Diana Corbacho
02c5be2d54
Test - and fix - binding cleanup
2018-08-20 08:57:35 +01:00
Michael Klishin
9bde2bc88a
More code examples, minor edits
2018-08-19 16:59:30 +03:00
Michael Klishin
cb4610d29d
Code examples in more languages for the header routing example
2018-08-19 16:35:53 +03:00
Michael Klishin
fc1ed981f5
Provide examples in Python and Ruby
...
with more examples to come as time permits
2018-08-19 15:59:31 +03:00
Michael Klishin
e76e1c7667
More documentation updates
2018-08-19 14:20:39 +03:00
Michael Klishin
9b5fe90736
Documentation updates
2018-08-19 14:09:00 +03:00
Diana Corbacho
d82a77cecc
Verify distribution using chi-square test
2018-08-17 12:12:21 +01:00
Diana Corbacho
59f5110e0d
Generate an intermediate hash value for every non integer value to hash
2018-08-17 11:46:49 +01:00
Diana Corbacho
cfb509ea8d
Fix routing on jump consistent hashing
2018-08-17 11:23:37 +01:00
Michael Klishin
e81ea05c30
Rework bucket management, use jump consistent hashing
...
Pair: @dcorbacho.
Part of #37 .
2018-08-16 18:52:02 +03:00
Jean-Sébastien Pédron
3891c6cdd8
Update rabbitmq-components.mk
2018-08-09 17:44:12 +02:00
Jean-Sébastien Pédron
4ee54a390d
Update rabbitmq-components.mk
2018-08-09 12:16:58 +02:00
Jean-Sébastien Pédron
3b282c5567
Update rabbitmq-components.mk
2018-06-07 11:31:33 +02:00
Jean-Sébastien Pédron
09556453e5
Update erlang.mk
2018-04-11 10:52:54 +02:00
Jean-Sébastien Pédron
5a24d6fbd2
Update rabbitmq-components.mk
2018-04-11 10:51:18 +02:00
Jean-Sébastien Pédron
1a8c14d168
Update rabbitmq-components.mk
2018-04-11 10:10:01 +02:00
Jean-Sébastien Pédron
36a3aa2372
Travis CI: Update config from rabbitmq-common
2018-04-10 13:06:27 +02:00
Jean-Sébastien Pédron
d8065caa54
Update erlang.mk
2018-03-02 19:04:58 +01:00
Jean-Sébastien Pédron
48996ec348
Update rabbitmq-components.mk
2018-01-30 15:23:34 +01:00
Luke Bakken
4b1d98b43a
Update rabbitmq-components.mk
2018-01-29 16:22:11 -08:00
Jean-Sébastien Pédron
91b83100cb
Update rabbitmq-components.mk
2018-01-23 17:21:25 +01:00
Jean-Sébastien Pédron
cfffcef156
Update rabbitmq-components.mk
2018-01-23 15:31:14 +01:00
Diana Corbacho
8a8d364605
Update rabbitmq-components.mk
2018-01-22 22:13:20 +00:00
Jean-Sébastien Pédron
cd59ae8dca
Travis CI: Update config from rabbitmq-common
2017-12-15 15:11:19 +01:00
Jean-Sébastien Pédron
271d6d557e
Update rabbitmq-components.mk
2017-12-01 11:06:23 +01:00
Jean-Sébastien Pédron
4de7b201af
Update rabbitmq-components.mk
2017-11-28 14:00:44 +01:00
Jean-Sébastien Pédron
c195e96b5e
Update rabbitmq-components.mk
2017-11-28 13:28:22 +01:00
Jean-Sébastien Pédron
dcf8bb518b
Travis CI: Update config from rabbitmq-common
2017-11-07 18:27:03 +01:00
Luke Bakken
4055719174
Add GitHub templates and contributing doc
2017-10-13 15:54:48 -07:00
Jean-Sébastien Pédron
18ca79b9b8
Merge branch 'stable'
2017-10-13 15:07:17 +02:00
Jean-Sébastien Pédron
d912b021bb
Update rabbitmq-components.mk
2017-10-13 14:33:06 +02:00
Jean-Sébastien Pédron
b41048df64
Update rabbitmq-components.mk
2017-10-13 14:13:02 +02:00
Jean-Sébastien Pédron
c6d8052063
Update rabbitmq-components.mk
2017-10-13 12:15:42 +02:00
Michael Klishin
4d847f2104
Update rabbitmq-components.mk
2017-09-13 17:54:13 -04:00
Michael Klishin
72dfb4259c
Update rabbitmq-components.mk
2017-09-13 17:45:27 -04:00
Michael Klishin
2b5e903caa
Update rabbitmq-components.mk
2017-09-12 19:53:05 -04:00
Michael Klishin
578361ca6d
Update rabbitmq-components.mk
2017-09-12 12:41:48 -04:00
Daniil Fedotov
d2c5a23248
Merge branch 'stable'
2017-08-30 19:20:29 +01:00
Daniil Fedotov
bc818e4918
Update erlang.mk
2017-08-30 18:46:44 +01:00
Michael Klishin
58f8fb45a6
Erlang/OTP 19.2 is now the minimum supported version.
...
Part of rabbitmq/rabbitmq-server#1305.
[#149563549 ]
2017-07-26 19:02:44 +03:00
Michael Klishin
46c69c45e4
Update rabbitmq-components.mk
2017-07-26 03:48:20 +03:00
Michael Klishin
ec2b4788ef
Update rabbitmq-components.mk
2017-07-26 02:27:03 +03:00
Michael Klishin
66368946c3
Merge branch 'stable'
...
Conflicts:
src/rabbit_exchange_type_consistent_hash.erl
2017-07-05 23:32:01 +03:00
Arnaud Cogoluègnes
af23ae4da6
Make exchange consistent across restarts
...
The message hash used to be compared to a random number to choose the
destination. This random number would change when the broker restarts, making
the exchange not consistent across restarts. This commit replaces
the random number by a hash based on the source and the destination,
which is the same across restarts.
Fixes #32
2017-07-04 14:19:26 +02:00
Michael Klishin
d371770e15
Update rabbitmq-components.mk
2017-06-12 20:13:42 +03:00
Michael Klishin
5a20ad8f8c
Update rabbitmq-components.mk
2017-06-12 18:35:37 +03:00
Michael Klishin
9ee7c2d6fd
Merge branch 'stable'
2017-06-02 18:09:56 +03:00
Michael Klishin
f740f5cc6c
Update rabbitmq-components.mk
2017-06-02 17:51:25 +03:00
Michael Klishin
fbd5eaa215
Update rabbitmq-components.mk
2017-06-02 00:43:20 +03:00
Michael Klishin
51163405f1
Update rabbitmq-components.mk
2017-06-01 18:01:33 +03:00
Jean-Sébastien Pédron
4ef4bfa435
Merge branch 'stable'
2017-05-16 18:02:49 +02:00
Jean-Sébastien Pédron
798f3274a9
Makefile: Load the new `rabbitmq-early-plugin.mk` early-stage plugin
...
See the corresponding commit in rabbitmq-common for an explanation.
[#144697185 ]
2017-05-16 17:31:58 +02:00
Jean-Sébastien Pédron
73578da07c
Update erlang.mk
2017-05-16 17:31:58 +02:00
Jean-Sébastien Pédron
deda7d7a8d
Merge branch 'stable'
2017-04-19 12:44:06 +02:00
Jean-Sébastien Pédron
1380a1292e
Update erlang.mk
2017-04-19 12:01:17 +02:00
Michael Klishin
72623501a4
Merge branch 'stable'
2017-04-02 21:56:37 +03:00
Michael Klishin
c30520abbd
(c) year
2017-04-02 21:47:35 +03:00
Michael Klishin
4d051469b1
Update rabbitmq-components.mk
2017-02-11 23:29:23 +03:00
Michael Klishin
5da4b2f229
Update rabbitmq-components.mk
2017-02-10 11:16:24 +03:00
Michael Klishin
7c39202104
Update rabbitmq-components.mk
2017-02-10 03:06:17 +03:00
Michael Klishin
b2b75013a2
merge branch 'stable'
2017-02-08 16:53:38 +03:00
Michael Klishin
210fbca3ae
Update rabbitmq-components.mk
2017-02-08 16:38:12 +03:00
Michael Klishin
4f73a286b0
merge branch 'stable'
2017-02-06 19:50:14 +03:00
Michael Klishin
1c34ac33ae
Update rabbitmq-components.mk
2017-02-06 19:23:51 +03:00
Jean-Sébastien Pédron
328ed916c4
Update rabbitmq-components.mk
2017-02-02 17:16:56 +01:00
Michael Klishin
171bd0cb3b
merge branch 'stable'
2017-01-31 18:18:17 +03:00
Michael Klishin
344679c619
Update rabbitmq-components.mk
2017-01-31 18:06:24 +03:00
Jean-Sébastien Pédron
b904dfd5d2
Travis CI: Import changes from rabbitmq-auth-backend-amqp
2016-12-12 13:37:06 +01:00
Jean-Sébastien Pédron
96ccbe8015
Merge branch 'stable'
2016-12-09 19:19:36 +01:00
Jean-Sébastien Pédron
9aa059603b
Update rabbitmq-components.mk
2016-12-08 19:14:44 +01:00
Jean-Sébastien Pédron
af2f761eee
Travis CI: Use Ubuntu Trusty image to have access to Elixir
...
Also, required `sudo` so a VM is used instead of a container. This makes
the test much longer, but allows us to install non-whitelisted packages
such as xsltproc.
2016-12-08 17:19:26 +01:00
Jean-Sébastien Pédron
bccf714744
Merge branch 'stable'
2016-12-07 15:35:15 +01:00
Jean-Sébastien Pédron
b2f1f83584
Move from .app.src to Makefile variables
...
This is the recommended way with Erlang.mk.
By default, the version is inherited from rabbitmq-server-release when
the source archive is created, or computed from git-describe(1) (see
`rabbitmq-components.mk`). One can override the version from the command
line by setting the `PROJECT_VERSION` variable.
[#130992027 ]
2016-12-06 15:52:46 +01:00
Michael Klishin
c506208322
Merge branch 'stable'
2016-11-29 21:14:32 +03:00
Michael Klishin
900717155b
Update rabbitmq-components.mk
2016-11-29 20:59:27 +03:00
Jean-Sébastien Pédron
a5a590ded1
Merge branch 'stable'
2016-11-25 10:58:19 +01:00
Jean-Sébastien Pédron
da287f6e92
Update rabbitmq-components.mk
2016-11-25 10:50:55 +01:00
Jean-Sébastien Pédron
f6777f6888
Merge branch 'stable'
2016-11-25 10:31:42 +01:00
Jean-Sébastien Pédron
a8595fc701
Update rabbitmq-components.mk
2016-11-25 10:08:16 +01:00
Jean-Sébastien Pédron
7d843e2810
Merge branch 'stable'
2016-11-24 10:16:23 +01:00
Jean-Sébastien Pédron
8eb0ff9bf6
Add rabbitmq_ct_client_helpers to TEST_DEPS
2016-11-24 10:16:15 +01:00
Jean-Sébastien Pédron
44ef4b1127
Update rabbitmq-components.mk
2016-11-23 18:06:00 +01:00
Gerhard Lazu
9e8c8ad288
Merge branch 'stable'
2016-11-22 16:47:52 +00:00
Gerhard Lazu
40abd34da8
Update erlang.mk
2016-11-22 16:18:37 +00:00
Gerhard Lazu
74092a1677
Update rabbitmq-components.mk
2016-11-22 16:16:30 +00:00
Jean-Sébastien Pédron
8f37062b85
Update erlang.mk
2016-11-14 11:54:47 +01:00
Jean-Sébastien Pédron
419a112a82
Update rabbitmq-components.mk
2016-11-10 16:56:32 +01:00
Jean-Sébastien Pédron
ca5a595d6c
Merge branch 'stable'
2016-09-23 16:00:48 +02:00
Jean-Sébastien Pédron
867b713a21
Update rabbitmq-components.mk
2016-09-23 11:23:03 +02:00
Jean-Sébastien Pédron
1fde664ae8
Update erlang.mk
2016-09-22 17:56:17 +02:00
Jean-Sébastien Pédron
2479d5ea97
rabbitmq_consistent_hash_exchange.app: Depend on rabbit_common and rabbit
...
Also depend on basic Erlang applications.
2016-09-19 13:32:55 +02:00
Jean-Sébastien Pédron
52859b36b5
Makefile: Explicitely list all DEPS
...
Sync rabbitmq-components.mk with rabbitmq-common to remove automatic
DEPS handling.
[#130086871 ]
2016-09-19 13:32:55 +02:00
Jean-Sébastien Pédron
e4cda34da2
Update erlang.mk
2016-09-19 13:29:03 +02:00
Jean-Sébastien Pédron
c48615f11b
Merge branch 'stable'
2016-09-15 16:39:14 +02:00
Jean-Sébastien Pédron
c493ce5a14
Update rabbitmq-components.mk
2016-09-15 15:51:30 +02:00
Jean-Sébastien Pédron
bb5d2c6dc1
Merge branch 'stable'
2016-09-07 09:41:06 +02:00
Jean-Sébastien Pédron
0b2e4f4ec0
Travis CI: Align tested Erlang versions with other components
2016-09-07 09:40:16 +02:00
Jean-Sébastien Pédron
38a8bbccc2
Merge branch 'stable'
2016-09-02 16:00:06 +02:00
Jean-Sébastien Pédron
0078d482b7
Update rabbitmq-components.mk
2016-09-02 13:22:25 +02:00
Jean-Sébastien Pédron
c0edbdd6d9
Makefile: No need to filter out rabbitmq_test from TEST_DEPS anymore
...
[#127356157 ]
2016-09-02 12:21:27 +02:00
Jean-Sébastien Pédron
ab9cd7d61e
Update rabbitmq-components.mk
2016-09-02 12:03:30 +02:00
Michael Klishin
8c6835439c
Mention rabbitmq-sharding a possible alternative
2016-08-14 07:22:45 +03:00
Michael Klishin
5f76c94416
Add a note and links discussed in #13
2016-08-14 07:19:10 +03:00
Michael Klishin
5217f2408e
Update rabbitmq-components.mk
2016-07-14 15:44:10 +03:00
Michael Klishin
a353742365
Update rabbitmq-components.mk
2016-07-14 15:37:29 +03:00
Michael Klishin
4b5308ef3d
Update rabbitmq-components.mk
2016-07-14 13:38:42 +03:00
Michael Klishin
1985b00ab4
Update rabbitmq-components.mk
2016-07-14 13:19:58 +03:00
Michael Klishin
a47209148c
Building on R16B03-1 is no longer supported (running is)
2016-07-04 22:04:59 +03:00
Andrew Bruce
bf2b2739f7
Filter out rabbitmq_test as a dependency
...
[#121860343 ]
2016-07-04 19:53:52 +01:00
Andrew Bruce
acc17cbb75
Filter out rabbitmq_test as a dependency
...
[#121860343 ]
2016-07-04 10:52:54 +01:00
Jean-Sébastien Pédron
a5323b7379
Use `rand` directly in master because we require Erlang 18.3
...
References rabbitmq/rabbitmq-server#860.
[#122335241 ]
2016-06-30 17:30:20 +02:00
Jean-Sébastien Pédron
aa83e8d971
Merge branch 'stable'
2016-06-29 13:27:37 +02:00
Jean-Sébastien Pédron
9aa6728140
Use the new `rand_compat` module to transition from `random` to `rand`
...
References #860 .
[#122335241 ]
2016-06-29 13:25:19 +02:00
Jean-Sébastien Pédron
130f996692
Git: Ignore `xrefr`
2016-06-29 13:24:52 +02:00
Michael Klishin
54d88af579
Not really probabilistic
2016-06-23 00:17:31 +03:00
kjnilsson
c3304199ac
change the use of 'Probabilistic'
2016-06-20 17:38:39 +01:00
Mordy Ovits
fe7318cf07
Further clarity
2016-06-20 17:38:31 +01:00
Mordy Ovits
0132ca5b18
Correct the description of hashing distribution
...
It's not true that "if you wish for queue A to receive twice as many messages as queue B then you bind the queue A with a binding key of twice the number [...] of the binding key of the binding to queue B." The hashing is done on the routing keys, not the messages. If routing key "foo" has 50,000 messages published and routing key "bar" has 1 message published, the ratio of messages received by queues A and B will not be 2:1. In fact, all 50,001 messages might go to just one of those queues.
I've edited the langue to match the actual behavior and specifically clarified this confusion.
2016-06-20 17:38:24 +01:00
kjnilsson
a6ab0f2855
update travis config
2016-06-20 15:27:41 +01:00
Michael Klishin
619160c4b4
Switch test suite to Common Test
...
Fixes #21 .
2016-06-20 16:30:26 +03:00
Michael Klishin
805cbcb715
Merge branch 'master' into rabbitmq-delayed-message-exchange-3
2016-06-02 16:28:48 +03:00
Michael Klishin
10fd8c25d4
Merge branch 'stable'
2016-05-29 23:32:42 +03:00
Michael Klishin
59602a84e4
Update rabbitmq-components.mk
2016-05-29 23:21:54 +03:00
Michael Klishin
8035d39dc7
Update CONTRIBUTING.md, add CODE_OF_CONDUCT.md
2016-05-28 09:53:34 -07:00
Michael Klishin
cbdf30a28a
Update CONTRIBUTING.md, add CODE_OF_CONDUCT.md
2016-05-28 14:22:49 +03:00
Daniil Fedotov
55896dc5f4
Stub for type specific exchange info
2016-05-20 12:09:51 +01:00
kjnilsson
6c20333f67
Merge branch 'stable'
2016-05-18 13:22:06 +01:00
Karl Nilsson
d2df507204
Update rabbitmq-components.mk
2016-05-18 12:47:59 +01:00
Michael Klishin
ad5fecb2cf
Merge pull request #20 from rabbitmq/rabbitmq-server-546
...
Use erlang 18.3 only in travis
2016-05-17 12:04:14 +03:00
Michael Klishin
4888f660e8
Update rabbitmq-components.mk
2016-05-17 11:17:52 +03:00
Michael Klishin
e63fed8a73
Update rabbitmq-components.mk
2016-05-17 10:16:08 +03:00
Daniil Fedotov
8a50680cdf
Use erlang 18.3 only in travis
2016-05-12 10:58:25 +01:00
Daniil Fedotov
901940f4af
Stub for broker_version_requirements
2016-04-22 14:42:18 +01:00
Michael Klishin
8b6172fe9e
Update rabbitmq-components.mk
2016-03-23 17:13:39 +03:00
Michael Klishin
3e06644577
Update (c) info
2016-01-01 12:59:16 +03:00
Pierre Fenoll
f693990b4e
.gitignore: make absolute paths relative
2015-12-28 18:16:07 +03:00
Jean-Sébastien Pédron
ecd675505e
Update erlang.mk
2015-12-18 20:33:47 +01:00
Jean-Sébastien Pédron
41df64e40f
Update rabbitmq-components.mk
2015-12-18 19:08:07 +01:00
Michael Klishin
f1d0e4a47d
Update rabbitmq-components.mk
2015-12-18 19:48:21 +03:00
Jean-Sébastien Pédron
16df53691d
Update rabbitmq-components.mk
2015-12-03 15:38:48 +01:00
Jean-Sébastien Pédron
3b453bb782
Update rabbitmq-components.mk
2015-12-01 18:36:21 +01:00
Jean-Sébastien Pédron
18f3dbfb6d
Update rabbitmq-components.mk
2015-12-01 16:17:18 +01:00
Jean-Sébastien Pédron
f032466708
Update rabbitmq-components.mk
2015-11-30 09:14:37 +01:00
Jean-Sébastien Pédron
e976b53ab9
Update rabbitmq-components.mk
2015-11-26 08:54:10 +01:00
Jean-Sébastien Pédron
251a91b1ad
Update rabbitmq-components.mk
2015-11-26 08:41:22 +01:00
Jean-Sébastien Pédron
63bbcc934d
Update erlang.mk
2015-11-25 10:35:55 +01:00
Jean-Sébastien Pédron
5c66096dfc
Update rabbitmq-components.mk
2015-11-25 10:35:23 +01:00
Jean-Sébastien Pédron
1a2c08c2c3
Update rabbitmq-components.mk
2015-11-20 10:52:04 +01:00
Jean-Sébastien Pédron
819aca804b
Update erlang.mk
2015-11-19 14:31:43 +01:00
Jean-Sébastien Pédron
628abb6844
Update erlang.mk
2015-11-18 19:14:27 +01:00
Jean-Sébastien Pédron
f1b2248ad0
Update erlang.mk
2015-11-18 17:39:28 +01:00
Jean-Sébastien Pédron
a15d9703a1
Update erlang.mk
2015-11-10 13:12:12 +01:00
Jean-Sébastien Pédron
2553703ed0
Update rabbitmq-components.mk
2015-11-10 13:11:16 +01:00
Jean-Sébastien Pédron
b99b36657d
Update rabbitmq-components.mk
2015-11-05 20:51:33 +00:00
Jean-Sébastien Pédron
6a55e78fc9
Update rabbitmq-components.mk
2015-11-03 15:12:28 +01:00
Jean-Sébastien Pédron
5a49f9095b
Update rabbitmq-components.mk
2015-11-02 10:20:49 +01:00
Jean-Sébastien Pédron
1207c3e65e
Update rabbitmq-components.mk
2015-10-30 17:32:55 +01:00
Jean-Sébastien Pédron
f9e6aeefef
Update erlang.mk
2015-10-28 11:15:52 +01:00
Jean-Sébastien Pédron
79df2843ad
Update rabbitmq-components.mk
2015-10-28 11:10:36 +01:00
Jean-Sébastien Pédron
4e7c912497
DEPS: Remove rabbit
2015-10-26 18:11:44 +01:00
Jean-Sébastien Pédron
d51a24f9a9
Update erlang.mk
2015-10-26 15:33:18 +01:00
Jean-Sébastien Pédron
d5132a0b75
Update rabbitmq-components.mk
2015-10-26 11:15:26 +01:00
Jean-Sébastien Pédron
4442251593
Update rabbitmq-components.mk
2015-10-26 10:21:16 +01:00
Jean-Sébastien Pédron
8901573ae6
Adapt .travis.yml to erlang.mk
2015-10-23 20:05:20 +02:00
Jean-Sébastien Pédron
12a705fba8
Update erlang.mk
2015-10-23 18:32:37 +02:00
Jean-Sébastien Pédron
5b97e45bda
Update rabbitmq-components.mk
2015-10-23 16:05:41 +02:00
Jean-Sébastien Pédron
69497fa6fe
Update erlang.mk
2015-10-22 18:34:17 +02:00
Jean-Sébastien Pédron
39676fe18a
Update rabbitmq-components.mk
2015-10-19 17:35:43 +02:00
Jean-Sébastien Pédron
c9633e936a
Update erlang.mk
2015-10-19 17:29:25 +02:00
Jean-Sébastien Pédron
aa5eeaeca4
Update rabbitmq-components.mk
2015-10-19 17:29:25 +02:00
Jean-Sébastien Pédron
64bfae2fa0
Initial move to erlang.mk
2015-10-19 17:29:25 +02:00
Alvaro Videla
b506dad8c0
fixes connection leaking on tests
2015-09-16 14:38:26 +03:00
Alvaro Videla
d6ee1f406c
cosmetics
2015-09-15 12:09:56 +03:00
Gavin M. Roy
a9bcb539b4
Add routing on message properties
...
Summary:
Add a new hash-property argument setting that allows for message hasing based upon the correlation_id or message_id.
Changes:
- Validate the exchange upon creation to ensure that hash-header and hash-property are not both set at the same time. Additionally validate the value of hash-property when set is one of correlation_id or message_id
- Change the signature of hash/2 for header to match on {header, Header} instead of {longstr, Header}
- Add a new hash/2 implementation that matches on {property, Value} for returning the hashable string from the message properties
- Implement a new hash_on/1 method for selecting the data the message will be routed on
- Implement a new hash_args/1 method for returning the configuration for both hash-header and hash-property
- Add test coverage for message property based routing
This addresses the proposal I outlined in #7
2015-09-02 12:33:32 -04:00
Michael Klishin
63d9a783ff
Merge branch 'stable'
2015-09-02 11:23:43 +03:00
Michael Klishin
8728d6b476
Clean up declared queues
2015-09-02 11:23:25 +03:00
Michael Klishin
fb8dba5018
Cosmetics
2015-09-02 11:21:27 +03:00
Michael Klishin
2b5af1e219
Merge branch 'add-validation' of git://github.com/gmr/rabbitmq-consistent-hash-exchange into gmr-add-validation
2015-09-02 10:29:36 +03:00
Michael Klishin
9d62cbdff5
Copy .travis.yml over to stable
2015-09-02 10:11:15 +03:00
Gavin M. Roy
c023431dec
Validate routing key when binding
...
- Address #6 by validating that the routing key is both numeric and non-negative.
- Add unit tests to cover both cases.
2015-09-01 12:03:33 -04:00
Michael Klishin
bdc1541677
Add travis badge
2015-08-22 01:45:47 +03:00
Michael Klishin
8b894f80ee
Oops
2015-08-22 01:41:21 +03:00
Michael Klishin
0f331f6546
Update .travis.yml
2015-08-22 01:37:25 +03:00
Michael Klishin
26015f246b
Merge pull request #9 from gmr/travis-ci-testing
...
Add configuration for travis-ci testing
2015-08-22 01:27:52 +03:00
Gavin M. Roy
932b5a2fda
Add configuration for travis-ci testing
2015-08-21 18:16:49 -04:00
Michael Klishin
12a8d9a690
Update README.md
2015-06-04 14:50:52 +03:00
Michael Klishin
3b42477e05
Update README.md
2015-03-24 21:15:56 +03:00
Michael Klishin
eeaca05545
Update mailing list link
2015-03-24 21:04:46 +03:00
Michael Klishin
b96f10c561
Sync CONTRIBUTING.md with the template one
2015-02-20 17:08:30 +03:00
Jean-Sébastien Pédron
d8ae1be58d
Merge branch 'stable'
2015-02-19 18:13:16 +01:00
Jean-Sébastien Pédron
3e5c968d61
Convert .hgignore to .gitignore
2015-02-19 17:26:01 +01:00
Michael Klishin
662df3f479
Sync CONTRIBUTING.md with the template one
2015-02-18 00:24:45 +03:00
Jean-Sébastien Pédron
f4d4bbf631
Remove the "moved to GitHub" warning.
2015-02-17 21:10:43 +01:00
Jean-Sebastien Pedron
69c6ae07cf
README.md: Warn about the move to GitHub
2015-02-17 17:58:46 +01:00
Simon MacMullen
b0619116f6
Merge bug 24926
2014-06-11 13:54:26 +01:00
Simon MacMullen
e89376c58c
Update copyright for 2014
2014-03-17 17:25:20 +00:00
Tim Watson
ee54ac2758
Switch to simplified boot/cleanup step API
2014-01-12 12:07:53 +00:00
Tim Watson
a595426b95
Unregister the exchange type when the plugin is disabled (at runtime)
2013-11-27 14:31:54 +00:00
Simon MacMullen
d56ade9bf3
s/VMware/GoPivotal/g
2013-07-01 10:49:11 +01:00
Matthias Radestock
8cf8a63fdf
propagate API change; and some cosmetics
2013-03-17 20:23:24 +00:00
Simon MacMullen
8f216d33ea
rabbit_exchange_type:validate_binding/2.
2013-03-13 17:18:48 +00:00
Emile Joubert
ecd23a1375
Merged bug25044
2013-02-12 11:23:52 +00:00
Emile Joubert
5d2f230fdf
Merge heads
2013-02-12 11:18:27 +00:00
Simon MacMullen
e6723046a7
Don't repeat yourself.
2013-02-08 16:10:27 +00:00
Emile Joubert
38b8f1967b
Update copyright 2013
2013-01-23 11:29:20 +00:00
Simon MacMullen
30801fb358
A test would be nice.
2013-01-18 14:22:00 +00:00
Matthias Radestock
e0eb8a7f5b
this should be more efficient
2013-01-17 21:09:05 +00:00
Matthias Radestock
2eaab2a314
cleanup on deletion
2013-01-16 19:47:51 +00:00
Simon MacMullen
2f2f22e96c
More doc
2013-01-09 14:24:58 +00:00
Simon MacMullen
57c59f05b3
Remove unused variables
2013-01-09 14:21:20 +00:00
Simon MacMullen
1af651f92f
Typo
2013-01-09 11:11:51 +00:00
Simon MacMullen
0c27693353
Derp, use arguments rather than environment. And add a touch of documentation.
2013-01-09 11:10:05 +00:00
Simon MacMullen
71ad929bcf
I realise now this should be keyed off exchange arguments, but I want to go home and I hate leaving things uncommitted.
2013-01-08 18:34:55 +00:00
Simon MacMullen
f5bdb4869e
API change
2012-05-18 16:21:41 +01:00
Francesco Mazzoli
38379f2e62
Removed behaviour .hrl
2012-04-12 11:18:33 +01:00
Emile Joubert
996e96c6c1
Update copyright 2012
2012-02-02 12:53:17 +00:00
Matthew Sackman
1a28d07b69
bug 24620: Remember that the first item in the table may not be for the exchange we're interested in...
2011-12-08 15:23:39 +00:00
Matthew Sackman
2350b5c611
Add test, of a rather basic nature. I would much rather use confirms, not txn, but confirms are broken in the erlang client (see bug 24499), so I have no choice.
2011-10-18 16:39:24 +01:00
Matthew Sackman
600567148a
Minor improvements to documentation; additional comment in code now that I've given up with my finger-tree implementation to 'solve' the identified problem.
2011-10-18 15:36:28 +01:00
Matthew Sackman
498109c86e
Minor inlining.
2011-09-24 19:56:08 +01:00
Matthew Sackman
bf08828cce
Improve documentation
2011-09-24 19:39:28 +01:00
Matthew Sackman
e0ef2de300
Initial check-in
2011-09-24 19:21:18 +01:00