[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 |
||
| 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 |