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

Cassandra-cli doesn't use framed transport by default

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.7 beta 1
    • None
    • None
    • Low

    Description

      Spawned by CASSANDRA-475 .
      The cli uses non-framed transport, which causes errors on connection that look like:

      cli:

      $ bin/cassandra-cli 
      Welcome to cassandra CLI.
      
      Type 'help' or '?' for help. Type 'quit' or 'exit' to quit.
      [default@unknown] connect 127.0.0.1/9160
      Exception retrieving information about the cassandra node, check you have connected to the thrift port.

      cass:

      ERROR 15:48:12,523 Thrift error occurred during processing of message.
      org.apache.thrift.TException: Message length exceeded: 1684370275
      	at org.apache.thrift.protocol.TBinaryProtocol.checkReadLength(TBinaryProtocol.java:384)
      	at org.apache.thrift.protocol.TBinaryProtocol.readStringBody(TBinaryProtocol.java:350)
      	at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:213)
      	at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2519)
      	at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:167)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:619)

      Changing it to use framed transport fixes this, and it should be using framed transport by default regardless.

      Attachments

        1. TRUNK-1290.txt
          3 kB
          Jon Hermes

        Activity

          People

            jhermes Jon Hermes
            jhermes Jon Hermes
            Jon Hermes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: