You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "SYEDMDSAAD (via GitHub)" <gi...@apache.org> on 2026/02/19 08:17:32 UTC
[PR] TestSwappedIndexFiles: remove RandomIndexWriter to avoid nondeterministic CFS changes [lucene]
SYEDMDSAAD opened a new pull request, #15724:
URL: https://github.com/apache/lucene/pull/15724
The test fails reproducibly with seed 397C971E9E35FD4E.
RandomIndexWriter may call LuceneTestCase.maybeChangeLiveIndexWriterConfig()
during addDocument(), which can change CFS settings at runtime. This causes
different index layouts between the two directories used by the test even
though an identical IndexWriterConfig is provided.
Since this test verifies detection of foreign index files and depends on
identical file layouts, runtime mutation makes the test nondeterministic.
Replace RandomIndexWriter with a regular IndexWriter to ensure deterministic
behavior.
--
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: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
Re: [PR] TestSwappedIndexFiles: remove RandomIndexWriter to avoid nondeterministic CFS changes [lucene]
Posted by "SYEDMDSAAD (via GitHub)" <gi...@apache.org>.
SYEDMDSAAD closed pull request #15724: TestSwappedIndexFiles: remove RandomIndexWriter to avoid nondeterministic CFS changes
URL: https://github.com/apache/lucene/pull/15724
--
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: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org