File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,11 @@ public function __construct(string $internalClientUri)
82
82
83
83
/* Atlas prohibits killAllSessions. Inspect the connection string to
84
84
* determine if we should avoid calling killAllSessions(). This does
85
- * mean that lingering transactions could block test execution. */
86
- if ($ this ->isServerless () || FunctionalTestCase::isAtlas ($ internalClientUri )) {
85
+ * mean that lingering transactions could block test execution.
86
+ *
87
+ * Atlas Data Lake also does not support killAllSessions.
88
+ */
89
+ if ($ this ->isServerless () || FunctionalTestCase::isAtlas ($ internalClientUri ) || $ this ->isAtlasDataLake ()) {
87
90
$ this ->allowKillAllSessions = false ;
88
91
}
89
92
@@ -314,6 +317,14 @@ private function getTopology(): string
314
317
}
315
318
}
316
319
320
+ private function isAtlasDataLake (): bool
321
+ {
322
+ $ database = $ this ->internalClient ->selectDatabase ('admin ' );
323
+ $ buildInfo = $ database ->command (['buildInfo ' => 1 ])->toArray ()[0 ];
324
+
325
+ return ! empty ($ buildInfo ->dataLake );
326
+ }
327
+
317
328
/**
318
329
* Return whether the connection is authenticated.
319
330
*
You can’t perform that action at this time.
0 commit comments