ESGF / esg-publisher

ESGF Publisher
http://esg-publisher.readthedocs.org/
9 stars 22 forks source link

unpublish single version from THREDDS or postgres unpublishes all versions (but Solr step OK) #108

Open alaniwi opened 6 years ago

alaniwi commented 6 years ago

Unpublishing the latest version of a dataset which has two versions published, using:

esgunpublish --project cmip5 --delete <flag> 'cmip5.output2.MOHC.HadGEM2-ES.rcp85.yr.ocnBgchem.Oyr.r1i1p1#20111218'

where flag is one of:

Fortunately in this instance, the intention was to unpublish both versions (so it then only remained to unpublish the earlier version from Solr), but I report it as a publisher problem.

Tried again using another dataset, similarly containing two versions both of which needed unpublishing but I tried to unpublish one at a time. The same thing happened.

alaniwi commented 6 years ago

For completeness, although I guess not relevant, I mention that esgunpublish here is aliased to esgunpublish -i <ini_dir>. This is not running on the data node, but it has access to everything that it needs to talk to.