You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2022/12/16 17:01:04 UTC
[GitHub] [lucenenet] rclabo commented on issue #768: Port missing test: TestIndexWriterOnJRECrash
rclabo commented on issue #768:
URL: https://github.com/apache/lucenenet/issues/768#issuecomment-1355221633
@Jeevananthan-23 Thanks for volunteering to tackle this. In general we try to port the Java code to .NET as literally as possible while also adhering to standard .NET coding conventions.
This unit test will need to be ported a bit less literally then most code since it's written to test that Lucene handles a JRE crash without corrupting the index. While we don't have a JRE in .NET, the analogous thing to test would be to test that the index does not get corrupted if the Lucene thread is terminated at a random interval.
This could be accomplished by 1) running the Lucene code on a different thread then the unit test and then terminating the Lucene thread after a random time period or 2) by having the test launch a separate process (which will of course inherently has a thread) that runs Lucene and then killing that process after a random interval.
Either approach would probably work fine.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org