[ 
https://issues.apache.org/jira/browse/SLING-11585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Norman resolved SLING-11585.
---------------------------------
    Resolution: Fixed

Merged PR at: 
[{{ac9e4ce}}|https://github.com/apache/sling-org-apache-sling-starter/commit/ac9e4ce5b727d6c2833a3dd49d93ca852d8f62ea]

> 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
>            Priority: Major
>             Fix For: Starter 13
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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