[jboss-jira] [JBoss JIRA] (WFLY-11547) [GSS](7.2.z) Inconsistency in JCA Subsystem xsd, boundedqueque is used for worker threads

Teresa Miyar (Jira) issues at jboss.org
Thu Dec 27 05:23:00 EST 2018


     [ https://issues.jboss.org/browse/WFLY-11547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Teresa Miyar moved JBEAP-16084 to WFLY-11547:
---------------------------------------------

        Project: WildFly  (was: JBoss Enterprise Application Platform)
            Key: WFLY-11547  (was: JBEAP-16084)
       Workflow: GIT Pull Request workflow   (was: CDW with loose statuses v1)
    Component/s: JCA
                     (was: JCA)


> [GSS](7.2.z) Inconsistency in JCA Subsystem xsd, boundedqueque is used for worker threads
> -----------------------------------------------------------------------------------------
>
>                 Key: WFLY-11547
>                 URL: https://issues.jboss.org/browse/WFLY-11547
>             Project: WildFly
>          Issue Type: Bug
>          Components: JCA
>            Reporter: Teresa Miyar
>            Assignee: Teresa Miyar
>            Priority: Major
>
> The issue is that the xsd says it is using a blocking queue but it is using an incomplete bounded one since there are properties that cannot be set.
> jboss-cli returns:
> {code:java}
> /subsystem=jca/workmanager=default/long-running-threads=default:read-resource-description
> {
>     "outcome" => "success",
>     "result" => {
>         "description" => "A thread pool executor with a bounded queue where threads submittings tasks will not block. Such a thread pool has a core and maximum size and a specified queue length.  When a task is submitted, if the number of running threads is less than the core size, a new thread is created.  Otherwise, if there is room in the queue, the task is enqueued. Otherwise, if the number of running threads is less than the maximum size, a new thread is created. Otherwise, the task is handed off to the designated handoff executor, if one is specified.  Otherwise, the task is discarded.",
> ......
>             "handoff-executor" => {
>                 "type" => STRING,
>                 "description" => "An executor to delegate tasks to in the event that a task cannot be accepted. If not specified, tasks that cannot be accepted will be silently discarded.",
>                 "expressions-allowed" => false,
>                 "nillable" => true,
>                 "min-length" => 1L,
>                 "max-length" => 2147483647L,
>                 "access-type" => "read-write",
>                 "storage" => "configuration",
>                 "restart-required" => "all-services"
>             },
> ....
> {code}
> But the xsd does not allow to set a hand-off executor for the short/long running threads 
> The xsd:
> <xs:annotation>
>             <xs:documentation>
>             <![CDATA[
>                 See threads:blocking-bounded-queue-thread-pool.
>             ]]>
>             </xs:documentation>
>         </xs:annotation>



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list