You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CID 99714: Concurrent data access violations (GUARDED_BY_VIOLATION)
Accessing "runNow" without holding lock "ThreadMonitor.waiter". Elsewhere, "com.redhat.lightblue.migrator.ThreadMonitor.runNow" is accessed with "ThreadMonitor.waiter" held 2 out of 3 times.
216 runNow=true;
217 }
218
219 @Override
220 public void run() {
221 LOGGER.debug("Starting with thread timeout:{}",threadTimeout);
*** CID 99713: Concurrent data access violations (GUARDED_BY_VIOLATION)
/lightblue-migrator/migrator/src/main/java/com/redhat/lightblue/migrator/ThreadMonitor.java: 156 in com.redhat.lightblue.migrator.ThreadMonitor.getStatus(com.redhat.lightblue.migrator.MonitoredThread)()
150 for(MonitoredThread t:dead) {
151 threads.remove(t);
152 }
153 }
154
155 public Status getStatus(MonitoredThread t) {
CID 99713: Concurrent data access violations (GUARDED_BY_VIOLATION)
Accessing "threadMap" without holding lock "ThreadMonitor.this". Elsewhere, "com.redhat.lightblue.migrator.ThreadMonitor.threadMap" is accessed with "ThreadMonitor.this" held 5 out of 7 times.
Reported by coverity (https://scan.coverity.com/projects/lightblue-platform-lightblue?tab=overview)
New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)
*** CID 99714: Concurrent data access violations (GUARDED_BY_VIOLATION)
/lightblue-migrator/migrator/src/main/java/com/redhat/lightblue/migrator/ThreadMonitor.java: 216 in com.redhat.lightblue.migrator.ThreadMonitor.runNow()()
*** CID 99713: Concurrent data access violations (GUARDED_BY_VIOLATION)
/lightblue-migrator/migrator/src/main/java/com/redhat/lightblue/migrator/ThreadMonitor.java: 156 in com.redhat.lightblue.migrator.ThreadMonitor.getStatus(com.redhat.lightblue.migrator.MonitoredThread)()
The text was updated successfully, but these errors were encountered: