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

ColumnFamilyInputFormat demands OrderPreservingPartitioner when specifying InputRange with tokens

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment