Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3197

keepAliveTime is hard coded as 60 sec in TThreadPoolServer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.3
    • Java - Library
    • None
    • Patch Available

    Description

      While creating ThreadPoolExecutor in TThreadPoolServer, keepAliveTime is hard coded as 60 sec.

       private static ExecutorService createDefaultExecutorService(Args args) {
          SynchronousQueue<Runnable> executorQueue =
            new SynchronousQueue<Runnable>();
          return new ThreadPoolExecutor(args.minWorkerThreads,
                                        args.maxWorkerThreads,
                                        60,
                                        TimeUnit.SECONDS,
                                        executorQueue);
        }
      
      

      It should be "args.stopTimeoutVal"

      Attachments

        1. THRIFT-3197.patch
          0.8 kB
          Pankaj Kumar
        2. THRIFT-3197-V2.patch
          1 kB
          Pankaj Kumar

        Activity

          People

            pankaj2461 Pankaj Kumar
            pankaj2461 Pankaj Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: