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

This commit is contained in:
Jerry He 2016-05-18 12:09:13 -07:00
parent c1ada0a373
commit 393bcd69f9
1 changed files with 1 additions and 2 deletions

View File

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