maxwellguo created HBASE-18745:
----------------------------------

             Summary: HBase PerformanceEvaliation tools 's scan test just get 
the first value and return 
                 Key: HBASE-18745
                 URL: https://issues.apache.org/jira/browse/HBASE-18745
             Project: HBase
          Issue Type: Bug
          Components: scan, test
    Affects Versions: 1.1.12, 1.2.6
         Environment: centos 6.8;
java 1.8.0_102;

            Reporter: maxwellguo
            Priority: Minor
             Fix For: 2.0.0


h5.      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);
    }



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to