Open alaniwi opened 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.
Unpublishing the latest version of a dataset which has two versions published, using:
where
flag
is one of:--skip-thredds
--skip-index
--database-only
The first step correctly unpublished only the latest version from Solr.
The next step deleted the catalogs for both versions.
The final step deleted both versions from postgres (both were removed from table
dataset_version
and the entry common to both in tabledataset
was also removed).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.