Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-18745

HBase PerformanceEvaliation tools 's scan test just get the first value and return

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2.6, 1.1.12
    • Fix Version/s: None
    • Component/s: Scanners, test
    • Labels:
      None
    • Environment:

      centos 6.8;
      java 1.8.0_102;

      Description

      we use HBase PerformanceEvaluation tools to test HBase,when using scan interface to test ,we found that scanTest said that it read all row ,but after read the source code ,we foud it just read the the first row and return .and after making a comparison with randomSeekScanTest,it read all row ,so we think it is a bug .

      void testRow(final int i) throws IOException {
      if (this.testScanner == null) {
      Scan scan = new Scan(format(opts.startRow));
      scan.setCaching(opts.caching);
      if (opts.addColumns)

      { scan.addColumn(FAMILY_NAME, QUALIFIER_NAME); }

      else

      { scan.addFamily(FAMILY_NAME); }

      if (opts.filterAll)

      { scan.setFilter(new FilterAllFilter()); }

      this.testScanner = table.getScanner(scan);
      }
      Result r = testScanner.next();
      updateValueSize(r);
      }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              maxwellguo maxwellguo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: