Vincent Rischmann created CASSANDRA-19861: ---------------------------------------------
Summary: Incomplete specification of CRC computation in protocol v5 framing Key: CASSANDRA-19861 URL: https://issues.apache.org/jira/browse/CASSANDRA-19861 Project: Cassandra Issue Type: Improvement Components: Documentation Reporter: Vincent Rischmann I've been working on a Cassandra client as a side project. While implementing protocol v5 framing I've encountered an issue regarding how to compute the CRC32 of the frame payload and I believe the specification is incomplete. [The specification|https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v5.spec#L97-L175] says "CRC32 of payload" or "Payload CRC32" but looking at the source code of Cassandra the CRC32 is seeded with some magic bytes first, see https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/net/Crc.java#L38-L54 This isn't documented anywhere in the specification as far as I can tell, but it seems to me it should be. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org