Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1136

Streaming state transfer sender pool threads must be named differently

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.9
    • 2.8
    • None
    • Low

      The streaming state transfer sender pool should name each of the thread differently! Otherwise, it becomes a nightmare to track individual threads as shown in ISPN-335:

      private ThreadPoolExecutor setupThreadPool() {
      ThreadPoolExecutor threadPool = new ThreadPoolExecutor(0, max_pool, pool_thread_keep_alive,
      TimeUnit.MILLISECONDS, new SynchronousQueue<Runnable>());

      ThreadFactory factory = new ThreadFactory() {
      public Thread newThread(final Runnable command)

      { return getThreadFactory().newThread(command, "STREAMING_STATE_TRANSFER sender"); }

      };
      threadPool.setRejectedExecutionHandler(new ShutdownRejectedExecutionHandler(threadPool
      .getRejectedExecutionHandler()));
      threadPool.setThreadFactory(factory);
      return threadPool;
      }

      A counter or similar needs to be added so that each sender thread is named differently.

              rh-ee-galder Galder ZamarreƱo
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: