I am running version purge using the OOTB tool at /etc/versioning/purge.html in AEM6.2.
I have defined a custom index for version storage. Even then the purge is really slow.
Secondly while doing so, I get an exception as below:
10.01.2018 11:27:57.498 *ERROR* [220.127.116.11  POST /etc/versioning/purge.html HTTP/1.1] com.day.cq.wcm.core.impl.VersionManagerImpl Unable to purge version 1.0 for /content/site/missing-page/jcr:content : OakIntegrity0001: Unable to delete referenced node
javax.jcr.ReferentialIntegrityException: OakIntegrity0001: Unable to delete referenced node
The points to be noted:
The tool still continues to purge remaining versions. I am wondering how I can avoid this. The tool is unable to purge a lot of versions like this.
What should be the proper way to run version purge? Should I run compaction before version purge?
We just spoke to Support - this is a issue - they recommended you log a ticket.