Skip to content
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

Reduced Replication #402

Merged
merged 13 commits into from
Sep 20, 2013
Merged

Reduced Replication #402

merged 13 commits into from
Sep 20, 2013

Conversation

lordnull
Copy link
Contributor

Repl part for #223 .

Adds a riak_kv_mutator callback that reduces objects to a minimal representation if set by either cluster or bucket; bucket always wins in case of reductions.

@bowrocker
Copy link
Contributor

As a general comment, I think some more documentation would help other coders, particularly some context-giving doc. Such as, what is a kv mutator (links perhaps), how is it activated, how does this proxy_get wrapper get called, etc.

I don't think in needs external doc, just a little context to what is already good doc in the repl_reduced module.

%% TCP buffers.
{diff_batch_size, 100}
]}
]}.
Copy link
Contributor

Choose a reason for hiding this comment

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

why was riak_repl.app.src changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It did not exist before, so if one needs to add/remove a module to the repl application, you need to update ebin/riak_repl.app. By adding src/riak_repl.app.src the app file is automatically generated and updated as modules are added/removed.

The fact that I needed to update the .app file has bit me on other features before (cascading realtime), and this was the straw that broke the camel's back. My investigations indicated there was no good reason the for the .app file to be static, so I made it dynamically generated.

@bowrocker
Copy link
Contributor

riak_repl

Riak MDC Replication


Pull Request template

Testing

Documentation

  • internal docs (design docs) repl_reduced has good overview
  • external docs (docs.basho.com)
  • man pages

👍

lordnull added a commit that referenced this pull request Sep 20, 2013
@lordnull lordnull merged commit cdbb3e2 into develop Sep 20, 2013
Self = self(),
case lists:nth(Nth, Preflist) of
{{_Partition, Self}, _PrimaryNess} ->
lager:debug("odd that we get ourselves as a pref. doing proxy"),
Copy link
Member

Choose a reason for hiding this comment

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

Odd, inconceivable, erroneous?

@seancribbs seancribbs deleted the feature/mw-reduced-repl branch April 1, 2015 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants