sodonnel commented on pull request #3630:
URL: https://github.com/apache/hadoop/pull/3630#issuecomment-974089664
This change has introduced a findbugs warning on trunk, which was in the
build above:
```
<a name="Warnings_MT_CORRECTNESS">Multithreaded correctness Warnings</a>
code | Warning
-- | --
IS | Inconsistent synchronization of
org.apache.hadoop.metrics2.lib.MutableRollingAverages.recordValidityMs; locked
66% of time
```
I wonder if the snapshot method needs synchronised to avoid this? We cannot
make `recordValidityMs` final is it can be changed by the tests, but we need to
fix it somehow to clear the spotbugs warning which is now present in all PRs
since this one.
--
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]