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 Viraj Jasani
parent 7b7f57619b
commit 5cfce692a5
No known key found for this signature in database
GPG Key ID: 08E70F70AB71C5A1
1 changed files with 3 additions and 2 deletions

View File

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