apache / apache/lucene

TestMockDirectoryWrapper.testIsLoadedOnSlice failure

Open
#15,231 1 comment 0 reactions 0 assignees View on GitHub
type:test
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

### 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.

Contributor guide

Open the contributing guide

Research direction

Run the listed Gradle command with the provided seed and nightly setting to reproduce TestMockDirectoryWrapper.testIsLoadedOnSlice. Read BaseDirectoryTestCase.testIsLoadedOnSlice and testIsLoaded, then inspect the related test framework code to identify why the assertion fails. Done means the targeted test passes under the supplied configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.