Fix SearchableSnapshotDirectoryTests.testIndexSearcher() (#56275)

Closes #56233
This commit is contained in:
Tanguy Leroux 2020-05-07 11:11:44 +02:00
parent 65a061e33a
commit 6233e32ab3
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,8 @@ public abstract class BaseSearchableSnapshotIndexInput extends BufferedIndexInpu
// Unit tests access the blob store on the main test thread; simplest just to permit this rather than have them override this // Unit tests access the blob store on the main test thread; simplest just to permit this rather than have them override this
// method somehow. // method somehow.
|| threadName.startsWith("TEST-") : "current thread [" + Thread.currentThread() + "] may not read " + fileInfo; || threadName.startsWith("TEST-")
|| threadName.startsWith("LuceneTestCase") : "current thread [" + Thread.currentThread() + "] may not read " + fileInfo;
return true; return true;
} }

View File

@ -138,7 +138,6 @@ public class SearchableSnapshotDirectoryTests extends ESTestCase {
); );
} }
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/56233")
public void testIndexSearcher() throws Exception { public void testIndexSearcher() throws Exception {
testDirectories((directory, snapshotDirectory) -> { testDirectories((directory, snapshotDirectory) -> {
try (DirectoryReader reader = DirectoryReader.open(directory)) { try (DirectoryReader reader = DirectoryReader.open(directory)) {