You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Yaniv Kaul (Jira)" <ji...@apache.org> on 2025/09/26 17:15:00 UTC

[jira] [Created] (CASSANDRA-20929) Protocol v5 spec is wrong - wrt compressed frame format

Yaniv Kaul created CASSANDRA-20929:
--------------------------------------

             Summary: Protocol v5 spec is wrong - wrt compressed frame format
                 Key: CASSANDRA-20929
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20929
             Project: Apache Cassandra
          Issue Type: Bug
            Reporter: Yaniv Kaul


From [https://github.com/apache/cassandra/blob/e2d2e3b31ba47dfc9bbdbfdbcace3932fd3d32e7/doc/native_protocol_v5.spec#L137-L140] :

The variant with LZ4 compression uses an 8 byte header. The first 4 bytes contain
  an unsigned integer (little endian) containing the compressed and uncompressed
  lengths of the payload and the self contained flag.

But [https://github.com/apache/cassandra/blob/e2d2e3b31ba47dfc9bbdbfdbcace3932fd3d32e7/doc/native_protocol_v5.spec#L144-L146] says:

  1. Compressed length            (17 bits)
  2. Uncompressed length          (17 bits)
  3. isSelfContained flag         (1 bit)

 

17 + 17 + 1 is already 35 bytes - which is more than 'first 4 bytes' 

 



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

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org