Skip to content

Add remaining bucket properties to PBC#30

Merged
seancribbs merged 10 commits intomasterfrom
sdc-bucket-props
Feb 28, 2013
Merged

Add remaining bucket properties to PBC#30
seancribbs merged 10 commits intomasterfrom
sdc-bucket-props

Conversation

@seancribbs
Copy link

NOTE: This is a protocol change only, related libraries that link directly (Riak, Erlang/Python/Java clients) will break with this patch until changes have been propagated.

This adds the remaining known bucket properties to the PBC messages. An effort has been made to avoid reimplementing JSON; instead the messages strive to have a more compact form but the riak_pb_codec module modulates formats as necessary for compatibility. Additionally, arbitrary properties are not supported (although one can set them over HTTP), only properties that are known and used in Riak sub-applications are included.

@seancribbs
Copy link
Author

Note: this obsoletes #23.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why two revisions? Is it to keep step with Riak versions?

Copy link
Author

Choose a reason for hiding this comment

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

We didn't change this for 1.3, so yes. There is a 1.3 tag, I believe.

Copy link
Contributor

Choose a reason for hiding this comment

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

Running the riak-erlang-client I get the following error

https://gist.github.com/russelldb/3fcbf5089cc473184e62

And the code in that gist 'fixes' it (is there another way, yours looks like it should work?)

Copy link
Author

Choose a reason for hiding this comment

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

I think the catch is wrong, it should just be exit:badarg.

Copy link
Author

Choose a reason for hiding this comment

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

Nope, i'm still wrong, i can just make it the _:_ catch.

Copy link
Author

Choose a reason for hiding this comment

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

Once more, with reading comprehension, the correct match in this case is error:badarg.

@russelldb
Copy link
Contributor

Do you think a riak test using the riak-erlang-client is in order? I don't mind writing it.

@russelldb
Copy link
Contributor

WFM now, +1. What about that riak test? Maybe a roundtrip from HTTP->PB->HTTP for example?

@seancribbs
Copy link
Author

I will hack it out on the train today, thanks @russelldb

@ghost ghost assigned russelldb and seancribbs Feb 28, 2013
seancribbs pushed a commit that referenced this pull request Feb 28, 2013
Add remaining bucket properties to PBC
@seancribbs seancribbs merged commit 0709ded into master Feb 28, 2013
@seancribbs seancribbs deleted the sdc-bucket-props branch February 28, 2013 18:07
lemenkov pushed a commit to lemenkov/riak_kv that referenced this pull request Mar 15, 2013
@seancribbs seancribbs removed their assignment May 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants