Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8742

HdfsDirectoryTest fails reliably after changes in LUCENE-6932

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.5, 8.0
    • None
    • None

    Description

      the following seed fails reliably for me on master...

         [junit4]   2> 1370568 INFO  (TEST-HdfsDirectoryTest.testEOF-seed#[A0D22782D87E1CE2]) [    ] o.a.s.SolrTestCaseJ4 ###Ending testEOF
         [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=HdfsDirectoryTest -Dtests.method=testEOF -Dtests.seed=A0D22782D87E1CE2 -Dtests.slow=true -Dtests.locale=es-PR -Dtests.timezone=Indian/Mauritius -Dtests.asserts=true -Dtests.file.encoding=ISO-8859-1
         [junit4] ERROR   0.13s J0 | HdfsDirectoryTest.testEOF <<<
         [junit4]    > Throwable #1: java.lang.NullPointerException
         [junit4]    > 	at __randomizedtesting.SeedInfo.seed([A0D22782D87E1CE2:31B9658A9A5ABA9E]:0)
         [junit4]    > 	at org.apache.lucene.store.RAMInputStream.readByte(RAMInputStream.java:69)
         [junit4]    > 	at org.apache.solr.store.hdfs.HdfsDirectoryTest.testEof(HdfsDirectoryTest.java:159)
         [junit4]    > 	at org.apache.solr.store.hdfs.HdfsDirectoryTest.testEOF(HdfsDirectoryTest.java:151)
         [junit4]    > 	at java.lang.Thread.run(Thread.java:745)
      

      git bisect says this is the first commit where it started failing..

      ddc65d977f920013c5fca16c8ac75ae2c6895f9d is the first bad commit
      commit ddc65d977f920013c5fca16c8ac75ae2c6895f9d
      Author: Michael McCandless <mikemccand@apache.org>
      Date:   Thu Jan 21 17:50:28 2016 +0000
      
          LUCENE-6932: RAMInputStream now throws EOFException if you seek beyond the end of the file
          
          git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1726039 13f79535-47bb-0310-9956-ffa450edef68
      
      

      ...which seems remarkable relevant and likely to indicate a problem that needs fixed in the HdfsDirectory code (or perhaps just the test)

      Attachments

        1. SOLR-8742.patch
          2 kB
          Steven Rowe

        Issue Links

          Activity

            People

              sarowe Steven Rowe
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: