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

unacknowledgedBulkWrite command monitoring test may fail on mongos

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.20.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Hide

      DRIVERS-2921:
      Commits for syncing spec/prose tests

      Context for other referenced/linked tickets

      •  Complete alongside DRIVERS-2877 if that ticket is not already implemented.
      Show
      DRIVERS-2921 : Commits for syncing spec/prose tests  Sync unified command logging and monitoring tests with mongodb/specifications@517ce31 Context for other referenced/linked tickets  Complete alongside DRIVERS-2877 if that ticket is not already implemented.
    • PHP Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      The "A successful unordered bulk write with an unacknowledged write concern" test in unacknowledgedBulkWrite.yml occasionally fails on sharded clusters. From this build failure:

      FAILURE:  (PHPUnit\Framework\ExpectationFailedException)
      MongoDB\Tests\UnifiedSpecTests\UnifiedSpecTest::testCommandMonitoring with data set "command-monitoring/unacknowledgedBulkWrite: A successful unordered bulk write with an unacknowledged write concern" (MongoDB\Tests\UnifiedSpecTests\UnifiedTestCase Object (...))
      Failed asserting that expected value matches actual value.
      $actual count is 1, expected 2
      --- Expected
      +++ Actual
      @@ @@
      -MongoDB\Model\BSONArray Object &00000000000068c30000000000000000 (
      -    0 => MongoDB\Model\BSONDocument Object &00000000000151c40000000000000000 (
      +MongoDB\Model\BSONArray Object &00000000000151ac0000000000000000 (
      +    0 => MongoDB\Model\BSONDocument Object &0000000000014d020000000000000000 (
            '_id' => 1
            'x' => 11
      -    )
      -    1 => MongoDB\Model\BSONDocument Object &0000000000014d0d0000000000000000 (
      -        '_id' => 'unorderedBulkWriteInsertW0'
      -        'x' => 44
        )
      )
      /data/mci/19444affdb1e0b0ab8cd8460a6c05c45/src/tests/UnifiedSpecTests/Constraint/Matches.php:109
      /data/mci/19444affdb1e0b0ab8cd8460a6c05c45/src/tests/UnifiedSpecTests/ExpectedResult.php:49
      /data/mci/19444affdb1e0b0ab8cd8460a6c05c45/src/tests/UnifiedSpecTests/Operation.php:154
      /data/mci/19444affdb1e0b0ab8cd8460a6c05c45/src/tests/UnifiedSpecTests/UnifiedTestRunner.php:221
      /data/mci/19444affdb1e0b0ab8cd8460a6c05c45/src/tests/UnifiedSpecTests/UnifiedTestRunner.php:108
      /data/mci/19444affdb1e0b0ab8cd8460a6c05c45/src/tests/UnifiedSpecTests/UnifiedSpecTest.php:282
      

      This was discovered while working on PHPLIB-1459.

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

              Created:
              Updated:
              Resolved: