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

ISPN-6055 Performance regression in replicated reads after ISPN-5465 #3938

Conversation

danberindei
Copy link
Member

@danberindei danberindei added this to the 8.2.0.Alpha1 milestone Jan 14, 2016
@danberindei danberindei force-pushed the ISPN-6055_partitionerconsistenthash_performance branch from 28799a7 to 5f4a782 Compare January 14, 2016 13:39
@@ -77,7 +78,12 @@ public String getRoutingTableAsString() {

@Override
public boolean isKeyLocalToNode(Address nodeAddress, Object key) {
return ch.isSegmentLocalToNode(nodeAddress, getSegment(key));
// TODO Make this a method in ConsistentHash
Copy link
Member

Choose a reason for hiding this comment

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

Why not use a default method ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was hesitating about what that method should be, and I thought I was short on time...

Copy link
Member Author

Choose a reason for hiding this comment

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

I added an isReplicated() method in ConsistentHash and removed the TODO.

@danberindei danberindei force-pushed the ISPN-6055_partitionerconsistenthash_performance branch 3 times, most recently from 845df1b to f893bae Compare January 15, 2016 10:03
* Introduce a new method, ConsistentHash.isReplicated().
* When it returns true, PartitionerConsistentHash can ignore the
  key in isKeyLocalToNode().
@danberindei danberindei force-pushed the ISPN-6055_partitionerconsistenthash_performance branch from f893bae to 1868d36 Compare January 18, 2016 09:36
@tristantarrant
Copy link
Member

Pushed, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants