Skip to end of metadata
Go to start of metadata

Children:

Description

This proposal aims on adding the capability to do a cleanup/delete of a coverageStore/GridCoverageReader.
Some readers/stores like the imageMosaic one, deal with a set of ancillary files and create a set of new files as well when configured.
Right now there is no way to fully purge a store/reader. The user have to manually delete all the granules, the auxiliary files as well as to remove the records from the database/feature store if any (as in the imageMosaic case).
A delete method will allow to do all these cleanup through a simple method invokation. The Reader, which is the only one which has full knowledge of the data structure, will do that cleanup operation by also potentially delegating some jobs to the underlying readers
As an instance, an ImageMosaic made of NetCDFs, will delegate some cleanup to the underlying NetCDF readers (which implements the StructuredGridCoverage2DReader too) to delete hidden files and purge quick access DBs.

Implementation changes

The updated StructuredGridCoverage2Dreader will define a new delete method to cleanup everything associated to the reader. Moreover, the removeCoverage method will be updated by adding a delete parameter to specify whether the coverage Removal should also take care of deleting the referred files. Finally, a new FileSetManager interface will be defined in order to take note of sidecar/auxiliary files, remove or purge them. Specific FileSystem related implementation will also phisically remove or purge files from disk.

Status

Voting has started:

Tasks

This section is used to make sure your proposal is complete (did you remember documentation?) and has enough paid or volunteer time lined up to be a success

 

no progress

(tick)

done

(error)

impeded

(warning)

lack mandate/funds/time

(question)

volunteer needed

  1. API changed based on BEFORE / AFTER (tick)
  2. Remove deprecated code from GeoTools project (tick)
  3. Implement it on imageMosaic and test it against H2 (tick)
  4. Update the user guide

API Changes

StructuredGridCoverage2DReader

BEFORE:

AFTER:

FileSetManager

AFTER:

Usage Examples

Documentation Changes

list the pages effected by this proposal

  • No labels