HBASE-15841 Performance Evaluation tool total rows may not be set correctly

This commit is contained in:
Jerry He 2016-05-18 12:15:18 -07:00
parent 49359a4ee3
commit a9972355c4
1 changed files with 1 additions and 2 deletions

View File

@ -2074,8 +2074,7 @@ public class PerformanceEvaluation extends Configured implements Tool {
// total size in GB specified // total size in GB specified
opts.totalRows = (int) opts.size * rowsPerGB; opts.totalRows = (int) opts.size * rowsPerGB;
opts.perClientRunRows = opts.totalRows / opts.numClientThreads; opts.perClientRunRows = opts.totalRows / opts.numClientThreads;
} else if (opts.perClientRunRows != DEFAULT_OPTS.perClientRunRows) { } else {
// number of rows specified
opts.totalRows = opts.perClientRunRows * opts.numClientThreads; opts.totalRows = opts.perClientRunRows * opts.numClientThreads;
opts.size = opts.totalRows / rowsPerGB; opts.size = opts.totalRows / rowsPerGB;
} }