[jboss-jira] [JBoss JIRA] (JGRP-1965) Change default thread pool rejection policy to "abort"

Paul Ferraro (JIRA) issues at jboss.org
Wed Sep 16 11:20:00 EDT 2015


Paul Ferraro created JGRP-1965:
----------------------------------

             Summary: Change default thread pool rejection policy to "abort"
                 Key: JGRP-1965
                 URL: https://issues.jboss.org/browse/JGRP-1965
             Project: JGroups
          Issue Type: Bug
    Affects Versions: 3.6.6
            Reporter: Paul Ferraro
            Assignee: Bela Ban


Currently, JGroups transport thread pools use discard as a rejection policy.  Thus if there are no available threads, and the queue is full, the executor will silently drop the task.
Abort will throw a RejectedExecutionException, in which case, which JGroups catches to populate the num_rejected_msgs statistic.  This is a better default, so that users can monitor this value to determine whether or not to modify their thread pool configuration.  Otherwise, num_rejected_msgs is 0, which might be a source of confusion.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list