Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

pgj
Copy link
Contributor

@pgj pgj commented Jun 15, 2023

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.

@pgj pgj force-pushed the count-nativefslocks branch 2 times, most recently from 2fec4c1 to 8967d98 Compare June 19, 2023 10:13
Copy link
Contributor

@rnewson rnewson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remember that https://github.com/cloudant/chef-repo/blob/master/cookbooks/collectd/files/default/clouseau.java will need enhancing to get this new value into the metric system.

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.
@pgj pgj force-pushed the count-nativefslocks branch from 8967d98 to d1d0710 Compare June 19, 2023 13:46
@pgj pgj merged commit baff79e into cloudant-labs:master Jun 19, 2023
@pgj pgj deleted the count-nativefslocks branch June 19, 2023 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants