You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2014/08/26 16:20:58 UTC
[jira] [Updated] (LUCENE-5907) closing NRT reader after upgrading
from 3.x index can cause index corruption
[ https://issues.apache.org/jira/browse/LUCENE-5907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless updated LUCENE-5907:
---------------------------------------
Attachment: LUCENE-5907.patch
Test case fails with this:
{noformat}
1) testUpgradeWithNRTReader(org.apache.lucene.index.TestBackwardsCompatibility3x)
java.lang.AssertionError: TEST-TestBackwardsCompatibility3x.testUpgradeWithNRTReader-seed#[1AF59EAA2A07C9C6]: RefCount is 0 pre-decrement for file "_2.si"
at __randomizedtesting.SeedInfo.seed([1AF59EAA2A07C9C6:264CBECD5998A01B]:0)
at org.apache.lucene.index.IndexFileDeleter$RefCount.DecRef(IndexFileDeleter.java:638)
at org.apache.lucene.index.IndexFileDeleter.decRef(IndexFileDeleter.java:524)
at org.apache.lucene.index.IndexFileDeleter.deleteCommits(IndexFileDeleter.java:296)
at org.apache.lucene.index.IndexFileDeleter.checkpoint(IndexFileDeleter.java:467)
at org.apache.lucene.index.IndexWriter.finishCommit(IndexWriter.java:3197)
at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:3177)
at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3137)
at org.apache.lucene.index.TestBackwardsCompatibility3x.testUpgradeWithNRTReader(TestBackwardsCompatibility3x.java:964)
{noformat}
But with assertions disabled it causes index corruption (missing _2.si file).
> closing NRT reader after upgrading from 3.x index can cause index corruption
> ----------------------------------------------------------------------------
>
> Key: LUCENE-5907
> URL: https://issues.apache.org/jira/browse/LUCENE-5907
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Fix For: 5.0, 4.10
>
> Attachments: LUCENE-5907.patch
>
>
> I have a small test case showing the issue....
> I think we should fix this for 4.10?
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org