File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
server/src/test/java/org/elasticsearch/index/engine Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments