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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.2.6, 1.1.12
    • None
    • Scanners, test
    • None
    • 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

            Unassigned Unassigned
            maxwellguo Maxwell Guo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: