Uploaded image for project: 'ovsdb'
  1. ovsdb
  2. OVSDB-363

JsonRpcEndpoint Reaper Thread's daemon property is not set

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • unspecified
    • None
    • Library
    • None
    • Operating System: All
      Platform: All

    • 6472
    • Highest

    Description

      The reaper threads' daemon property is not set. This prevents them from exiting when JVM halts.

       private static final ThreadFactory FUTURE_REAPER_THREAD_FACTORY = new ThreadFactoryBuilder()
                  .setNameFormat("OVSDB-Lib-Future-Reaper-%d").build();
          private static final ScheduledExecutorService FUTURE_REAPER_SERVICE
                  = Executors.newScheduledThreadPool(REAPER_THREADS, FUTURE_REAPER_THREAD_FACTORY);
      

      The daemon property needs to be set. Any application that uses this library will not be able to terminate in the case of an exception scenario.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Avishnoi Anil Vishnoi
            ashwinp.work@gmail.com Ashwin P
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: