Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-13527

Protocol [short] is used as unsigned and signed value

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Legacy/CQL
    • Severity:
      Normal

      Description

      The protocol specification describes [short] as unsigned int16, but then on the section 2.3. stream it describes it like a signed int16, being 0x7fff the maximum positive value.

      Additionally, [int] and [long] are signed, making the identifier [short] somewhat confusing.

      For disambiguation, it would be nice to introduce [ushort] or [unsigned short] (replacing most entries) and leave [short] as signed value, mainly for stream ids.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jorgebg Jorge Bay
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: