[ 
https://issues.apache.org/jira/browse/SOLR-15969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17485522#comment-17485522
 ] 

Mike Drob commented on SOLR-15969:
----------------------------------

If I add a call to CheckIndex after the call to BackupRestoreUtils.indexDocs 
then that comes back clean. But if I check {{for (String string : 
dir.listAll()) CodecUtil.checkFooter(dir.openChecksumInput(string, 
IOContext.READONCE));}} then I get a failure.

{noformat}
misplaced codec footer (file extended?): remaining=86, expected=16, fp=0 
(resource=BufferedChecksumIndexInput(MMapIndexInput(path="/Users/mdrob/code/solr/solr/modules/hdfs/build/tmp/tests-tmp/solr.handler.TestHdfsBackupRestoreCore_7102F921739005DD-016/tempDir-002/node1/HdfsBackupRestore_shard1_replica_n1/data/index/_0.dii")))
org.apache.lucene.index.CorruptIndexException: misplaced codec footer (file 
extended?): remaining=86, expected=16, fp=0 
(resource=BufferedChecksumIndexInput(MMapIndexInput(path="/Users/mdrob/code/solr/solr/modules/hdfs/build/tmp/tests-tmp/solr.handler.TestHdfsBackupRestoreCore_7102F921739005DD-016/tempDir-002/node1/HdfsBackupRestore_shard1_replica_n1/data/index/_0.dii")))
        at 
__randomizedtesting.SeedInfo.seed([7102F921739005DD:F956C6FBDD6C6825]:0)
        at 
app//org.apache.lucene.codecs.CodecUtil.validateFooter(CodecUtil.java:578)
        at 
app//org.apache.lucene.codecs.CodecUtil.checkFooter(CodecUtil.java:432)
        at 
app//org.apache.solr.handler.TestHdfsBackupRestoreCore.test(TestHdfsBackupRestoreCore.java:189)
{noformat}

Same file, which also happens to be the first file alphabetically.

> Consistent Failure in TestHdfsBackupRestoreCore
> -----------------------------------------------
>
>                 Key: SOLR-15969
>                 URL: https://issues.apache.org/jira/browse/SOLR-15969
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>         Environment: openjdk version "11.0.13"
> solr commit cb2e58f6569
>            Reporter: Mike Drob
>            Assignee: Kevin Risden
>            Priority: Major
>
> Reproduce with: {{gradlew :solr:modules:hdfs:test --tests 
> "org.apache.solr.handler.TestHdfsBackupRestoreCore.test" 
> -Ptests.seed=7102F921739005DD}}
> {noformat}
>    >     java.lang.AssertionError: Backup failure: zh expected null, but 
> was:<codec footer mismatch (file truncated?): actual footer=808464432 vs 
> expected footer=-1071082520 
> (resource=BufferedChecksumIndexInput(MMapIndexInput(path="/Users/mdrob/code/solr/solr/modules/hdfs/build/tmp/tests-tmp/solr.handler.TestHdfsBackupRestoreCore_7102F921739005DD-006/tempDir-002/node1/HdfsBackupRestore_shard1_replica_n1/data/index/_0.dii")))>
>    >         at 
> __randomizedtesting.SeedInfo.seed([7102F921739005DD:F956C6FBDD6C6825]:0)
>    >         at org.junit.Assert.fail(Assert.java:89)
>    >         at org.junit.Assert.failNotNull(Assert.java:756)
>    >         at org.junit.Assert.assertNull(Assert.java:738)
>    >         at 
> org.apache.solr.handler.BackupStatusChecker._checkBackupSuccess(BackupStatusChecker.java:207)
>    >         at 
> org.apache.solr.handler.BackupStatusChecker.checkBackupSuccess(BackupStatusChecker.java:187)
>    >         at 
> org.apache.solr.handler.BackupStatusChecker.waitForBackupSuccess(BackupStatusChecker.java:96)
>    >         at 
> org.apache.solr.handler.BackupStatusChecker.waitForBackupSuccess(BackupStatusChecker.java:72)
>    >         at 
> org.apache.solr.handler.TestHdfsBackupRestoreCore.test(TestHdfsBackupRestoreCore.java:198)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to