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

Add async job switches #1459

Merged
merged 36 commits into from
Sep 1, 2016
Merged

Add async job switches #1459

merged 36 commits into from
Sep 1, 2016

Conversation

tburghart
Copy link
Contributor

@tburghart tburghart commented Aug 9, 2016

Adds switches for the following operations arriving through HTTP or protobuf interfaces:

  • list_buckets
  • list_keys
  • map_reduce_js
  • map_reduce
  • secondary_index (search)
  • stream_list_buckets
  • stream_list_keys
  • stream_secondary_index (search)

Caveats:

  • map_reduce_js, meant to control map-reduce jobs using embedded javascript, is not handled distinctly from map_reduce, as we have not yet identified an efficient way to determine whether or not a submitted job actually uses JS at the outer boundary where filtering is implemented.

nickelization and others added 29 commits July 15, 2016 16:27
…ment branch!

* Leaving erlang_js at a tag because it's way behind current and I don't
  want to investigate whether it still supports R16.

Format per RIAK-2559 branch's rebar.config so the eventual merge won't hurt so much.
basho/tools.mk#13
Changing as a separate commit in case any problems arise, but it seems solid.
We should forbid the operation if *either* of these clauses return true,
not just if they both do.
And update associated unit test to match.
true ->
case check_bucket_type(Type) of
{ok, GoodType} ->
do_list_buckets(GoodType, T, S, Req, State);
error ->
{error, {format, "No bucket-type named '~s'", [Type]}, State}
Copy link
Contributor

Choose a reason for hiding this comment

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

Small request for the future: if/when you break up long lines, could you do it in its own separate commit? It adds a little bit of friction to the review process when I have to look at the diff and mentally filter out what's an actual change vs what's just being reformatted.

Torben Hoffmann and others added 7 commits August 22, 2016 16:13
Refactored to reduce code duplication and increase clarity.
We use four spaces for each indentation level elsewhere, so new code
should follow that convention.
The new code has no clause to handle stream=undefined, which is what
we'll get in that one backwards compatibility case.
…traction

Refactored riak_kv_pb_index and riak_kv_pb_bucket (version 2)

Reviewed-by: JeetKunDoug
@nickelization
Copy link
Contributor

+1 8e0233b

borshop added a commit that referenced this pull request Sep 1, 2016
Add async job switches

Reviewed-by: nickelization
@nickelization
Copy link
Contributor

@borshop merge

@borshop borshop merged commit 8e0233b into develop-2.2 Sep 1, 2016
@tburghart tburghart deleted the develop-2.2-job-switches branch September 1, 2016 19:47
@Basho-JIRA
Copy link

already merged

_[posted via JIRA by Patricia Brewer]_

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.

6 participants