Skip to content

Commit 43d65f4

Browse files
junegunnmokai87
authored andcommitted
HBASE-29040 Fix description of "sampleRate" of PerformanceEvaluation (apache#6558)
Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit 670deaa)
1 parent d198e67 commit 43d65f4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ static abstract class TestBase {
11711171
this.opts = options;
11721172
this.status = status;
11731173
this.testName = this.getClass().getSimpleName();
1174-
everyN = (long) (opts.totalRows / (opts.totalRows * opts.sampleRate));
1174+
everyN = (long) (1 / opts.sampleRate);
11751175
if (options.isValueZipf()) {
11761176
this.zipf =
11771177
new RandomDistribution.Zipf(ThreadLocalRandom.current(), 1, options.getValueSize(), 1.2);
@@ -2675,8 +2675,7 @@ protected static void printUsage(final String shortName, final String message) {
26752675
+ "Default: depend on oneCon parameter. if oneCon set to true, then connCount=1, "
26762676
+ "if not, connCount=thread number");
26772677

2678-
System.err.println(" sampleRate Execute test on a sample of total "
2679-
+ "rows. Only supported by randomRead. Default: 1.0");
2678+
System.err.println(" sampleRate Execute test on a sample of total rows. Default: 1.0");
26802679
System.err.println(" period Report every 'period' rows: "
26812680
+ "Default: opts.perClientRunRows / 10 = " + DEFAULT_OPTS.getPerClientRunRows() / 10);
26822681
System.err.println(" cycles How many times to cycle the test. Defaults: 1.");

0 commit comments

Comments
 (0)