£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyʦ•ꎅȮFÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~芩ÊǍí`ÔÑ©ú뙵'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶êםӼ㞪éUWŸÈË%DÒÕ¬ï‘]/Åcx ‰ï2ß]ä6G[]S£Ôϯrs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ ¯¹ægƒÛowЍø^d™ý½ßB7áyMä9ÜÖUã !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --TEST-- MongoDB\Driver\Session::isDirty() --SKIPIF-- --FILE-- selectServer(); $session = $manager->startSession(); printf("New session is dirty: %s\n", $session->isDirty() ? 'yes' : 'no'); $command = new MongoDB\Driver\Command(['ping' => 1]); $server->executeCommand(DATABASE_NAME, $command, ['session' => $session]); printf("Session after successful command is dirty: %s\n", $session->isDirty() ? 'yes' : 'no'); configureTargetedFailPoint($server, 'failCommand', [ 'times' => 1 ], [ 'failCommands' => ['ping'], 'closeConnection' => true ]); throws(function() use ($server, $command, $session) { $server->executeCommand(DATABASE_NAME, $command, ['session' => $session]); }, MongoDB\Driver\Exception\ConnectionTimeoutException::class); printf("Session after network error is dirty: %s\n", $session->isDirty() ? 'yes' : 'no'); ?> ===DONE=== --EXPECT-- New session is dirty: no Session after successful command is dirty: no OK: Got MongoDB\Driver\Exception\ConnectionTimeoutException Session after network error is dirty: yes ===DONE===