Skip to content

Commit a2c3cc2

Browse files
fix testAvailableDiskSpaceMonitorWhenFileSystemStatErrors
1 parent 846c0f3 commit a2c3cc2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

server/src/test/java/org/elasticsearch/index/engine/ThreadPoolMergeExecutorServiceDiskSpaceTests.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ public void testAvailableDiskSpaceMonitorWhenFileSystemStatErrors() throws Excep
293293
if (aErrorsFirst) {
294294
// the "b" file system will also now error when collecting stats
295295
bFileStore.throwIoException = true;
296+
} else {
297+
// the "a" file system will also now error when collecting stats
298+
aFileStore.throwIoException = true;
296299
}
297300
assertBusy(() -> {
298301
synchronized (availableDiskSpaceUpdates) {
@@ -304,6 +307,9 @@ public void testAvailableDiskSpaceMonitorWhenFileSystemStatErrors() throws Excep
304307
if (aErrorsFirst) {
305308
// "a" fs stats collection recovered
306309
aFileStore.throwIoException = false;
310+
} else {
311+
// "b" fs stats collection recovered
312+
bFileStore.throwIoException = false;
307313
}
308314
assertBusy(() -> {
309315
synchronized (availableDiskSpaceUpdates) {

0 commit comments

Comments
 (0)