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

Can not query secondary index

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.2.11, 2.0.2
    • Feature/2i Index
    • None
    • Windows 8, Jre 1.6.0_45 32-bit

    • Normal

    Description

      Noticed after taking a column family that already existed and assigning to an IntegerType index_type:KEYS and the caching was already set to 'ALL' that the prepared statement do not return rows neither did it throw an exception. Here is the sequence.
      1. Starting state query running with caching off for a Column Family with the query using the secondary index for te WHERE clause.
      2, Set Column Family caching to ALL using Cassandra-CLI and update CQL. Cassandra-cli Describe shows column family caching set to ALL
      3. Rerun query and it works.
      4. Restart Cassandra and run query and no rows returned. Cassandra-cli Describe shows column family caching set to ALL
      5. Set Column Family caching to NONE using Cassandra-cli and update CQL. Rerun query and no rows returned. Cassandra-cli Describe for column family shows caching set to NONE.
      6. Restart Cassandra. Rerun query and it is working again. We are now back to the starting state.

      Best Regards,
      -Tony

      Attachments

        1. 5732-1.2
          4 kB
          Sam Tunnicliffe
        2. 5732-v2.txt
          2 kB
          Jonathan Ellis
        3. 5732-v3.txt
          3 kB
          Jonathan Ellis

        Issue Links

          Activity

            People

              samt Sam Tunnicliffe
              adanecito Tony Anecito
              Sam Tunnicliffe
              Jonathan Ellis
              Votes:
              2 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: