Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.8.0
-
None
Description
To probe a stat in StorageStatistics, users can use the StorageStatistics#isTracked() API. Currently DFSOpsCountStatistics implements this function wrongly. S3AStorageStatistics borrowed the same idea and also has the same error.
- The isTracked() is not correctly implemented. I believe this was an omission in code.
- isTracked() checks a stat with operation symbol (instead of enum name). getLongStatistics() should return LongStatistics iterators with symbol as name, instead of the enum variable name. Or else, isTracked(getLongStatistics().next().getName()); returns false. This will lead to confusion.