-
Type: Build Failure
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
PHP Drivers
-
Not Needed
-
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.
- is related to
-
PHPLIB-1459 Direct read/write retries to another mongos if possible
- Closed
- split from
-
DRIVERS-2921 Use single mongos in racy unacknowledged write tests
- Implementing