Define a constant instead of duplicating this literal "total" 8 times.
Code Path:confignode/src/main/java/org/apache/iotdb/confignode/manager/load/LoadManagerMetrics.java
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Hi, this is your first issue in IoTDB project. Thanks for your report. Welcome to join the community!
Has this issue been fixed? 'total' seems to be defined as METRIC_STATUS_ONELINE
Has this issue been fixed? 'total' seems to be defined as METRIC_STATUS_ONELINE
i have seen too,it seems that is : METRIC_TAG_TOTAL
So this issue can be closed?
The current requirement seems fine, I additionally changed the other strings to constants #7835 .