[SERVER-48636] Increase assertEventDoesNotWakeCursor getMore timeout in only_wake_getmore_for_relevant_changes.js Created: 06/Jun/20  Updated: 29/Oct/23  Resolved: 09/Jun/20

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.4.0-rc9, 4.7.0, 4.0.25, 4.2.15

Type: Improvement Priority: Major - P3
Reporter: Bernard Gorman Assignee: Bernard Gorman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4, v4.2, v4.0
Sprint: Query 2020-06-15
Participants:
Linked BF Score: 20

 Description   

In only_wake_getmore_for_relevant_changes.js, a function called assertEventDoesNotWakeCursor is used to verify that a $changeStream getMore does not prematurely return if an unrelated change is written into the oplog. However, the getMore only waits for new data for 1 second, which makes this test sensitive to slow hosts. We should increase the duration of the getMores issued by assertEventDoesNotWakeCursor to perhaps 5 or 10 seconds.



 Comments   
Comment by Githook User [ 03/May/21 ]

Author:

{'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}

Message: SERVER-48636 Increase assertEventDoesNotWakeCursor getMore timeout in only_wake_getmore_for_relevant_changes.js

(cherry picked from commit 697ec820c58a591e833bd1f3ca5e3155fb6babae)
Branch: v4.2
https://github.com/mongodb/mongo/commit/b6d8fec95038790928ea2e2749d071c889900330

Comment by Githook User [ 03/May/21 ]

Author:

{'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}

Message: SERVER-48636 Increase assertEventDoesNotWakeCursor getMore timeout in only_wake_getmore_for_relevant_changes.js

(cherry picked from commit 697ec820c58a591e833bd1f3ca5e3155fb6babae)
Branch: v4.0
https://github.com/mongodb/mongo/commit/eba8f7191b8f2f6d50aa70c00a6ba882e46baa51

Comment by Githook User [ 10/Jun/20 ]

Author:

{'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}

Message: SERVER-48636 Increase assertEventDoesNotWakeCursor getMore timeout in only_wake_getmore_for_relevant_changes.js

(cherry picked from commit 697ec820c58a591e833bd1f3ca5e3155fb6babae)
Branch: v4.4
https://github.com/mongodb/mongo/commit/adba26f7b6980e5d8b66b2cd7521a8b0eadffa8b

Comment by Githook User [ 09/Jun/20 ]

Author:

{'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}

Message: SERVER-48636 Increase assertEventDoesNotWakeCursor getMore timeout in only_wake_getmore_for_relevant_changes.js
Branch: master
https://github.com/mongodb/mongo/commit/697ec820c58a591e833bd1f3ca5e3155fb6babae

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