File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -316,6 +316,11 @@ protected function createTestCollection(): void
316
316
*/
317
317
private static function killAllSessions (): void
318
318
{
319
+ // killAllSessions is not supported on serverless, see CLOUDP-84298
320
+ if (static ::isServerless ()) {
321
+ return ;
322
+ }
323
+
319
324
$ manager = static ::createTestManager ();
320
325
$ primary = $ manager ->selectServer (new ReadPreference ('primary ' ));
321
326
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public function __construct(string $internalClientUri)
78
78
/* Atlas prohibits killAllSessions. Inspect the connection string to
79
79
* determine if we should avoid calling killAllSessions(). This does
80
80
* mean that lingering transactions could block test execution. */
81
- if (strpos ($ internalClientUri , self ::ATLAS_TLD ) !== false ) {
81
+ if ($ this -> isServerless () || strpos ($ internalClientUri , self ::ATLAS_TLD ) !== false ) {
82
82
$ this ->allowKillAllSessions = false ;
83
83
}
84
84
}
You can’t perform that action at this time.
0 commit comments