Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-21690

ConfigurationNode has inconsistent synchronized access to fields `invalid` and `val`

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • Docs Required, Release Notes Required

    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.configuration.ConfigurationNode.invalid; locked 66% of time  Unsynchronized access at ConfigurationNode.java:[line 138]
      M M IS2_INCONSISTENT_SYNC IS: Inconsistent synchronization of org.apache.ignite.internal.configuration.ConfigurationNode.val; locked 60% of time  Unsynchronized access at ConfigurationNode.java:[line 145]

      Fields `val` and `invalid` 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

          Activity

            People

              Unassigned Unassigned
              vblinov Viacheslav Blinov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: