empiredan commented on code in PR #2167:
URL:
https://github.com/apache/incubator-pegasus/pull/2167#discussion_r1883188448
##########
src/shell/commands/duplication.cpp:
##########
@@ -135,12 +135,13 @@ void attach_dups_stat(const list_dups_stat &stat,
dsn::utils::multi_table_printe
printer.add_row_name_and_data("unfinished_app_count",
stat.unfinished_app_count);
// Add stats for duplications.
- printer.add_row_name_and_data("duplication_count", stat.duplication_count);
+ printer.add_row_name_and_data("total_duplication_count",
stat.duplication_count);
for (const auto &[status, cnt] : stat.dup_status_stats) {
- printer.add_row_name_and_data(fmt::format("{}_count", status), cnt);
+
printer.add_row_name_and_data(fmt::format("duplication_count_by_status({})",
status), cnt);
}
for (const auto &[remote_cluster, cnt] : stat.dup_remote_cluster_stats) {
- printer.add_row_name_and_data(fmt::format("{}_count", remote_cluster),
cnt);
+ printer.add_row_name_and_data(
+ fmt::format("duplication_count_by_follower_cluster({})",
remote_cluster), cnt);
Review Comment:
OK, it's key/value pair under a summary tag:
```
[summary]
total_app_count : 8
duplicating_app_count : 3
unfinished_app_count : 0
duplication_count : 3
DS_LOG_count : 3
target_cluster_count : 3
total_partition_count : 64
duplicating_partition_count : 24
unfinished_partition_count : 0
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]