[SERVER-28380] Add a test-only clearLog command for clearing out RamLog, use it in tests when checking for a specific log message Created: 17/Mar/17  Updated: 07/Sep/17  Resolved: 20/Mar/17

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: None
Fix Version/s: 3.2.13, 3.4.4, 3.5.5

Type: Task Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: bkp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.4, v3.2
Sprint: Repl 2017-03-27
Participants:
Linked BF Score: 0

 Description   

Some tests call the getLog command to try to wait for a certain log message to show up. If that message already showed up previously, however, the test can move on prematurely before the log message is actually generated at the point they want. Adding a clearLog command would enable such tests to clear the log before waiting for the message they are expecting to appear.



 Comments   
Comment by Githook User [ 04/Apr/17 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-28380 Clear ramlog before looking for stopReplProducer failpoint log message

(cherry picked from commit 07ddacf92a2c53bd5a02878917ab8ebb35874413)
Branch: v3.2
https://github.com/mongodb/mongo/commit/7ec2611b596764062455af54a5d198d69b1c89d1

Comment by Githook User [ 04/Apr/17 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-28380 Clear ramlog before looking for stopReplProducer failpoint log message

(cherry picked from commit 07ddacf92a2c53bd5a02878917ab8ebb35874413)
Branch: v3.4
https://github.com/mongodb/mongo/commit/302d82c0d1e86db64ea411e464571608f2b66bad

Comment by Githook User [ 20/Mar/17 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-28380 Clear ramlog before looking for stopReplProducer failpoint log message
Branch: master
https://github.com/mongodb/mongo/commit/07ddacf92a2c53bd5a02878917ab8ebb35874413

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