HBASE-27003 Optimize log format for PerformanceEvaluation (#4411)

Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
litao 2022-05-11 13:31:44 +08:00 committed by GitHub
parent f6e9d3e1dd
commit c269dc5711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1245,8 +1245,9 @@ public class PerformanceEvaluation extends Configured implements Tool {
} }
String generateStatus(final int sr, final int i, final int lr) { String generateStatus(final int sr, final int i, final int lr) {
return sr + "/" + i + "/" + lr + ", latency " + getShortLatencyReport() return "row [start=" + sr + ", current=" + i + ", last=" + lr + "], latency ["
+ (!isRandomValueSize() ? "" : ", value size " + getShortValueSizeReport()); + getShortLatencyReport() + "]"
+ (!isRandomValueSize() ? "" : ", value size [" + getShortValueSizeReport() + "]");
} }
boolean isRandomValueSize() { boolean isRandomValueSize() {