Searching for Content Files without Object Reference

Find content files in the S3 store that are not referenced any longer by an object in the database.

yuuvis® Momentum stores content files separately from their metadata. The content files are indicated by a contentStreamId and can be stored in an S3 store. Each corresponding object with its metadata is stored in a database and contains a reference on the contentStreamId of its content file. If the object is deleted, the metadata are read from the database and deleted. The content file is searched afterwards by the contentStreamId that was read from the database before, and deleted. If an error occurs during this process, the object might be removed from the database but not the corresponding content file. Thus, over time, several content files might remain in the S3 store that are not referenced by an existing object. As of yuuvis® Momentum version 2020 Winter, it is possible to find those content files in the S3 store by means of the maintain repository command provided by the Commander service.

The command determines all content files in a specified S3 store and checks in the database whether they are referenced by an existing object or an old version of an object. Content files without any reference in the database are listed via contentStreamId and returned in a JSON structure.

These parameters can be given to the maintain repository command:

ParameterDescriptionExample
-h | --helpDisplays the help for the command.maintain repository -h
-r | --repositoryId <arg>Specifies the ID of the repository that to be searched. If the specified repository is not an S3 store, an error is returned.

maintain repository -r s3repo

-o | --outputIf this parameter is set, the list with the determined content files will be saved in a file in the temp directory.

maintain repository -r s3repo -o

Read on

Commander Service for System Maintenance

Perform low-level maintenance on your core system, access the database and carry out Elasticsearch queries. Keep reading

Reindexing of Elasticsearch from Database

Restore the entire Elasticsearch index from the database via Commander service. Keep reading

Comparing Elasticsearch and Database

Compare the objects stored in the database and Elasticsearch index. Keep reading