apache / apache/lucene

TestFieldCacheSanityChecker.testInsanity1 failure [LUCENE-4646]

Open
#5,711 0 comments 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Major type:bug
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

I've hit this while running tests:

```
[junit4:junit4] Suite: org.apache.lucene.util.TestFieldCacheSanityChecker
[junit4:junit4] 2> NOTE: reproduce with: ant test -Dtestcase=TestFieldCacheSanityChecker -Dtests.method=testInsanity1 -Dtests.seed=7E0EF33CC742369A -Dtests.slow=true -Dtests.locale=sr_RS_Latn -Dtests.timezone=ECT -Dtests.file.encoding=UTF-8
[junit4:junit4] FAILURE 1.30s J0 | TestFieldCacheSanityChecker.testInsanity1 <<<
[junit4:junit4] > Throwable #1: java.lang.AssertionError: wrong number of entries in cache error expected:<2> but was:<4>
[junit4:junit4] > at __randomizedtesting.SeedInfo.seed([7E0EF33CC742369A:15B02AB0AB1CB68A]:0)
[junit4:junit4] > at org.junit.Assert.fail(Assert.java:93)
[junit4:junit4] > at org.junit.Assert.failNotEquals(Assert.java:647)
[junit4:junit4] > at org.junit.Assert.assertEquals(Assert.java:128)
[junit4:junit4] > at org.junit.Assert.assertEquals(Assert.java:472)
[junit4:junit4] > at org.apache.lucene.util.TestFieldCacheSanityChecker.testInsanity1(TestFieldCacheSanityChecker.java:135)
```

Failed to reproduce with the seed w/ and w/o tests.method. Tried w/ tetss.iters=100, but did not reproduce either.

---
Migrated from [LUCENE-4646](https://issues.apache.org/jira/browse/LUCENE-4646) by Shai Erera (@shaie), updated Jan 31 2013
Linked issues:
- #5802

Contributor guide

Open the contributing guide

Research direction

Start with org.apache.lucene.util.TestFieldCacheSanityChecker.testInsanity1 and the assertion at TestFieldCacheSanityChecker.java:135. Run the provided ant test command with the recorded seed, then investigate why the cache entry count is expected to be 2 but observed as 4; done means the intermittent failure has an identified cause and a verified resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.