Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-63019

awaitdata_getmore_cmd.js unexpectedly succeeds on cwrwc_rc_majority suite

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL
    • v6.0
    • QE 2022-03-07, QE 2022-03-21
    • 27

      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] }

            denis.grebennicov@mongodb.com Denis Grebennicov
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            0 Vote for this issue
            4 Start watching this issue