-
Type: Build Failure
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: Tests
-
None
A build failure was observed in unified session tests involving a snapshot read concern:
FAILURE: (PHPUnit\Framework\ExpectationFailedException) MongoDB\Tests\UnifiedSpecTests\UnifiedSpecTest::testSessions with data set "sessions/implicit sessions default causal consistency: afterClusterTime is not sent on retried read in implicit session when readConcern level is snapshot" (MongoDB\Tests\UnifiedSpecTests\UnifiedTestCase Object (...)) Failed asserting that expected value matches actual value. $actual count is 0, expected 1 --- Expected +++ Actual @@ @@ -MongoDB\Model\BSONArray Object &000000000001243c0000000000000000 ( - 0 => MongoDB\Model\BSONDocument Object &000000000001243b0000000000000000 ( - '_id' => 1 - 'x' => 'snapshot' - ) -) +MongoDB\Model\BSONArray Object &00000000000127190000000000000000 () /data/mci/edb543fe3edb2df1a568f98ed4348899/src/tests/UnifiedSpecTests/Constraint/Matches.php:116 /data/mci/edb543fe3edb2df1a568f98ed4348899/src/tests/UnifiedSpecTests/ExpectedResult.php:53 /data/mci/edb543fe3edb2df1a568f98ed4348899/src/tests/UnifiedSpecTests/Operation.php:164 /data/mci/edb543fe3edb2df1a568f98ed4348899/src/tests/UnifiedSpecTests/UnifiedTestRunner.php:220 /data/mci/edb543fe3edb2df1a568f98ed4348899/src/tests/UnifiedSpecTests/UnifiedTestRunner.php:110 /data/mci/edb543fe3edb2df1a568f98ed4348899/src/tests/UnifiedSpecTests/UnifiedSpecTest.php:196
This was on a MongoDB 7.1.0-dev ("latest") sharded cluster, which is consistent with reports from over drivers in this Slack thread in #dbx-devs.
This may require integrating something like DocumentationExamplesTest::waitForSnapshot() (see: PHPLIB-1115) into the unified test runner.
- is related to
-
PHPLIB-1115 DocumentationExamplesTest::testSnapshotQueries() fails on latest server version
- Closed