Deletion of least recently accessed study from Retrieve Cache after Instance Records Purged - dcm4che/dcm4chee-arc-light GitHub Wiki

Description

The test is to verify that object(s) of least recently accessed studies are deleted from Retrieve Cache if the deleter threshold is reached on the retrieve cache storage system, also after the instance records have been purged from database.

Configuration

In addition to basic configuration, configure the following :

Note : Configure the Purge Storage Polling Interval significantly higher than the Series Metadata Polling Interval and the Purge Instance Records Polling Interval in order to do the test and corresponding verifications.

Steps

  • Perform test steps as mentioned.

  • Once the verifications are done in the series-metadata zip files and private attributes having references to retrieve-cache storage system and also the private attributes related to series metadata and purge state have been verified, wait for the Purge Storage Polling Interval to be reached to verify the deletion of least recently accessed studies on retrieve-cache storage system. Below is an example of how it is seen in Wildfly server log

  • Once the polling interval has been reached and the space on retrieve-cache storage system is below the configured threshold limit, the object(s) of studies which are least recently accessed are start getting deleted. Below is an example of how it is seen in Wildfly server log

          7:38:54,285 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedScheduledExecutorService-default-Thread-10) 
          Usable Space on Storage[id=retrieve-cache, uri=file:/home//work/wildfly-11.0.0.Final/standalone/data/retrieve-cache/] below 2GB 
          - start deleting 195.994624MB
          17:38:54,331 INFO  [org.dcm4chee.arc.store.impl.StoreServiceImpl] (EE-ManagedScheduledExecutorService-default-Thread-10) 
          Restore Instance records of Series[pk=1019]
          17:38:54,336 INFO  [org.dcm4chee.arc.store.impl.StoreServiceImpl] (EE-ManagedScheduledExecutorService-default-Thread-10) 
          DCM4CHEE: Create Instance[pk=5799, uid=1.3.12.2.1107.5.8.1.12345678.199508041416590861483, class=1.2.840.10008.5.1.4.1.1.2, no=1]
          17:38:54,338 INFO  [org.dcm4chee.arc.store.impl.StoreServiceImpl] (EE-ManagedScheduledExecutorService-default-Thread-10) 
          DCM4CHEE: Create Location[pk=9828, systemID=fs1, path=2018/05/30/5E9204E8/5E9C00D5/5E9C75E8, tsuid=1.2.840.10008.1.2, size=529440, 
          status=OK, objectType=DICOM_FILE]
          17:38:54,338 INFO  [org.dcm4chee.arc.store.impl.StoreServiceImpl] (EE-ManagedScheduledExecutorService-default-Thread-10) 
          DCM4CHEE: Create Location[pk=9829, systemID=retrieve-cache, path=2018/05/30/5E9204E8/5E9C00D5/5E9C75E8, tsuid=1.2.840.10008.1.2, 
          size=529440, status=OK, objectType=DICOM_FILE]
          17:38:54,342 INFO  [org.dcm4chee.arc.store.impl.StoreServiceImpl] (EE-ManagedScheduledExecutorService-default-Thread-10) 
          DCM4CHEE: Create Instance[pk=5800, uid=1.3.12.2.1107.5.8.1.12345678.199508041417040742898, class=1.2.840.10008.5.1.4.1.1.2, no=2]
          17:38:54,343 INFO  [org.dcm4chee.arc.store.impl.StoreServiceImpl] (EE-ManagedScheduledExecutorService-default-Thread-10) 
          DCM4CHEE: Create Location[pk=9830, systemID=fs1, path=2018/05/30/5E9204E8/5E9C00D5/6459578D, tsuid=1.2.840.10008.1.2, size=529440, 
          status=OK, objectType=DICOM_FILE]
          17:38:54,343 INFO  [org.dcm4chee.arc.store.impl.StoreServiceImpl] (EE-ManagedScheduledExecutorService-default-Thread-10) 
          DCM4CHEE: Create Location[pk=9831, systemID=retrieve-cache, path=2018/05/30/5E9204E8/5E9C00D5/6459578D, tsuid=1.2.840.10008.1.2, 
          size=529440, status=OK, objectType=DICOM_FILE]
          17:38:54,400 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedScheduledExecutorService-default-Thread-10) 
          Successfully delete objects of Study[pk=755, uid=1.3.12.2.1107.5.8.1.12345678.199508041416590859569, id=000001] on 
          Storage[id=retrieve-cache, uri=file:/home//work/wildfly-11.0.0.Final/standalone/data/retrieve-cache/]
          
          17:38:57,917 INFO  [org.dcm4chee.arc.metadata.UpdateMetadataScheduler] (EE-ManagedScheduledExecutorService-default-Thread-4) 
          Creating/Updating Metadata for Series[pk=1019] on Storage[id=series-metadata, uri=file:/home//work/wildfly-11.0.0.Final/standalone/data/series-metadata/]
          17:38:57,956 INFO  [org.dcm4chee.arc.metadata.UpdateMetadataScheduler] (EE-ManagedScheduledExecutorService-default-Thread-4) 
          Created/Updated Metadata for Series[pk=1019] on Storage[id=series-metadata, uri=file:/home//work/wildfly-11.0.0.Final/standalone/data/series-metadata/]
    
  • Note that the least recently accessed studies are deleted only if they are also available on fs1 storage system.

  • Repeat the test by ensuring that complete study is present on fs1, but only some of the object(s) of study are available on retrieve-cache. Once polling interval is reached, object(s) of study get deleted from retrieve-cache as can be seen in below Wildfly server log.

          17:46:25,408 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedScheduledExecutorService-default-Thread-1) 
          Usable Space on Storage[id=retrieve-cache, uri=file:/home//work/wildfly-11.0.0.Final/standalone/data/retrieve-cache/] below 2GB - 
          start deleting 198.259712MB
          17:46:25,443 INFO  [org.dcm4chee.arc.store.impl.StoreServiceImpl] (EE-ManagedScheduledExecutorService-default-Thread-1) Restore 
          Instance records of Series[pk=1020]
          17:46:25,448 INFO  [org.dcm4chee.arc.store.impl.StoreServiceImpl] (EE-ManagedScheduledExecutorService-default-Thread-1) DCM4CHEE: 
          Create Instance[pk=5803, uid=1.3.12.2.1107.5.8.1.12345678.199508041416590861483, class=1.2.840.10008.5.1.4.1.1.2, no=1]
          17:46:25,448 INFO  [org.dcm4chee.arc.store.impl.StoreServiceImpl] (EE-ManagedScheduledExecutorService-default-Thread-1) DCM4CHEE: 
          Create Location[pk=9835, systemID=fs1, path=2018/05/30/5E9204E8/5E9C00D5/5E9C75E8, tsuid=1.2.840.10008.1.2, size=529440, status=OK, 
          objectType=DICOM_FILE]
          17:46:25,449 INFO  [org.dcm4chee.arc.store.impl.StoreServiceImpl] (EE-ManagedScheduledExecutorService-default-Thread-1) DCM4CHEE: 
          Create Location[pk=9836, systemID=retrieve-cache, path=2018/05/30/5E9204E8/5E9C00D5/5E9C75E8, tsuid=1.2.840.10008.1.2, size=529440, 
          status=OK, objectType=DICOM_FILE]
          17:46:25,451 INFO  [org.dcm4chee.arc.store.impl.StoreServiceImpl] (EE-ManagedScheduledExecutorService-default-Thread-1) DCM4CHEE: 
          Create Instance[pk=5804, uid=1.3.12.2.1107.5.8.1.12345678.199508041417040742898, class=1.2.840.10008.5.1.4.1.1.2, no=2]
          17:46:25,506 INFO  [org.dcm4chee.arc.store.impl.StoreServiceImpl] (EE-ManagedScheduledExecutorService-default-Thread-1) DCM4CHEE: 
          Create Location[pk=9837, systemID=fs1, path=2018/05/30/5E9204E8/5E9C00D5/6459578D, tsuid=1.2.840.10008.1.2, size=529440, status=OK, 
          objectType=DICOM_FILE]
          17:46:25,540 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedScheduledExecutorService-default-Thread-1) 
          Successfully delete objects of Study[pk=756, uid=1.3.12.2.1107.5.8.1.12345678.199508041416590859569, id=000001] on 
          Storage[id=retrieve-cache, uri=file:/home//work/wildfly-11.0.0.Final/standalone/data/retrieve-cache/]
    
⚠️ **GitHub.com Fallback** ⚠️