Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11585

Invalid configuration for the sling-event thread pool factory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Starter 13
    • None
    • None

    Description

      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:

       

                  "maxPoolSize:Integer":"1",
                  "minPoolSize:Integer":"5"
      

       

      The illegal config causes a few exceptions with stack traces like this:

      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)
      

       

      Attachments

        Issue Links

          Activity

            People

              enorman Eric Norman
              enorman Eric Norman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m