Eric Norman created SLING-11585:
-----------------------------------

             Summary: Invalid configuration for the sling-event thread pool 
factory
                 Key: SLING-11585
                 URL: https://issues.apache.org/jira/browse/SLING-11585
             Project: Sling
          Issue Type: Bug
            Reporter: Eric Norman
            Assignee: Eric Norman
             Fix For: Starter 13


In the starter event.json, the sling-event thread pool factory has an invalid 
configuration that results in an IllegalArgumentException getting thrown at 
runtime.  This causes all the scheduled jobs to not get triggered.

Specifically, the maxPoolSize is smaller than the minPoolSize:

 
{code:java}
            "maxPoolSize:Integer":"1",
            "minPoolSize:Integer":"5"
{code}
 

The illegal config causes a few exceptions with stack traces like this:
{noformat}
java.lang.IllegalArgumentException
    at 
java.base/java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:1293)
    at 
org.apache.sling.commons.threads.impl.DefaultThreadPool.<init>(DefaultThreadPool.java:160)
    at 
org.apache.sling.commons.threads.impl.DefaultThreadPoolManager$Entry.incUsage(DefaultThreadPoolManager.java:371)
    at 
org.apache.sling.commons.threads.impl.DefaultThreadPoolManager.get(DefaultThreadPoolManager.java:143)
    at 
org.apache.sling.commons.scheduler.impl.SchedulerProxy.<init>(SchedulerProxy.java:65)
    at 
org.apache.sling.commons.scheduler.impl.QuartzScheduler.scheduleJob(QuartzScheduler.java:588)
    at 
org.apache.sling.commons.scheduler.impl.QuartzScheduler.schedule(QuartzScheduler.java:526)
    at 
org.apache.sling.commons.scheduler.impl.SchedulerServiceFactory.schedule(SchedulerServiceFactory.java:63)
{noformat}
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to