Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HBASE-29040 Fix description of "sampleRate" of PerformanceEvaluation #6558

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ private static long nextRandomSeed() {
this.opts = options;
this.status = status;
this.testName = this.getClass().getSimpleName();
everyN = (int) (opts.totalRows / (opts.totalRows * opts.sampleRate));
everyN = (int) (1 / opts.sampleRate);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unrelated to the problem described, but I thought why not.

if (options.isValueZipf()) {
this.zipf = new RandomDistribution.Zipf(this.rand, 1, options.getValueSize(), 1.2);
}
Expand Down Expand Up @@ -2707,8 +2707,7 @@ protected static void printUsage(final String shortName, final String message) {
+ "Default: depend on oneCon parameter. if oneCon set to true, then connCount=1, "
+ "if not, connCount=thread number");

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