[SERVER-63019] awaitdata_getmore_cmd.js unexpectedly succeeds on cwrwc_rc_majority suite Created: 26/Jan/22  Updated: 29/Oct/23  Resolved: 08/Mar/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Denis Grebennicov
Resolution: Fixed Votes: 0
Labels: greenerbuild
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-66540 Don't run awaitData cursor notificati... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: QE 2022-03-07, QE 2022-03-21
Participants:
Linked BF Score: 27

 Description   

There's a couple confusing things about this test/its history. Major highlights of the current behavior:

  • On the classic jscore variant, this test succeeds without large windows of waiting
  • Presumably changing this getmore into a readConcern: majority (as per what the suite does) with the same 1 hour timeout results in a 10 minute wait (cursor timeout?) before successfully returning.

It's unclear to me if the test is really passing. Certainly, it's not expected for the test to be waiting for 10 minutes before passing.

I accidentally let the test run to completion with debugging that exposes the contents of the returned batch. The one expected document exists:

[js_test:awaitdata_getmore_cmd] [jsTest] {
[js_test:awaitdata_getmore_cmd] [jsTest] 	"DBG. CmdRes" : {
[js_test:awaitdata_getmore_cmd] [jsTest] 		"cursor" : {
[js_test:awaitdata_getmore_cmd] [jsTest] 			"nextBatch" : [
[js_test:awaitdata_getmore_cmd] [jsTest] 				{
[js_test:awaitdata_getmore_cmd] [jsTest] 					"_id" : "match",
[js_test:awaitdata_getmore_cmd] [jsTest] 					"x" : 1
[js_test:awaitdata_getmore_cmd] [jsTest] 				}
[js_test:awaitdata_getmore_cmd] [jsTest] 			],
[js_test:awaitdata_getmore_cmd] [jsTest] 			"id" : NumberLong("665283733450521987"),
[js_test:awaitdata_getmore_cmd] [jsTest] 			"ns" : "test.await_data"
[js_test:awaitdata_getmore_cmd] [jsTest] 		},
[js_test:awaitdata_getmore_cmd] [jsTest] 		"ok" : 1,
[js_test:awaitdata_getmore_cmd] [jsTest] 		"$clusterTime" : {
[js_test:awaitdata_getmore_cmd] [jsTest] 			"clusterTime" : Timestamp(1643225913, 1),
[js_test:awaitdata_getmore_cmd] [jsTest] 			"signature" : {
[js_test:awaitdata_getmore_cmd] [jsTest] 				"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
[js_test:awaitdata_getmore_cmd] [jsTest] 				"keyId" : NumberLong(0)
[js_test:awaitdata_getmore_cmd] [jsTest] 			}
[js_test:awaitdata_getmore_cmd] [jsTest] 		},
[js_test:awaitdata_getmore_cmd] [jsTest] 		"operationTime" : Timestamp(1643225913, 1)
[js_test:awaitdata_getmore_cmd] [jsTest] 	}
[js_test:awaitdata_getmore_cmd] [jsTest] }



 Comments   
Comment by Liubov Molchanova [ 26/May/22 ]

Requesting backport for BFG-1190247

Comment by Githook User [ 08/Mar/22 ]

Author:

{'name': 'Denis Grebennicov', 'email': 'denis.grebennicov@mongodb.com', 'username': 'denis631'}

Message: SERVER-63019 awaitdata_getmore_cmd.js unexpectedly succeeds on cwrwc_rc_majority suite
Branch: master
https://github.com/mongodb/mongo/commit/d370cc2c6355fccc06c6e93d58a6996e50e975ff

Generated at Thu Feb 08 05:56:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.