Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.6.5
-
None
-
Reviewed
Description
Currently if the MutableStat.add(long numSamples, long sum) method is used with a large sample count, the mean that is returned will be very inaccurate. This is a result of using the Welford method for variance calculation, which assumes that each sample is processed on its own, to calculate the mean as well. For variance this is fine, since variance numbers lose meaning if you add many samples at once, but the mean should still be accurate.
Attachments
Attachments
Issue Links
- blocks
-
HADOOP-13782 Make MutableRates metrics thread-local write, aggregate-on-read
- Resolved