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

Duplicated Key in IN clause with a small fetch size will run forever

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.1.16
    • Legacy/CQL
    • cassandra 2.1.14, driver 2.1.7.1

    • Normal

    Description

      This can be easily reproduced and fetch size is smaller than the correct number of rows.

      A table has 2 partition key, 1 clustering key, 1 column.

      > Select select = QueryBuilder.select().from("ks", "cf");
      > select.where().and(QueryBuilder.eq("a", 1));
      > select.where().and(QueryBuilder.in("b", Arrays.asList(1, 1, 1)));
      > select.setFetchSize(5);

      Now we put a distinct method in client side to eliminate the duplicated key, but it's better to fix inside Cassandra.

      Attachments

        1. CASSANDRA-12420.patch
          6 kB
          Zhao Yang

        Issue Links

          Activity

            People

              thobbs Tom Hobbs
              jasonstack Zhao Yang
              Tom Hobbs
              Benjamin Lerer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: