Skip to content

Commit

Permalink
Fix SearchableSnapshotDirectoryTests.testIndexSearcher() (#56275)
Browse files Browse the repository at this point in the history
Closes #56233
  • Loading branch information
tlrx committed May 7, 2020
1 parent 93c05fd commit a443e13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ protected final boolean assertCurrentThreadMayAccessBlobStore() {

// Unit tests access the blob store on the main test thread; simplest just to permit this rather than have them override this
// 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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ public void testFileLength() throws Exception {
);
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/56233")
public void testIndexSearcher() throws Exception {
testDirectories((directory, snapshotDirectory) -> {
try (DirectoryReader reader = DirectoryReader.open(directory)) {
Expand Down

0 comments on commit a443e13

Please sign in to comment.