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

Fabio Pistolesi
17.23.2015 6d4aa0fb759905a15819212f55230472f21440e0
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
commit6d4aa0fb759905a15819212f55230472f21440e0
tree 4e868f5594cec184f64bc7cc86af564439b60aa6 tree | zip | gz
parent 5106f9361fb407017df1fd3b5d53365982d8bff9 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-server-legacy/src/main/java/org/opends/server/extensions/DiskSpaceMonitor.java 1 ●●●● diff | view | raw | blame | history