[SERVER-21695] rollback_index.js Created: 25/Nov/15  Updated: 01/Dec/15  Resolved: 30/Nov/15

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.2.0-rc5

Type: Bug Priority: Critical - P2
Reporter: Randolph Tan Assignee: Matt Dannenberg
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File rollback_index.log    
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

https://evergreen.mongodb.com/task/mongodb_mongo_master_enterprise_ubuntu1404_64_replicasets_auth_3b3ef4253a6c5d5d3f18127ac2272a9696488aec_15_11_24_20_58_13

	
[js_test:rollback_index] 2015-11-25T14:25:15.544+0000 assert: write concern failed with errors: {
[js_test:rollback_index] 2015-11-25T14:25:15.544+0000 	"nInserted" : 1,
[js_test:rollback_index] 2015-11-25T14:25:15.544+0000 	"writeConcernError" : {
[js_test:rollback_index] 2015-11-25T14:25:15.545+0000 		"code" : 64,
[js_test:rollback_index] 2015-11-25T14:25:15.545+0000 		"errInfo" : {
[js_test:rollback_index] 2015-11-25T14:25:15.545+0000 			"wtimeout" : true
[js_test:rollback_index] 2015-11-25T14:25:15.545+0000 		},
[js_test:rollback_index] 2015-11-25T14:25:15.545+0000 		"errmsg" : "waiting for replication timed out"
[js_test:rollback_index] 2015-11-25T14:25:15.545+0000 	}
[js_test:rollback_index] 2015-11-25T14:25:15.545+0000 }
[js_test:rollback_index] 2015-11-25T14:25:15.545+0000 _getErrorWithCode@src/mongo/shell/utils.js:23:13
[js_test:rollback_index] 2015-11-25T14:25:15.545+0000 doassert@src/mongo/shell/assert.js:13:14
[js_test:rollback_index] 2015-11-25T14:25:15.545+0000 assert.writeOK@src/mongo/shell/assert.js:414:9
[js_test:rollback_index] 2015-11-25T14:25:15.545+0000 @jstests/replsets/rollback_index.js:82:1
[js_test:rollback_index] 2015-11-25T14:25:15.545+0000 
[js_test:rollback_index] 2015-11-25T14:25:15.545+0000 2015-11-25T14:25:15.544+0000 E QUERY    [thread1] Error: write concern failed with errors: {
[js_test:rollback_index] 2015-11-25T14:25:15.546+0000 	"nInserted" : 1,
[js_test:rollback_index] 2015-11-25T14:25:15.546+0000 	"writeConcernError" : {
[js_test:rollback_index] 2015-11-25T14:25:15.546+0000 		"code" : 64,
[js_test:rollback_index] 2015-11-25T14:25:15.546+0000 		"errInfo" : {
[js_test:rollback_index] 2015-11-25T14:25:15.546+0000 			"wtimeout" : true
[js_test:rollback_index] 2015-11-25T14:25:15.546+0000 		},
[js_test:rollback_index] 2015-11-25T14:25:15.546+0000 		"errmsg" : "waiting for replication timed out"
[js_test:rollback_index] 2015-11-25T14:25:15.546+0000 	}
[js_test:rollback_index] 2015-11-25T14:25:15.546+0000 } :
[js_test:rollback_index] 2015-11-25T14:25:15.546+0000 _getErrorWithCode@src/mongo/shell/utils.js:23:13
[js_test:rollback_index] 2015-11-25T14:25:15.546+0000 doassert@src/mongo/shell/assert.js:13:14
[js_test:rollback_index] 2015-11-25T14:25:15.546+0000 assert.writeOK@src/mongo/shell/assert.js:414:9
[js_test:rollback_index] 2015-11-25T14:25:15.546+0000 @jstests/replsets/rollback_index.js:82:1
[js_test:rollback_index] 2015-11-25T14:25:15.546+0000 
[js_test:rollback_index] 2015-11-25T14:25:15.547+0000 failed to load: jstests/replsets/rollback_index.js



 Comments   
Comment by Githook User [ 30/Nov/15 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-21695 fix rollback_index.js
Branch: master
https://github.com/mongodb/mongo/commit/93521085a7dd980770fb5a8a7e69c6662d4d6e8c

Comment by Daniel Pasette (Inactive) [ 30/Nov/15 ]

Happening all the time now:
https://evergreen.mongodb.com/task_history/mongodb-mongo-master/replicasets_auth?revision=1936560e01ecfab2a2b9bc12262602f9d5dd0b8c#/rollback_index.js=fail

Seems to be related to:
https://github.com/mongodb/mongo/commit/e8f4a2ea35060e97281221f3b1457ab7106e631e

cc:matt.dannenberg

Comment by Siyuan Zhou [ 25/Nov/15 ]

Secondary lost its sync source after rollback because the primary is not ahead of it. Then it takes several seconds to get the sync source and replicate the insert operation. The test exceeds 5 second time out while waiting for the new sync source. In normal case, the insert takes > 4s to finish. Not sure why it takes so long to sync from the primary after an insert. A workaround is to increase the timeout to 10 seconds.

Generated at Thu Feb 08 03:58:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.