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

"default" as default name for long-running-threads and short-running-threads leads to thread groups with the same name default-threads

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Obsolete
    • Icon: Minor Minor
    • None
    • 7.0.0.GA
    • JCA
    • None

      /subsystem=jca/workmanager=default/short-running-threads=default
      /subsystem=jca/workmanager=default/long-running-threads=default

      Thread group with name default-threads is created for both of these addresses. It's because thread group name is created from last element of resource's address + string -threads.

      ThreadPoolManagementUtils.java#L166

      params.name = pathAddress.getLastElement().getValue();
      

      ThreadFactoryResolver.java#L149

      protected String getThreadGroupName(String threadPoolName) {
        return threadPoolName + "-threads";
      }
      

      Thread groups for different resources shouldn't have the same name. Also such a general name default-threads could be confusing when debugging.

            chaowan@redhat.com Chao Wang
            msimka@redhat.com Martin Simka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: