Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-1155

Snapshot read concern tests occasionally fail on 7.1.0-dev sharded cluster

    • Type: Icon: Build Failure Build Failure
    • Resolution: Unresolved
    • Priority: Icon: Unknown 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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: