tsgrp / OpenContent

TSG's Web Services for ECM Repositories
8 stars 4 forks source link

SolrContent File Lock Leak #4

Open benallenallen opened 10 years ago

benallenallen commented 10 years ago

There is an issue with either the RESTContent or getContent handling for Solr that causes the actual files on the filesystem to leave a lock on them. The example to reproduce this is to search for a doc in HPI and view the content. Every time the doc is viewed, a handle is left open. When a GC is run, the handle is released.

The problem comes in for a PUMA that should be deleting earlier versions of the file from the FS when a newer version is created. When this happens, it is unable to delete the previous version if someone has viewed the doc and a GC hasn't run:

image