Details
Description
Issue detected by SpotBugs but is also highlighted by Idea inspection. Specifically the warning reported is:
M M IS2_INCONSISTENT_SYNC IS: Inconsistent synchronization of org.apache.ignite.internal.metrics.exporters.BasicMetricExporter.configuration; locked 66% of time Unsynchronized access at BasicMetricExporter.java:[line 41]
Field `configuration` are accessed in both synchronized and unsynchronized fashion. This can be a source of hard to catch bug.
Investigate whenever this is a false-positive and we should suppress it, or we should make a proper fix.
At the result of investigation corresponding TODO should be removed in spotbugs-excludes.xml
Attachments
Issue Links
- split from
-
IGNITE-21569 Introduce Spotbugs checks
- Resolved