Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Slider 0.92
    • appmaster, client
    • None

    Description

      Coverity scan identified the following defect which was added as part of SLIDER-1214's commit -

      *** CID 142179:  Concurrent data access violations  (GUARDED_BY_VIOLATION)
      /slider-core/src/main/java/org/apache/slider/server/appmaster/state/AppState.java: 2621 in org.apache.slider.server.appmaster.state.AppState.storeContainerDiagnostics(java.lang.String, int, java.lang.String, int, java.lang.String, long)()
      2615           containerInfo.exitCode = exitCode;
      2616           if (StringUtils.isNotBlank(diagnostics)) {
      2617             containerInfo.diagnostics = diagnostics;
      2618           }
      2619           containerInfo.state = state;
      2620           if (logLink != null) {
           CID 142179:  Concurrent data access violations  (GUARDED_BY_VIOLATION)
           Accessing "containerInfo.logServerLogLink" without holding lock "AppState.this". Elsewhere, "org.apache.slider.api.types.ContainerInformation.logServerLogLink" is accessed with "AppState.this" held 2 out of 3 times.
      2621             containerInfo.logServerLogLink = logLink;
      2622           }
      2623           containerInfo.completionTime = completionTime;
      2624         }
      2625       }
      2626    
      

      Attachments

        Issue Links

          Activity

            People

              gsaha Gour Saha
              gsaha Gour Saha
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Slack

                  Issue deployment