cancel
Showing results for 
Search instead for 
Did you mean: 

Obtaining a list of Orphaned Binaries Before Deletion

Peter_Tucker
Confirmed Champ
Confirmed Champ

Hi!

I am looking into a way to review orphaned binaries before they are deleted. I know that that platform has in the Admin tab the tool to gathered orphaned binaries, and where you can delete clear them. I also saw in a different thread on what script is used to collect the orphaned binaries.

https://answers.nuxeo.com/general/q/1a59c9853a41488385781122f335c737/Nuxeo-Shell-Delete-Orphaned-Bin...

However something I've been trying to find is how and where the orphaned binaries are stored before deletion, if they are saved in some sort of list. When looking at the script, I see:

SQLRepositoryStatusMBean status = new SQLRepositoryStatus();
if (!status.isBinariesGCInProgress()) {
    BinaryManagerStatus binaryManagerStatus = status.gcBinaries(true);
    ....

So I looked up on BinaryManagerStatus and saw here: http://community.nuxeo.com/api/nuxeo/5.5/javadoc/org/nuxeo/ecm/core/storage/sql/BinaryManagerStatus....

It has information about the number of GC binaries, duration, but nothing on returning the list. Is there an alternate way of obtaining this list?

2 REPLIES 2

Florent_Guillau
World-Class Innovator
World-Class Innovator

No, currently there's no way to return the list. You'd have to change the binary manager API and implementation to do that.

Thank you for confirming. I was just wondering if this was something that was possible with the current API

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.