[OVSDB-363] JsonRpcEndpoint Reaper Thread's daemon property is not set Created: 18/Aug/16  Updated: 23/Aug/16  Resolved: 23/Aug/16

Status: Resolved
Project: ovsdb
Component/s: Library
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Ashwin P Assignee: Anil Vishnoi
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 6472
Priority: 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.



 Comments   
Comment by Anil Vishnoi [ 19/Aug/16 ]

stable/beryllium : https://git.opendaylight.org/gerrit/44341
stable/boron : https://git.opendaylight.org/gerrit/44342
master : https://git.opendaylight.org/gerrit/44340

Generated at Wed Feb 07 20:36:12 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.