[SERVER-65446] Fix sleep statements in kmip_key_periodic_job.cpp Created: 11/Apr/22  Updated: 29/Oct/23  Resolved: 20/Apr/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc3, 6.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Shreyas Kalyan Assignee: Shreyas Kalyan
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
Operating System: ALL
Backport Requested:
v6.0
Sprint: Security 2022-04-18, Security 2022-05-02
Participants:
Linked BF Score: 14

 Description   

In the test kmip_key_periodic_job.cpp, we ensure that the kmip key periodic job works correctly by deactivating the key, waiting 5 seconds, and then ensuring that the server has shut down. However the periodic job runs every 5 seconds, so in a perfect storm this can cause problems as seen in BF-24615. We should extend the sleep and wrap the assert statement in an assert soon.



 Comments   
Comment by Githook User [ 26/Apr/22 ]

Author:

{'name': 'Shreyas Kalyan', 'email': 'shreyas.kalyan@10gen.com', 'username': 'shreyaskalyan'}

Message: SERVER-65446 Fix sleep statements in kmip_key_periodic_job.cpp

(cherry picked from commit 00267d7181b76df55139aef38c40461bf1b64f33)
Branch: v6.0
https://github.com/10gen/mongo-enterprise-modules/commit/9eab72fc5dc4f6ad74ccd1a15dd9bafe9943600d

Comment by Githook User [ 20/Apr/22 ]

Author:

{'name': 'Shreyas Kalyan', 'email': 'shreyas.kalyan@10gen.com', 'username': 'shreyaskalyan'}

Message: SERVER-65446 Fix sleep statements in kmip_key_periodic_job.cpp
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/00267d7181b76df55139aef38c40461bf1b64f33

Generated at Thu Feb 08 06:02:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.