-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Quorum queue local delivery #2146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
So that a follower can deliver them if the consuming channel is local to them in the cluster. [#161555213]
a3baaa9
to
d161bd6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do any test suite assertions need updating?
rabbit_fifo_SUITE > tests > return_checked_out_test
#1. {error,
{{badmatch,
{{rabbit_fifo,
{cfg,test,
{resource,"/",queue,<<"test">>},
{0,64000},
undefined,undefined,undefined,undefined,competing,
undefined,undefined,undefined},
#{},undefined,2,
{0,{[],[]}},
1,
#{<0.178.0> => {enqueuer,2,[],up}},
{rabbit_fifo_index,#{1 => ''},1,1},
{0,{[],[]}},
#{{<<"cid">>,<0.178.0>} =>
{consumer,#{},
#{0 => {1,{1,{0,first}}}},
1,0,1,simple_prefetch,auto,up}},
{[],[]},
{[],[]},
0,0,[],0,0},
[{monitor,process,<0.178.0>},
{send_msg,<0.178.0>,
{delivery,<<"cid">>,[{0,{0,first}}]},
[local,ra_event]},
{aux,active}]}},
[{rabbit_fifo_SUITE,return_checked_out_test,1,
[{file,"test/rabbit_fifo_SUITE.erl"},{line,310}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1754}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1263}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1195}]}]}}
rabbit_fifo_SUITE > tests > return_checked_out_limit_test
#1. {error,
{{badmatch,
{{rabbit_fifo,
{cfg,test,
{resource,"/",queue,<<"test">>},
{0,64000},
undefined,undefined,undefined,undefined,competing,1,
undefined,undefined},
#{},undefined,2,
{0,{[],[]}},
1,
#{<0.181.0> => {enqueuer,2,[],up}},
{rabbit_fifo_index,#{1 => ''},1,1},
{0,{[],[]}},
#{{<<"cid">>,<0.181.0>} =>
{consumer,#{},
#{0 => {1,{1,{0,first}}}},
1,0,1,simple_prefetch,auto,up}},
{[],[]},
{[],[]},
0,0,[],0,0},
[{monitor,process,<0.181.0>},
{send_msg,<0.181.0>,
{delivery,<<"cid">>,[{0,{0,first}}]},
[local,ra_event]},
{aux,active}]}},
[{rabbit_fifo_SUITE,return_checked_out_limit_test,1,
[{file,"test/rabbit_fifo_SUITE.erl"},{line,327}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1754}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1263}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1195}]}]}}
FWIW I see the same failures in |
Ah yes I missed to run that suite. yes they will need updating as they assert of the effect which has now changed. |
michaelklishin
approved these changes
Nov 15, 2019
michaelklishin
added a commit
that referenced
this pull request
Nov 15, 2019
Quorum queue local delivery (cherry picked from commit 880965a)
Backported to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This allows consumer deliveries to be sent from followers that are local to the consuming channels (when available). When there isn't a local follower the leader will deliver the message as before.
This saves unnecessary network hops.
Needs latest Ra master.