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

ColumnFamilyInputFormat demands OrderPreservingPartitioner when specifying InputRange with tokens

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 1.2.6
    • Component/s: None
    • Labels:
    • Severity:
      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

          Activity

            People

            • Assignee:
              jbellis Jonathan Ellis Assign to me
              Reporter:
              lannyripple Lanny Ripple
              Authors:
              Jonathan Ellis
              Reviewers:
              Alex Liu

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment