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

add encode, message, and proto for RpbGetBucketKeyPreflistReq|Rest #105

Merged

Conversation

zeeshanlakhani
Copy link
Contributor

Adds PB Message Codes and encode fn.

33 - RpbGetBucketKeyPreflistReq
34 - RpbGetBucketKeyPreflistResp

Description

Part of RIAK-1481.

The active preflist will return primary/fallback partitions and nodes for the available nodes at the time of query. Primary/fallback will be annotated.
This involves updates to our RiakKV WB code, RiakPB, Riak-Erlang-Http-Client, Riak-Erlang-Client.

*The impetus for adding this to the API started with a mailing list question answered by Charlie Voiselle, http://lists.basho.com/pipermail/riak-users_lists.basho.com/2015-January/016527.html, which involved a snippet of code that we've given clients multiple times. This was then discussed with Russell Brown on HipChat, https://basho.hipchat.com/history/room/867200/2015/01/13?q=enterprising&t=rid-867200#12:23:22.

Other PRs in the series:

@zeeshanlakhani zeeshanlakhani force-pushed the feature/zl/add-pb-req-resp-for-active-annoated-preflist branch 2 times, most recently from 65e1b38 to bfdcbee Compare February 2, 2015 13:12
@zeeshanlakhani zeeshanlakhani changed the title add encode, message, and proto for Rpbgetbucketkeyactivepreflistreq|resp add encode, message, and proto for Rpbgetbucketkeypreflistreq|resp Feb 2, 2015
hmmr added a commit that referenced this pull request Feb 7, 2015
This branch (see PR #105) is
based on
basho/riak_pb/feature/zl/add-pb-req-resp-for-active-annoated-preflist.

There is a matching commit in basho/riak_kv in a newly created branch
feature/az/api-entrypoints-coverage.
hmmr added a commit that referenced this pull request Feb 13, 2015
This branch (see PR #105) is
based on
basho/riak_pb/feature/zl/add-pb-req-resp-for-active-annoated-preflist.

There is a matching commit in basho/riak_kv in a newly created branch
feature/az/api-entrypoints-coverage.
hmmr added a commit that referenced this pull request Feb 16, 2015
This branch (see PR #105) is
based on
basho/riak_pb/feature/zl/add-pb-req-resp-for-active-annoated-preflist.

There is a matching commit in basho/riak_kv in a newly created branch
feature/az/api-entrypoints-coverage.
hmmr added a commit that referenced this pull request Feb 16, 2015
This branch (see PR #105) is
based on
basho/riak_pb/feature/zl/add-pb-req-resp-for-active-annoated-preflist.

There is a matching commit in basho/riak_kv in a newly created branch
feature/az/api-entrypoints-coverage.
@zeeshanlakhani zeeshanlakhani force-pushed the feature/zl/add-pb-req-resp-for-active-annoated-preflist branch from bfdcbee to d16ec77 Compare February 25, 2015 15:41
@@ -31,6 +31,8 @@
30,RpbResetBucketResp,riak
31,RpbGetBucketTypeReq,riak
32,RpbSetBucketTypeReq,riak
33,Rpbgetbucketkeypreflistreq,riak

Choose a reason for hiding this comment

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

Make sure this is capitalized in the same way as the messages in the .proto file. Erlang lowercases everything, but Java and Python codegen rely on correct capitalization.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Def. my bad on that.

@zeeshanlakhani zeeshanlakhani changed the title add encode, message, and proto for Rpbgetbucketkeypreflistreq|resp add encode, message, and proto for RpbGetBucketKeyPreflistReq|Rest Feb 25, 2015
@zeeshanlakhani zeeshanlakhani force-pushed the feature/zl/add-pb-req-resp-for-active-annoated-preflist branch 2 times, most recently from 09586ec to 9595378 Compare February 25, 2015 20:11
@zeeshanlakhani zeeshanlakhani force-pushed the feature/zl/add-pb-req-resp-for-active-annoated-preflist branch from 9595378 to df64e7d Compare February 25, 2015 20:23
@seancribbs
Copy link

👍 df64e7d

Java, Python, and Erlang generate correctly. Tests pass.

borshop added a commit that referenced this pull request Feb 26, 2015
…ive-annoated-preflist

add encode, message, and proto for RpbGetBucketKeyPreflistReq|Rest

Reviewed-by: seancribbs
@seancribbs
Copy link

@borshop merge

@borshop borshop merged commit df64e7d into develop Feb 26, 2015
@seancribbs seancribbs deleted the feature/zl/add-pb-req-resp-for-active-annoated-preflist branch April 1, 2015 23:39
# 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.

3 participants