[jira] [Updated] (LUCENE-8560) TestByteBuffersDirectory.testSeekPastEOF() failures with ByteArrayIndexInput
[ https://issues.apache.org/jira/browse/LUCENE-8560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dawid Weiss updated LUCENE-8560: Fix Version/s: master (8.0) > TestByteBuffersDirectory.testSeekPastEOF() failures with ByteArrayIndexInput > > > Key: LUCENE-8560 > URL: https://issues.apache.org/jira/browse/LUCENE-8560 > Project: Lucene - Core > Issue Type: Bug > Components: core/index >Reporter: Steve Rowe >Assignee: Dawid Weiss >Priority: Minor > Fix For: master (8.0) > > Attachments: LUCENE-8560.patch, LUCENE-8560.patch > > > Two reproducing seeds below. In both cases: > * the {{IndexInput}} implementation is {{ByteArrayIndexInput}} > * seeking to exactly EOF does not throw an exception > * {{ByteArrayIndexInput.readByte()}} throws AIOOBE instead of the expected > EOFException > From [https://jenkins.thetaphi.de/job/Lucene-Solr-master-MacOSX/4903]: > {noformat} > Checking out Revision 856e28d8cf07cc34bc1361784bf00e7aceb3af97 > (refs/remotes/origin/master) > [...] >[junit4] 2> NOTE: reproduce with: ant test > -Dtestcase=TestByteBuffersDirectory -Dtests.method=testSeekPastEOF > -Dtests.seed=BDFA8CEDB7C93AC1 -Dtests.slow=true -Dtests.locale=sr-RS > -Dtests.timezone=Europe/Astrakhan -Dtests.asserts=true > -Dtests.file.encoding=US-ASCII >[junit4] FAILURE 0.00s J0 | TestByteBuffersDirectory.testSeekPastEOF > {impl=byte array (heap)} <<< >[junit4]> Throwable #1: junit.framework.AssertionFailedError: > Unexpected exception type, expected EOFException but got > java.lang.ArrayIndexOutOfBoundsException: 1770 >[junit4]> at > __randomizedtesting.SeedInfo.seed([BDFA8CEDB7C93AC1:5DBC4714B74C4450]:0) >[junit4]> at > org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2680) >[junit4]> at > org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2669) >[junit4]> at > org.apache.lucene.store.BaseDirectoryTestCase.testSeekPastEOF(BaseDirectoryTestCase.java:516) >[junit4]> at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >[junit4]> at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) >[junit4]> at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >[junit4]> at > java.base/java.lang.reflect.Method.invoke(Method.java:564) >[junit4]> at java.base/java.lang.Thread.run(Thread.java:844) >[junit4]> Caused by: java.lang.ArrayIndexOutOfBoundsException: 1770 >[junit4]> at > org.apache.lucene.store.ByteArrayIndexInput.readByte(ByteArrayIndexInput.java:145) >[junit4]> at > org.apache.lucene.store.BaseDirectoryTestCase.lambda$testSeekPastEOF$12(BaseDirectoryTestCase.java:518) >[junit4]> at > org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2675) >[junit4]> ... 37 more > [...] >[junit4] 2> NOTE: test params are: codec=Lucene80, > sim=Asserting(org.apache.lucene.search.similarities.AssertingSimilarity@2c972cf9), > locale=sr-RS, timezone=Europe/Astrakhan >[junit4] 2> NOTE: Mac OS X 10.11.6 x86_64/Oracle Corporation 9 > (64-bit)/cpus=3,threads=1,free=157933784,total=235929600 > {noformat} > Also (older) from > [https://builds.apache.org/job/Lucene-Solr-NightlyTests-master/1645]: > {noformat} > [junit4] 2> NOTE: reproduce with: ant test > -Dtestcase=TestByteBuffersDirectory -Dtests.method=testSeekPastEOF > -Dtests.seed=90B07B6267E63464 -Dtests.multiplier=2 -Dtests.nightly=true > -Dtests.slow=true > -Dtests.linedocsfile=/home/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-master/test-data/enwiki.random.lines.txt > -Dtests.locale=es-PR -Dtests.timezone=Australia/Currie -Dtests.asserts=true > -Dtests.file.encoding=UTF-8 > [junit4] FAILURE 0.01s J1 | TestByteBuffersDirectory.testSeekPastEOF > {impl=byte array (heap)} <<< > [junit4]> Throwable #1: junit.framework.AssertionFailedError: > Unexpected exception type, expected EOFException but got > java.lang.ArrayIndexOutOfBoundsException: 1881 > [junit4]> at > __randomizedtesting.SeedInfo.seed([90B07B6267E63464:70F6B09B67634AF5]:0) > [junit4]> at > org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2683) > [junit4]> at > org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2672) > [junit4]> at > org.apache.lucene.store.BaseDirectoryTestCase.testSeekPastEOF(BaseDirectoryTestCase.java:516) > [junit4]> at java.lang.Thread.run(Thread.java:748) > [junit4]> Caused by:
[jira] [Updated] (LUCENE-8560) TestByteBuffersDirectory.testSeekPastEOF() failures with ByteArrayIndexInput
[ https://issues.apache.org/jira/browse/LUCENE-8560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dawid Weiss updated LUCENE-8560: Attachment: LUCENE-8560.patch > TestByteBuffersDirectory.testSeekPastEOF() failures with ByteArrayIndexInput > > > Key: LUCENE-8560 > URL: https://issues.apache.org/jira/browse/LUCENE-8560 > Project: Lucene - Core > Issue Type: Bug > Components: core/index >Reporter: Steve Rowe >Assignee: Dawid Weiss >Priority: Minor > Attachments: LUCENE-8560.patch, LUCENE-8560.patch > > > Two reproducing seeds below. In both cases: > * the {{IndexInput}} implementation is {{ByteArrayIndexInput}} > * seeking to exactly EOF does not throw an exception > * {{ByteArrayIndexInput.readByte()}} throws AIOOBE instead of the expected > EOFException > From [https://jenkins.thetaphi.de/job/Lucene-Solr-master-MacOSX/4903]: > {noformat} > Checking out Revision 856e28d8cf07cc34bc1361784bf00e7aceb3af97 > (refs/remotes/origin/master) > [...] >[junit4] 2> NOTE: reproduce with: ant test > -Dtestcase=TestByteBuffersDirectory -Dtests.method=testSeekPastEOF > -Dtests.seed=BDFA8CEDB7C93AC1 -Dtests.slow=true -Dtests.locale=sr-RS > -Dtests.timezone=Europe/Astrakhan -Dtests.asserts=true > -Dtests.file.encoding=US-ASCII >[junit4] FAILURE 0.00s J0 | TestByteBuffersDirectory.testSeekPastEOF > {impl=byte array (heap)} <<< >[junit4]> Throwable #1: junit.framework.AssertionFailedError: > Unexpected exception type, expected EOFException but got > java.lang.ArrayIndexOutOfBoundsException: 1770 >[junit4]> at > __randomizedtesting.SeedInfo.seed([BDFA8CEDB7C93AC1:5DBC4714B74C4450]:0) >[junit4]> at > org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2680) >[junit4]> at > org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2669) >[junit4]> at > org.apache.lucene.store.BaseDirectoryTestCase.testSeekPastEOF(BaseDirectoryTestCase.java:516) >[junit4]> at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >[junit4]> at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) >[junit4]> at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >[junit4]> at > java.base/java.lang.reflect.Method.invoke(Method.java:564) >[junit4]> at java.base/java.lang.Thread.run(Thread.java:844) >[junit4]> Caused by: java.lang.ArrayIndexOutOfBoundsException: 1770 >[junit4]> at > org.apache.lucene.store.ByteArrayIndexInput.readByte(ByteArrayIndexInput.java:145) >[junit4]> at > org.apache.lucene.store.BaseDirectoryTestCase.lambda$testSeekPastEOF$12(BaseDirectoryTestCase.java:518) >[junit4]> at > org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2675) >[junit4]> ... 37 more > [...] >[junit4] 2> NOTE: test params are: codec=Lucene80, > sim=Asserting(org.apache.lucene.search.similarities.AssertingSimilarity@2c972cf9), > locale=sr-RS, timezone=Europe/Astrakhan >[junit4] 2> NOTE: Mac OS X 10.11.6 x86_64/Oracle Corporation 9 > (64-bit)/cpus=3,threads=1,free=157933784,total=235929600 > {noformat} > Also (older) from > [https://builds.apache.org/job/Lucene-Solr-NightlyTests-master/1645]: > {noformat} > [junit4] 2> NOTE: reproduce with: ant test > -Dtestcase=TestByteBuffersDirectory -Dtests.method=testSeekPastEOF > -Dtests.seed=90B07B6267E63464 -Dtests.multiplier=2 -Dtests.nightly=true > -Dtests.slow=true > -Dtests.linedocsfile=/home/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-master/test-data/enwiki.random.lines.txt > -Dtests.locale=es-PR -Dtests.timezone=Australia/Currie -Dtests.asserts=true > -Dtests.file.encoding=UTF-8 > [junit4] FAILURE 0.01s J1 | TestByteBuffersDirectory.testSeekPastEOF > {impl=byte array (heap)} <<< > [junit4]> Throwable #1: junit.framework.AssertionFailedError: > Unexpected exception type, expected EOFException but got > java.lang.ArrayIndexOutOfBoundsException: 1881 > [junit4]> at > __randomizedtesting.SeedInfo.seed([90B07B6267E63464:70F6B09B67634AF5]:0) > [junit4]> at > org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2683) > [junit4]> at > org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2672) > [junit4]> at > org.apache.lucene.store.BaseDirectoryTestCase.testSeekPastEOF(BaseDirectoryTestCase.java:516) > [junit4]> at java.lang.Thread.run(Thread.java:748) > [junit4]> Caused by: java.lang.ArrayIndexOutOfBoundsException: 1881 >