Sha256: 7ff66674843e76eb7ca1aa8fc9cf2ef78d045f79144b7c12aa1b5ae55540a0a1
Contents?: true
Size: 1.67 KB
Versions: 5
Compression:
Stored size: 1.67 KB
Contents
data: - { _id: 1, x: 11 } - { _id: 2, x: 22 } minServerVersion: '3.6' tests: - description: "FindOneAndReplace is committed on first attempt" failPoint: mode: { times: 1 } operation: name: "findOneAndReplace" arguments: filter: { _id: 1 } replacement: { _id: 1, x: 111 } returnDocument: "Before" outcome: result: { _id: 1, x: 11 } collection: data: - { _id: 1, x: 111 } - { _id: 2, x: 22 } - description: "FindOneAndReplace is not committed on first attempt" failPoint: mode: { times: 1 } data: { failBeforeCommitExceptionCode: 1 } operation: name: "findOneAndReplace" arguments: filter: { _id: 1 } replacement: { _id: 1, x: 111 } returnDocument: "Before" outcome: result: { _id: 1, x: 11 } collection: data: - { _id: 1, x: 111 } - { _id: 2, x: 22 } - description: "FindOneAndReplace is never committed" failPoint: mode: { times: 2 } data: { failBeforeCommitExceptionCode: 1 } operation: name: "findOneAndReplace" arguments: filter: { _id: 1 } replacement: { _id: 1, x: 111 } returnDocument: "Before" outcome: error: true collection: data: - { _id: 1, x: 11 } - { _id: 2, x: 22 }
Version data entries
5 entries across 5 versions & 2 rubygems