Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-1677

Ordered scans may return out-of-order rows when concurrent with compaction

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • tablet
    • None

    Description

      If an ordered scan starts during the 'phase 2' of a compaction (when there is a DuplicatingRowSet in place), then the DuplicatingRowSet ends up creating a UnionIterator of the original rowsets. This union is non-ordered, so it ends up yielding out-of-order rows.

      This is causing alter_table-randomized-test to have verification failures about 0.25% of the time, but should be relatively easy to reproduce by adding concurrent ordered scans to some stress test that causes lots of compaction.

      Attachments

        Activity

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

          People

            tlipcon Todd Lipcon
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment