Alan Wang created CASSANDRA-21692:
-------------------------------------

             Summary: Accord LWT can discard condition in IF statement + 
Journal error handling incorrectly calculates bufferPosition
                 Key: CASSANDRA-21692
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21692
             Project: Apache Cassandra
          Issue Type: Bug
          Components: Accord
            Reporter: Alan Wang
            Assignee: Alan Wang


1. When we have a condition on a static row and a condition on a regular row we 
can discard the condition on the regular row for Accord LWTs
2. L148 and L158 in 
[https://github.com/apache/cassandra/blob/50a10d42a5d633150fbf4ae518b4da85466472b2/src/java/org/apache/cassandra/journal/EntrySerializer.java#L148],
 should be start + headerSize instead of from.position() + headerSize and start 
+ totalSize instead of from.position() respectively since crc.update(from) in 
readAndUpdateHeaderCrc changes the buffer's position



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to