Uploaded image for project: 'Identity Gateway'
  1. Identity Gateway
  2. OPENIG-4520

RejectedExecutionException occurs sometimes in IG logs when stopping IG while deployed route with OA2RSF with cache and AmService configured

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.0.0
    • Fix Version/s: 7.0.0, 7.0.0-micsvc-1.0.3
    • Component/s: OAuth 2.0
    • Labels:
    • Environment:
      Java OpenJDK 11.0.7
      IG 7.0.0-SNAPSHOT (b8a0216095a)
      AM 7.0.0-SNAPSHOT (4921019d7b3)

      Description

      If there is a route with OAuth2ResourceServerFilter with enabled cache and linked AmService (for notifications), when you stop IG, exception may occur in route-system.log:

      2020-04-29T07:40:09,766Z | ERROR | main | c.g.b.c.c.BoundedLocalCache | @system | Exception thrown when submitting removal listener
      java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@3bf507ae[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@15193a44[Wrapped task = com.github.benmanes.caffeine.cache.BoundedLocalCache$$Lambda$629/0x0000000840633440@2a3ac2fe]] rejected from java.util.concurrent.ScheduledThreadPoolExecutor@3e5d46fd[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 19]
      

      You can use:

      ./run-pybot.py --randomize all --seed 29 -s Filters.OAuth2ResourceServerFilter.Cache.Enable.WithAMNotifications ig

      from the PR https://stash.forgerock.org/projects/QA/repos/pyforge/pull-requests/16951/overview to reproduce locally.

      You can notice, that in suite teardown I remove logback and restart IG. If I comment that (logback removal and restart) or just delete the route before this part, error doesn't occur.

       

        Attachments

          Activity

            People

            • Assignee:
              markdr Mark de Reeper
              Reporter:
              jan.hajovsky Jan Hajovsky
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: