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 bba83dc931
commit aa7f98275f
No known key found for this signature in database
GPG Key ID: 08E70F70AB71C5A1
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) {
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() {