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

Fabio Pistolesi
17.23.2015 978893efeda15136b1e762a5c568b33e12b2860c
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 ●●●● patch | view | raw | blame | history
opendj-sdk/opendj-server-legacy/src/main/java/org/opends/server/extensions/DiskSpaceMonitor.java
@@ -494,6 +494,5 @@
        }
      }
    }
    DirectoryServer.deregisterMonitorProvider(this);
  }
}