cloudant-labs / clouseau

Expose Lucene features as an erlang-like node
Apache License 2.0
58 stars 32 forks source link

chore: add metric on the count of NativeFSLocks held #79

Closed pgj closed 1 year ago

pgj commented 1 year ago

Lucene 4.6 is known to leak locks when an exception hits the rollback of an index writer. Introduce an optional metric on the size of the internal store that tracks the currently held NativeFSLocks to be able to assess its severity in practice.

The method is specific to the Lucene internals and it uses Java reflection to extract the data as it is officially not accessible.