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

HSHA doesn't handle large messages gracefully

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.0.0
    • None
    • None
    • Normal

    Description

      HSHA doesn't seem to enforce any kind of max message length, and when messages are too large, it doesn't fail gracefully.

      With debug logs enabled, you'll see this:

      DEBUG 13:13:31,805 Unexpected state 16

      Which seems to mean that there's a SelectionKey that's valid, but isn't ready for reading, writing, or accepting.

      Client-side, you'll get this thrift error (while trying to read a frame as part of recv_batch_mutate):

      TTransportException: TSocket read 0 bytes

      Attachments

        1. repro.py
          0.7 kB
          Tom Hobbs
        2. CASSANDRA-4573.patch
          2 kB
          Pavel Yaskevich
        3. disruptor-thrift-server-0.2.2-SNAPSHOT.jar
          121 kB
          Pavel Yaskevich

        Activity

          People

            xedin Pavel Yaskevich
            thobbs Tom Hobbs
            Pavel Yaskevich
            Tom Hobbs
            Tom Hobbs Tom Hobbs
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: