You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "romseygeek (via GitHub)" <gi...@apache.org> on 2025/09/25 09:43:45 UTC
[I] TestMockDirectoryWrapper.testIsLoadedOnSlice failure [lucene]
romseygeek opened a new issue, #15231:
URL: https://github.com/apache/lucene/issues/15231
### Description
```
TestMockDirectoryWrapper > testIsLoadedOnSlice FAILED
java.lang.AssertionError
at __randomizedtesting.SeedInfo.seed([7AA64BB2BA5EE192:30F94BDEF5E7E3DF]:0)
at org.junit.Assert.fail(Assert.java:87)
at org.junit.Assert.assertTrue(Assert.java:42)
at org.junit.Assert.assertTrue(Assert.java:53)
at org.apache.lucene.tests.store.BaseDirectoryTestCase.testIsLoaded(BaseDirectoryTestCase.java:1660)
at org.apache.lucene.tests.store.BaseDirectoryTestCase.testIsLoadedOnSlice(BaseDirectoryTestCase.java:1627)
```
### Gradle command to reproduce
```
gradlew :lucene:test-framework:test --tests "org.apache.lucene.tests.store.TestMockDirectoryWrapper.testIsLoadedOnSlice" -Ptests.file.encoding=UTF-8 -Ptests.gui=false -Ptests.jvmargs= -Ptests.jvms=12 -Ptests.nightly=true -Ptests.seed=7AA64BB2BA5EE192 -Ptests.vectorsize=128
```
Note for reproduction: `tests.nightly=true` is important here as the random wrapping of Directories uses `rarely()`, which changes its behaviour depending on the `nightly` setting.
--
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.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: [I] TestMockDirectoryWrapper.testIsLoadedOnSlice failure [lucene]
Posted by "romseygeek (via GitHub)" <gi...@apache.org>.
romseygeek commented on issue #15231:
URL: https://github.com/apache/lucene/issues/15231#issuecomment-3333150718
Pretty sure this is just a test issue, it's wrapping things with an `NRTCachingDirectory` which produces `ByteBuffersIndexInput` where the test is expecting an FS-based index input, but I'm not sure what the best fix is that doesn't reduce coverage elsewhere.
cc @ChrisHegarty
--
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