Graceful Shutdown When Purge is Running

Purge is a time consuming task so if shutdown is requested, purge must be abandoned to allow shutdown.

Even if one sever within a cluster is being shutdown, any purge batches being processed by the server are abandoned instead of transferring them to other servers.

  • When repository is being processed for purging of records, check is done to see if shutdown is initiated. This check is done each time a record is selected for processing. If shutdown is detected, remaining records are ignored.
  • When multiple repositories are purged, a check is done before each repository is processed. If shutdown is in process, repositories are ignored.
  • When repository metadata are purged, a check is done before each repository metadata is processed. If shutdown is in process, repository metadata are ignored.
  • When history is deleted, a check is done for shutdown as each event is selected. If shutdown is detected, all remaining events are ignored.