This specifically addresses the case where a WriteConflictException is thrown from insertDocument(). Converting this exception into a status will not allow the write conflict retry loops in callers to work properly.
11 lines
251 B
JavaScript
11 lines
251 B
JavaScript
(function() {
|
|
'use strict';
|
|
|
|
load("jstests/replsets/libs/apply_ops_insert_write_conflict.js");
|
|
|
|
new ApplyOpsInsertWriteConflictTest({
|
|
testName: 'apply_ops_insert_write_conflict_nonatomic',
|
|
atomic: false
|
|
}).run();
|
|
}());
|