Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Explicitly filter out non-primary exchanges #1752

Open
wants to merge 1 commit into
base: develop-3.0
Choose a base branch
from

Conversation

martincox
Copy link
Contributor

Explicitly filter out non-primary exchanges from exchange_queue as opposed to flipping indexes and allowing it to fail. Prevents logging of not_responsible messages when these errorneous exchanges are attempted.

Relates to basho/riak#1011

opposed to flipping indexes and allowing it to fail. Prevents logging of
not_responsible messages when these errorneous exchanges are attempted.
true ->
{B, A, IndexN}
end || {A, B, IndexN} <- Exchanges],
L = [Exchange || {A, B, _IndexN} = Exchange <- Exchanges, A < B],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a hard time to see that in all cases in which prune_exchages is used, this will give the desired result. The original returns all tripples {A, B, I} and ensures that A =< B for all of them. Your solution just removes all {A, B, I} if A >= B.
Apparently you want this, because that's what the commit comment states. But how is function used by the rest of riak?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants