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

Correct byte estimate in BaseResultIterators and expose as interface

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.7.0
    • Fix Version/s: 4.8.0
    • Labels:

      Description

      The bytes are accumulated even if the range intersect is empty (produces a null scan).

                      while (guideIndex < gpsSize && (currentGuidePost.compareTo(endKey) <= 0 || endKey.length == 0)) {
                          Scan newScan = scanRanges.intersectScan(scan, currentKeyBytes, currentGuidePostBytes, keyOffset,
                                  false);
                          estimatedRows += gps.getRowCounts().get(guideIndex);
                          estimatedSize += gps.getByteCounts().get(guideIndex);
                          scans = addNewScan(parallelScans, scans, newScan, currentGuidePostBytes, false, regionLocation);
                          currentKeyBytes = currentGuidePost.copyBytes();
                          currentGuidePost = PrefixByteCodec.decode(decoder, input);
                          currentGuidePostBytes = currentGuidePost.copyBytes();
                          guideIndex++;
                      }
      

        Attachments

        1. PHOENIX-2714.patch
          20 kB
          Maryann Xue
        2. PHOENIX-2714_2.patch
          2 kB
          Maryann Xue
        3. PHOENIX-2714_3.patch
          3 kB
          Maryann Xue

          Activity

            People

            • Assignee:
              maryannxue Maryann Xue
              Reporter:
              maryannxue Maryann Xue
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: