Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-6055

Improve error reporting for index validation when there are "Not matching index rows"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.1.0, 4.16.0
    • None
    • None

    Description

      In the IndexRebuildRegionScanner, in the following line we return the timestamp of the latest expected mutation rather than the expected mutation itself.

       

      byte[] dataKey = indexMaintainer.buildDataRowKey(new ImmutableBytesWritable(indexRow.getRow()), viewConstants);
      String errorMsg = "Not matching index row";
      logToIndexToolOutputTable(dataKey, indexRow.getRow(),
      getTimestamp(expectedMutationList.get(0)), 0L, errorMsg, isBeforeRebuild,
      INVALID_ROW);

       

      Instead of expectedMutationList.get(0), expected should be used.

      Attachments

        1. PHOENIX-6055.master.001.patch
          2 kB
          Gokcen Iskender
        2. PHOENIX-6055.master.002.patch
          2 kB
          Gokcen Iskender
        3. PHOENIX-6055.master.003.patch
          2 kB
          Gokcen Iskender

        Issue Links

          Activity

            People

              Unassigned Unassigned
              giskender Gokcen Iskender
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m