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

cqlsh fails to insert row with huge blob

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Invalid
    • None
    • Legacy/Tools
    • None
    • Linux x64, cassandra 2.0.5 python 2.7

    • Normal

    Description

      cqlsh throws:
      Traceback (most recent call last):
      File "/usr/bin/cqlsh", line 903, in perform_statement_untraced
      self.cursor.execute(statement, decoder=decoder)
      File "/usr/share/cassandra/lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cursor.py", line 80, in execute
      response = self.get_response(prepared_q, cl)
      File "/usr/share/cassandra/lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/thrifteries.py", line 77, in get_response
      return self.handle_cql_execution_errors(doquery, compressed_q, compress, cl)
      File "/usr/share/cassandra/lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/thrifteries.py", line 96, in handle_cql_execution_errors
      return executor(*args, **kwargs)
      File "/usr/share/cassandra/lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cassandra/Cassandra.py", line 1830, in execute_cql3_query
      self.send_execute_cql3_query(query, compression, consistency)
      File "/usr/share/cassandra/lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cassandra/Cassandra.py", line 1841, in send_execute_cql3_query
      self._oprot.trans.flush()
      File "/usr/share/cassandra/lib/thrift-python-internal-only-0.9.1.zip/thrift/transport/TTransport.py", line 292, in flush
      self.__trans.write(buf)
      File "/usr/share/cassandra/lib/thrift-python-internal-only-0.9.1.zip/thrift/transport/TSocket.py", line 128, in write
      plus = self.handle.send(buff)
      error: [Errno 104] Connection reset by peer
      while inserting row with blob of size ca 30M. cqlsh then disconnects and prevents from sending any other query until not restarted.
      I haven't tested what is minimal blob size, that brakes connection. The same cql can be easily executed with java driver:
      session.execute(cql)
      of version 2.0.0-rc2

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            olek.staisak Aleksander Stasiak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment