Token range ownership#944
Conversation
|
Hi @damien-instaclustr, thanks for your contribution! In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. Sincerely, |
|
Thank you @damien-instaclustr for signing the Contribution License Agreement. Cheers, |
|
This looks good to me, also add that the values in |
|
Thanks @bjmb |
|
Thank you @damien-instaclustr , can you verify I've correctly explained the issue in the ticket: https://datastax-oss.atlassian.net/browse/PYTHON-978? Feel free to add something otherwise. |
|
Thanks @bjmb for creating the ticket. I tried to create a ticket before submitting the PR, but wasn't able to because I was hitting the jira's account limit. Looks like the limit will also prevent me from directly contributing to the ticket aswell. |
|
Thank you @damien-instaclustr , added the changelog entry |
mambocab
left a comment
There was a problem hiding this comment.
Thanks for the PR, great catch. I've filed #944 so the full test suite will run. On this PR, I'm seeing a failure in Appveyor, I believe on the test for this behavior: https://ci.appveyor.com/project/DataStax/python-driver/build/2761/job/0xb91781er6p7fd0?fullLog=true#L2570
So -1 for the moment -- any idea what's up with this @damien-instaclustr ?
|
Yes. It looks like there was another test I missed that assumed the token range ownership was [left, right). @mambocab - Do you mind reviewing again? |
|
Great, thanks! I've rebased my other branch onto |
|
Tests ran clean! |
9dee19e to
7d5a624
Compare
|
Thanks @mambocab. I have squashed my commits. |
|
Many thanks! |
According to Cassandra:
However,
TokenMap.get_replicas()appears to implement [left, right).This pull request aims to resolve this disagreement.
** Source: https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/dht/Range.java