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

Apache.Cassandra.Cassandra.get_count will disconnect but not throw InvalidRequestException when column family is not exist.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.0.5
    • Legacy/CQL
    • None
    • cassandra server : 1.2.4
      and cassandra1.2.5 has same bug.
      client : C# client

    • Low

    Description

      When I use get_count interface which is defined in Cassandra.thrift, the Cassandra Server(1.2.4) close the connection from Client when column family is not exist in that keyspace but not throw InvalidRequestException.

      It seemed the get_count method in cassandra.thrift.CassandraServer.java did not validate parameters(ThriftValidation.validateColumnFamily) in this method.

      system.log:
      ERROR [RPC-Thread:3373] 2013-06-26 14:23:09,264 TNonblockingServer.java (line 638) Unexpected exception while invoking!
      java.lang.IllegalArgumentException: Unknown table/cf pair (Keyspace1.Standard)
      at org.apache.cassandra.db.Table.getColumnFamilyStore(Table.java:165)
      at org.apache.cassandra.thrift.CassandraServer.get_count(CassandraServer.java:471)
      at org.apache.cassandra.thrift.Cassandra$Processor$get_count.getResult(Cassandra.java:3381)
      at org.apache.cassandra.thrift.Cassandra$Processor$get_count.getResult(Cassandra.java:3369)
      at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
      at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
      at org.apache.thrift.server.TNonblockingServer$FrameBuffer.invoke(TNonblockingServer.java:632)
      at org.apache.cassandra.thrift.CustomTHsHaServer$Invocation.run(CustomTHsHaServer.java:109)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

      Please check this bug, thanks!

      Attachments

        1. 5701_cassandra-2.0.patch
          0.7 kB
          Lyuben Todorov

        Activity

          People

            lyubent Lyuben Todorov
            yuemaoxing yuemaoxing
            Lyuben Todorov
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified