[SERVER-42623] sched module in Python 3 causes close() event to mistakenly be canceled, leading to resmoke.py hang Created: 04/Aug/19  Updated: 29/Oct/23  Resolved: 06/Aug/19

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.2.1, 4.3.1

Type: Bug Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Fixed Votes: 0
Labels: tig-resmoke
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-72079 Replace our resmoke custom scheduler ... Open
is related to SERVER-42356 teardown(finished=True) isn't ever ca... Closed
is related to SERVER-32295 Support python 3 Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2
Sprint: STM 2019-08-12
Participants:
Linked BF Score: 31
Story Points: 2

 Description   

Discovered this issue while investigating SERVER-42356. It is yet another way for close() to never be called on a FixtureLogger or TestLogger. The changes from https://hg.python.org/cpython/rev/d8802b055474 made it so sched.Event instances returned by sched.scheduler.enter() and sched.scheduler.enterabs() are treated as equal if they have the same (time, priority). It is therefore possible to remove the wrong event from the list when sched.scheduler.cancel() is called.



 Comments   
Comment by Githook User [ 13/Aug/19 ]

Author:

{'name': 'Max Hirschhorn', 'username': 'visemet', 'email': 'max.hirschhorn@mongodb.com'}

Message: SERVER-42623 Remove events from scheduler using `is` operator.

(cherry picked from commit 6d38158e6b81d23072dfaf2baefa52cce27043ef)
Branch: v4.2
https://github.com/mongodb/mongo/commit/b81e081faab34d7deae06b4b837f2a1ba5b8360d

Comment by Githook User [ 06/Aug/19 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-42623 Remove events from scheduler using `is` operator.
Branch: master
https://github.com/mongodb/mongo/commit/6d38158e6b81d23072dfaf2baefa52cce27043ef

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