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

ColumnFamilyInputFormat demands OrderPreservingPartitioner when specifying InputRange with tokens

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.2.6
    • None
    • Normal

    Description

      When ColumnFamilyInputFormat starts getting splits (via getSplits(...) [ColumnFamilyInputFormat.java:101]) it checks to see if a `jobKeyRange` has been set. If it has been set it attempts to set the `jobRange`. However the if block (ColumnFamilyInputFormat.java:124) looks to see if the `jobKeyRange` has tokens but asserts that the OrderPreservingPartitioner must be in use.

      This if block should be looking for keys (not tokens). Code further down (ColumnFamilyInputFormat.java:147) already manages the range if tokens are used but can never be reached.

      Attachments

        1. 5536-v2.txt
          2 kB
          Jonathan Ellis
        2. cassandra-1.2.3-5536.txt
          2 kB
          Lanny Ripple

        Activity

          People

            jbellis Jonathan Ellis
            lannyripple Lanny Ripple
            Jonathan Ellis
            Alex Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: