-
Notifications
You must be signed in to change notification settings - Fork 182
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 2.1 Preflists and Write-Once Bucket Types #414
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b3c4c03
Add support for fetching the bucket/key preflist
3155352
Add support for write-once bucket type property
63a205b
Update the feature detection tests for Riak 2.1
30f8ae0
Add optional timeout to YZ create index command
6e4f11a
Update preflist test
b01bf1b
Add in correct permissions for riak_kv.get_preflist
26dfdfc
Use known working list of ciphers for tests. Tweaks to SecurityError …
bdbc35f
Some small things to ignore
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.pyc | ||
.python-version | ||
|
||
docs/_build | ||
|
||
|
@@ -9,6 +10,7 @@ build/ | |
dist/ | ||
riak.egg-info/ | ||
*.egg | ||
.eggs/ | ||
|
||
#*# | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -579,6 +579,18 @@ def test_get_params(self): | |
basic_quorum=True) | ||
self.assertFalse(missing.exists) | ||
|
||
def test_preflist(self): | ||
bucket = self.client.bucket(self.bucket_name) | ||
bucket.new(self.key_name, data={"foo": "one", | ||
"bar": "baz"}).store() | ||
preflist = bucket.get_preflist(self.key_name) | ||
preflist2 = self.client.get_preflist(bucket, self.key_name) | ||
nodes = ['[email protected]', '[email protected]'] | ||
for pref in (preflist, preflist2): | ||
self.assertEqual(len(pref), 3) | ||
self.assertIn(pref[0]['node'], nodes) | ||
[self.assertTrue(node['primary']) for node in pref] | ||
|
||
def generate_siblings(self, original, count=5, delay=None): | ||
vals = [] | ||
for _ in range(count): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this also check for security and, if enabled, require a version greater than 2.1.1 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a great idea. I just tried this with 2.1.2rc3 but it seems to report back a version of 2.1.1. It occurred to me that buildbot also is trying to apply the permission in the configuration step, but that is failing. So putting a check here won't help that.