Fix misuse of DataOutputBuffer.getData in AntiEntropyService
------------------------------------------------------------

                 Key: CASSANDRA-1729
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1729
             Project: Cassandra
          Issue Type: Bug
            Reporter: Stu Hood
            Assignee: Stu Hood
            Priority: Minor
             Fix For: 0.6.8


As reported by Schubert Zhang, AntiEntropyService is ignoring the length of the 
input buffer.
{code:java}
byte[] rowhash = FBUtilities.hash("SHA-256", row.key.key.getBytes(), 
row.buffer.getData());
{code}

While this isn't effecting our accuracy, it would break validation if we 
started reusing buffers in CompactedRow. This issue has already been fixed in 
0.7.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to