Explorar el Código

Suppress WindowsFS in ReloadingDatabasesWhilePerformingGeoLookupsIT (#87517)

WindowsFS fails if a files that is open/in use while being deleted.
However, when there is a new database in geoip index then DatabaseNodeService
will download that and replaces the database file in use by using a file move.
Only windows has issues with this and WindowsFS emulates this behaviour.

I think for now it is best to suppress windows fs in this test.

Closes #87453
Martijn van Groningen hace 3 años
padre
commit
b0dd87fe80

+ 7 - 1
modules/ingest-geoip/src/internalClusterTest/java/org/elasticsearch/ingest/geoip/ReloadingDatabasesWhilePerformingGeoLookupsIT.java

@@ -45,7 +45,13 @@ import static org.hamcrest.Matchers.sameInstance;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
-@LuceneTestCase.SuppressFileSystems(value = "ExtrasFS") // Don't randomly add 'extra' files to directory.
+@LuceneTestCase.SuppressFileSystems(
+    value = {
+        "ExtrasFS", // Don't randomly add 'extra' files to directory.
+        "WindowsFS" // Files.copy(...) replaces files being in use and causes 'java.io.IOException: access denied: ...' mock errors (from
+                    // 'WindowsFS.checkDeleteAccess(...)').
+    }
+)
 public class ReloadingDatabasesWhilePerformingGeoLookupsIT extends ESTestCase {
 
     /**