Skip to content

Commit 6233e32

Browse files
committed
Fix SearchableSnapshotDirectoryTests.testIndexSearcher() (#56275)
Closes #56233
1 parent 65a061e commit 6233e32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/index/store/BaseSearchableSnapshotIndexInput.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ protected final boolean assertCurrentThreadMayAccessBlobStore() {
145145

146146
// Unit tests access the blob store on the main test thread; simplest just to permit this rather than have them override this
147147
// method somehow.
148-
|| threadName.startsWith("TEST-") : "current thread [" + Thread.currentThread() + "] may not read " + fileInfo;
148+
|| threadName.startsWith("TEST-")
149+
|| threadName.startsWith("LuceneTestCase") : "current thread [" + Thread.currentThread() + "] may not read " + fileInfo;
149150
return true;
150151
}
151152

x-pack/plugin/searchable-snapshots/src/test/java/org/elasticsearch/index/store/SearchableSnapshotDirectoryTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ public void testFileLength() throws Exception {
138138
);
139139
}
140140

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

0 commit comments

Comments
 (0)