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

ConnectionManager ignores exceptional return value of ExecutorService.submit

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • None
    • Docs Required, Release Notes Required

    Description

      Issue detected by SpotBugs. Specifically the warning reported is:

      M B RV_RETURN_VALUE_IGNORED_BAD_PRACTICE RV: Exceptional return value of java.util.concurrent.ExecutorService.submit(Callable) ignored in org.apache.ignite.internal.network.netty.ConnectionManager.handleNodeLeft(String)  At ConnectionManager.java:[line 603]
      

      If you don't check the result, you won't notice if the method invocation signals unexpected behavior by returning an atypical return value.

      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:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: