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

Investigate Failing Test: Lucene.Net.Index.TestIndexWriterOnJRECrash::TestNRTThreads_Mem() #894

Open
1 task done
NightOwl888 opened this issue Jan 14, 2024 · 0 comments
Labels
is:bug is:task A chore to be done pri:normal test-failure up-for-grabs This issue is open to be worked on by anyone

Comments

@NightOwl888
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Task description

This test was ported and added in #786 (to close #768).

Unfortunately, it fails intermittently. A user shared in Lucene.net corrupted index (segments.gen) on StackOverflow that this appears to be due to a real problem that happens in production.

The failure may or may not be related to the deprecation of thread interrupts (#555) in Lucene.NET which were supported in the Java version. We make a best effort to support them using UninterrruptableMonitor instead of lock statements, but since a lock may be taken in any library we depend on that may throw ThreadInterruptedException from the action of taking a lock, we cannot 100% guarantee that we can catch every one of these exceptions in order to rollback an in-process commit. In Java, taking a lock does not throw an exception in any case.

@NightOwl888 NightOwl888 added up-for-grabs This issue is open to be worked on by anyone is:bug test-failure pri:normal is:task A chore to be done labels Jan 14, 2024
NightOwl888 added a commit to NightOwl888/lucenenet that referenced this issue Jan 14, 2024
…ed [AwaitsFix] attribute because this test fails intermittently (see apache#894).
NightOwl888 added a commit that referenced this issue Jan 14, 2024
…ed [AwaitsFix] attribute because this test fails intermittently (see #894).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:bug is:task A chore to be done pri:normal test-failure up-for-grabs This issue is open to be worked on by anyone
Projects
None yet
Development

No branches or pull requests

1 participant