-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Random BulkWriteError seen by users. #14616
Copy link
Copy link
Closed
Description
Description:
Users randomly getting a bulk write error.
Expected behavior:
No errors
Actual behavior:
users getting random errors.
Server Setup Information:
Version of Rocket.Chat Server: 1.0.3
Operating System: Centos 7
Deployment Method: manual tar install
Number of Running Instances: 3
DB Replicaset Oplog: yes
Additional context
Relevant logs:
I20190523-20:53:30.369(0) server.js:199 System ➔ error Error sending message: { BulkWriteError: E11000 duplicate key error collection: rocketchat.rocketchat_message index: _id_ dup key: { : "DxY7JYiecghYquGp7" } at OrderedBulkOperation.handleWriteError (/opt/Rocket.Chat-1.0.3/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/bulk/common.js:1048:11) at resultHandler (/opt/Rocket.Chat-1.0.3/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/bulk/ordered.js:159:23) at /opt/Rocket.Chat-1.0.3/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:532:18 at _combinedTickCallback (internal/process/next_tick.js:131:7) at process._tickDomainCallback (internal/process/next_tick.js:218:9) index: 0, code: 11000, errmsg: 'E11000 duplicate key error collection: rocketchat-gay.rocketchat_message index: _id_ dup key: { : "DxY7JYiecghYquGp7" }', op: { _id: 'DxY7JYiecghYquGp7', rid: 'NWB5mAXJiE5S2XCAh', msg: 'this is true.......but arent you on our time now??<br>', ts: 2019-05-23T20:53:30.336Z, u: { _id: 'qWTTgShw7gFgFAfo9', username: 'Ddougtex12', name: undefined }, mentions: [], channels: [], _updatedAt: 2019-05-23T20:53:30.363Z }, name: 'BulkWriteError', driver: true, err: { index: 0, code: 11000, errmsg: 'E11000 duplicate key error collection: rocketchat-gay.rocketchat_message index: _id_ dup key: { : "DxY7JYiecghYquGp7" }', op: { _id: 'DxY7JYiecghYquGp7', rid: 'NWB5mAXJiE5S2XCAh', msg: 'this is true.......but arent you on our time now??<br>', ts: 2019-05-23T20:53:30.336Z, u: [Object], mentions: [], channels: [], _updatedAt: 2019-05-23T20:53:30.363Z } }, result: BulkWriteResult { result: { ok: 1, writeErrors: [Array], writeConcernErrors: [], insertedIds: [Array], nInserted: 0, nUpserted: 0, nMatched: 0, nModified: 0, nRemoved: 0, upserted: [], lastOp: [Object] } }, [Symbol(mongoErrorContextSymbol)]: {} }
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels