Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-14753

[GSS](7.1.z) Domain mode shutdown of EE executor service with :stop() or :stop(timeout=0) command doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.4.CR1, 7.1.4.GA
    • 7.1.2.GA
    • EE
    • None
    • Hide

      The test case simply schedules an instance of task ReSchedulingTask once
      the web app is activated (via the ServletContextListener hook)
      Each instance of ReSchedulingTask sleeps for 10 seconds and then
      re-schedules another instance of its own class.

      Invoking the following stop command doesn't seem to work
      /host=master/server-config=server-one:stop()
      /host=master/server-config=server-one:stop(timeout=0)

      This works /host=master/server-config=server-one:stop(timeout=1)

      • Simply drop the test app into the default domain config

      Reproducible in EAP 7.1.2, 7.1.1, 7.1.0, & 7.0.9

      Show
      The test case simply schedules an instance of task ReSchedulingTask once the web app is activated (via the ServletContextListener hook) Each instance of ReSchedulingTask sleeps for 10 seconds and then re-schedules another instance of its own class. Invoking the following stop command doesn't seem to work /host=master/server-config=server-one:stop() /host=master/server-config=server-one:stop(timeout=0) This works /host=master/server-config=server-one:stop(timeout=1) Simply drop the test app into the default domain config Reproducible in EAP 7.1.2, 7.1.1, 7.1.0, & 7.0.9

      EAP's EE-Concurrency Managed Executor Service is expected to skip the tasks that are pending in its execution queue upon server shutdown as documented here
      This is necessary to cope with scenario where a polling-type task is re-scheduling a new instance of itself just before exiting (so that there is always one task polling - pattern used e.g. by Spring message listeners

            spyrkob Bartosz Spyrko-Smietanko
            rhn-support-lakagwu Lami Akagwu
            Daniel Cihak Daniel Cihak
            Daniel Cihak Daniel Cihak
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: