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

JsonRpcEndpoint Reaper Thread's daemon property is not set

XMLWordPrintable

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

    • 6472
    • Highest

      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.

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

              Created:
              Updated:
              Resolved: