[SERVER-35654] rollback_transaction_table.js fails even in WT runs Created: 18/Jun/18  Updated: 29/Oct/23  Resolved: 25/Jul/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.0.2, 4.1.2

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Jack Mulrow
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: HTML File log    
Issue Links:
Backports
Related
is related to SERVER-33879 config.transactions is not updated du... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0
Participants:

 Description   

d20023| 2018-06-18T13:07:41.615-0400 I COMMAND  [conn2] CMD: drop config.transactions
2018-06-18T13:07:41.617-0400 E QUERY    [js] Error: drop failed: {
	"operationTime" : Timestamp(1529341661, 2),
	"ok" : 0,
	"errmsg" : "Direct writes against config.transactions cannot be performed using a transaction or on a session.",
	"code" : 40528,
	"codeName" : "Location40528",
	"$clusterTime" : {
		"clusterTime" : Timestamp(1529341661, 3),
		"signature" : {
			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
			"keyId" : NumberLong(0)
		}
	}
} :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
DBCollection.prototype.drop@src/mongo/shell/collection.js:700:1
@jstests/replsets/rollback_transaction_table.js:80:12
@jstests/replsets/rollback_transaction_table.js:19:2
failed to load: jstests/replsets/rollback_transaction_table.js



 Comments   
Comment by Githook User [ 06/Aug/18 ]

Author:

{'username': 'jsmulrow', 'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com'}

Message: SERVER-35654 Disable implicit sessions for rollback_transaction_table.js

(cherry picked from commit a50be297c7a7da7d79411f013c9bbbb07cf4addb)
Branch: v4.0
https://github.com/mongodb/mongo/commit/379f5901bfbd972595b0d27bb392ca0e5409e8e2

Comment by Githook User [ 25/Jul/18 ]

Author:

{'username': 'jsmulrow', 'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com'}

Message: SERVER-35654 Disable implicit sessions for rollback_transaction_table.js
Branch: master
https://github.com/mongodb/mongo/commit/a50be297c7a7da7d79411f013c9bbbb07cf4addb

Comment by Jack Mulrow [ 25/Jul/18 ]

Turns out the problem is that this test can't run with an implicit session, since it both manually simulates a session and tests dropping the config.transactions collection. This test was disabled when SERVER-32064 was commmited, so the TestData.disableImplicitSessions flag wasn't set for it. All we need to do is add that flag and the test should start passing again.

I noticed this test is still disabled in 4.0, but SERVER-33879 was fixed in 3.7.4, so I think we can enable it on that branch if we backport this ticket as well (since SERVER-32604 has already been backported to 4.0).

Generated at Thu Feb 08 04:40:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.