[SERVER-33479] Improve watchdog directory check logging Created: 25/Feb/18  Updated: 29/Oct/23  Resolved: 02/Mar/18

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.7.3

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

Issue Links:
Backports
Depends
Duplicate
is duplicated by SERVER-33505 Watchdog probe files from multiple mo... Closed
Related
is related to SERVER-33505 Watchdog probe files from multiple mo... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.6, v3.4, v3.2
Sprint: Platforms 2018-03-12
Participants:
Case:
Linked BF Score: 0

 Description   

The watchdog has two invariants as part of its directory check.

    invariant(bytesRead == bytesWritten);
    invariant(memcmp(nowStr.c_str(), readBuffer.get(), nowStr.size()) == 0);

These invariants should be changed to log more information to understand why the watchdog could not read what it wrote.



 Comments   
Comment by Githook User [ 07/Mar/18 ]

Author:

{'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto', 'username': 'markbenvenuto'}

Message: SERVER-33479 Revert changes to SConscript
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/6f42a70ca121fadb0ebb58d72d721c743abda425

Comment by Githook User [ 01/Mar/18 ]

Author:

{'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto', 'username': 'markbenvenuto'}

Message: SERVER-33479 Fix assert codes
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/5b8696f0fc0d8c354f77551607d9494d3fb43fe0

Comment by Githook User [ 01/Mar/18 ]

Author:

{'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto', 'username': 'markbenvenuto'}

Message: SERVER-33479 Improve watchdog logging and robustness to EINTR
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/44876c05f088b929d2ac07f9ef6e2b12c5cc3bee

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