You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Jason Gerlowski (Jira)" <ji...@apache.org> on 2021/06/11 17:58:00 UTC

[jira] [Commented] (SOLR-15378) Reproducible failure in TestRestoreCore in branch_8x

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

Jason Gerlowski commented on SOLR-15378:
----------------------------------------

I've seen this before actually!  In short: backup/restore doesn't support SimpleTextCodec.

The restore code checks for a footer in all index files that it restores, to make sure no corruption occurs while moving the files back and forth.  SimpleTextCodec, unlike almost all other Codecs, doesn't include this footer in its files and so attempts to backup or restore a SimpleTextCodec index will fail.

The "fix" for this should be to add a {{@SuppressCodec}} annotation to the test, to ensure it's never used with SimpleTextCodec.

> Reproducible failure in TestRestoreCore in branch_8x
> ----------------------------------------------------
>
>                 Key: SOLR-15378
>                 URL: https://issues.apache.org/jira/browse/SOLR-15378
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 8.9
>         Environment: branch_8x Ubuntu 18.04
>            Reporter: Gus Heck
>            Priority: Major
>
> Was trying to do a test run before other work and hit this:
> {code:java}
>  [junit4] FAILURE 3.67s | TestRestoreCore.testFailedRestore <<<
>    [junit4]    > Throwable #1: java.lang.AssertionError: Backup failure: em expected null, but was:<codec footer mismatch (file truncated?): actual footer=808464432 vs expected footer=-1071082520 (resource=BufferedChecksumIndexInput(MockIndexInputWrapper(RAMInputStream(name=_0.si))))>
>    [junit4]    >        at __randomizedtesting.SeedInfo.seed([4B0403CEAA9348CC:C6722B0AAB1382DC]:0)
>    [junit4]    >        at org.apache.solr.handler.BackupStatusChecker._checkBackupSuccess(BackupStatusChecker.java:208)
>    [junit4]    >        at org.apache.solr.handler.BackupStatusChecker.checkBackupSuccess(BackupStatusChecker.java:187)
>    [junit4]    >        at org.apache.solr.handler.BackupStatusChecker.waitForBackupSuccess(BackupStatusChecker.java:96)
>    [junit4]    >        at org.apache.solr.handler.BackupStatusChecker.waitForBackupSuccess(BackupStatusChecker.java:72)
>    [junit4]    >        at org.apache.solr.handler.TestRestoreCore.testFailedRestore(TestRestoreCore.java:208)
>    [junit4]    >        at java.lang.Thread.run(Thread.java:748)
>    [junit4]   2> NOTE: leaving temporary files on disk at: /home/gus/projects/apache/lucene-solr/fork/lucene-solr8/solr/build/solr-core/test/J0/temp/solr.handler.TestRestoreCore_4B0403CEAA9348CC-001
>    [junit4]   2> NOTE: test params are: codec=SimpleText, sim=Asserting(RandomSimilarity(queryNorm=false): {}), locale=es-UY, timezone=America/Scoresbysund
>    [junit4]   2> NOTE: Linux 4.15.0-142-generic amd64/Azul Systems, Inc. 1.8.0_252 (64-bit)/cpus=32,threads=1,free=233305064,total=382730240
>    [junit4]   2> NOTE: All tests run in this JVM: [TestRestoreCore]
>    [junit4] Completed [1/1 (1!)] in 5.06s, 1 test, 1 failure <<< FAILURES!
>    [junit4] 
>    [junit4] 
>    [junit4] Tests with failures [seed: 4B0403CEAA9348CC]:
>    [junit4]   - org.apache.solr.handler.TestRestoreCore.testFailedRestore
>    [junit4] 
>    [junit4] 
>    [junit4] JVM J0:     0.31 ..     6.00 =     5.69s
>    [junit4] Execution time total: 6.01 sec.
>    [junit4] Tests summary: 1 suite, 1 test, 1 failureBUILD FAILED
> /home/gus/projects/apache/lucene-solr/fork/lucene-solr8/build.xml:58: The following error occurred while executing this line:
> /home/gus/projects/apache/lucene-solr/fork/lucene-solr8/solr/build.xml:231: The following error occurred while executing this line:
> /home/gus/projects/apache/lucene-solr/fork/lucene-solr8/solr/common-build.xml:550: The following error occurred while executing this line:
> /home/gus/projects/apache/lucene-solr/fork/lucene-solr8/lucene/common-build.xml:1608: The following error occurred while executing this line:
> /home/gus/projects/apache/lucene-solr/fork/lucene-solr8/lucene/common-build.xml:1135: There were test failures: 1 suite, 1 test, 1 failure [seed: 4B0403CEAA9348CC]
> {code}
> That reproduces 3/3 times I ran it with this command in lucene-solr branch_8x
> {code:java}
> ant test -Dtestcase=TestRestoreCore -Dtests.method=testFailedRestore -Dtests.seed=4B0403CEAA9348CC -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=es-UY -Dtests.timezone=America/Scoresbysund -Dtests.asserts=true -Dtests.file.encoding=US-ASCII{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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