[SERVER-63273] ClusterToClusterReplication hook can error if no tests were run Created: 03/Feb/22  Updated: 29/Oct/23  Resolved: 04/Feb/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0

Type: Bug Priority: Major - P3
Reporter: Vishnu Kaushik Assignee: Vishnu Kaushik
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2022-02-21
Participants:

 Description   

The self._last_test variable is only set after a test was run. Therefore, if no test was run, when we use the variable to run checks at the end of a suite we will face a AttributeError: 'NoneType' object has no attribute 'logger' problem.



 Comments   
Comment by Githook User [ 04/Feb/22 ]

Author:

{'name': 'Vishnu Kaushik', 'email': 'vishnu.kaushik@mongodb.com', 'username': 'kauboy26'}

Message: SERVER-63273 ClusterToClusterReplication hook can error if no tests were run
Branch: master
https://github.com/mongodb/mongo/commit/3cec080ff2ea247d85c1a9f317b79cff2de29b17

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