Skip to content

Commit a443e13

Browse files
authored
Fix SearchableSnapshotDirectoryTests.testIndexSearcher() (#56275)
Closes #56233
1 parent 93c05fd commit a443e13

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
@@ -137,7 +137,6 @@ public void testFileLength() throws Exception {
137137
);
138138
}
139139

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

0 commit comments

Comments
 (0)