Skip to content

Commit 03a264e

Browse files
committed
Bug 36417338 - [36391188->24.09] TaskExecutor incorrectly increments the tasks in-progress count when re-executing a yielded task (merge main -> ce/main @ 107666)
[git-p4: depot-paths = "//dev/coherence-ce/main/": change = 107667]
1 parent 59ee3cf commit 03a264e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

prj/coherence-concurrent/src/main/java/com/oracle/coherence/concurrent/executor/ClusteredRegistration.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,11 @@ protected static String getExecutorServiceMBeanName(Registry registry, String sN
10501050
@SuppressWarnings("unchecked")
10511051
protected void executingTask(TaskExecutor taskExecutor, String sExecId, String sTaskId)
10521052
{
1053-
m_cTasksInProgressCount++;
1053+
// only increment for fresh tasks
1054+
if (taskExecutor.m_cYield == 0)
1055+
{
1056+
m_cTasksInProgressCount++;
1057+
}
10541058

10551059
// submit the TaskExecutor for execution using the ExecutionService
10561060
try

0 commit comments

Comments
 (0)