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

keepAliveTime is hard coded as 60 sec in TThreadPoolServer

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.3
    • Component/s: Java - Library
    • Labels:
      None
    • Patch Info:
      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

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              pankaj2461 Pankaj Kumar
              Reporter:
              pankaj2461 Pankaj Kumar

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment