mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Fabio Pistolesi
17.23.2015 978893efeda15136b1e762a5c568b33e12b2860c
refs
author Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Friday, April 17, 2015 15:23 +0200
committer Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Friday, April 17, 2015 15:23 +0200
commit978893efeda15136b1e762a5c568b33e12b2860c
tree 10525317dfac8899d375ec845e8d0214b654a37e tree | zip | gz
parent 2dcf82a9990b4007cd766013ea6381b339b09b93 view | diff
Gaetan and myself noticed that sometimes stopping the server takes a long time; looking at java stack gives only vague indications about the shutdown process.
The new disk space monitor register itself as a listener for shutdown, and right after deregistering all disk monitors deregister itself.
This is done before the MonitorProvider service itself has been shutdown, so there may be a lingering thread still scheduling the run() method.
Do not deregister itself so that the shutdown process can cleanly stop everything.
1 files modified
1 ■■■■ changed files
opendj-sdk/opendj-server-legacy/src/main/java/org/opends/server/extensions/DiskSpaceMonitor.java 1 ●●●● diff | view | raw | blame | history