[SERVER-45989] Log files need to be opened with FILE_SHARE_DELETE on Windows Created: 05/Feb/20  Updated: 29/Oct/23  Resolved: 10/Feb/20

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

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Dev Tools 2020-02-10
Participants:
Linked BF Score: 50

 Comments   
Comment by Githook User [ 07/Feb/20 ]

Author:

{'name': 'Henrik Edin', 'username': 'henrikedin', 'email': 'henrik.edin@mongodb.com'}

Message: SERVER-45989 Log files are opened in shared mode on Windows.

Added fstream abstraction for Windows that does this.
Log rotation is now behaving like the old log system

create mode 100644 src/mongo/logv2/file_rotate_sink.cpp
create mode 100644 src/mongo/logv2/file_rotate_sink.h
create mode 100644 src/mongo/logv2/shared_access_fstream.cpp
create mode 100644 src/mongo/logv2/shared_access_fstream.h
Branch: master
https://github.com/mongodb/mongo/commit/ed96ae9dedac361207c747299448f6b0631ff00f

Comment by Githook User [ 06/Feb/20 ]

Author:

{'name': 'Henrik Edin', 'username': 'henrikedin', 'email': 'henrik.edin@mongodb.com'}

Message: SERVER-45989 Temporarily disable logpath.js on Windows
Branch: master
https://github.com/mongodb/mongo/commit/db53877710ad6a840cb52dd8365c8fb7377b4bea

Comment by William Schultz (Inactive) [ 06/Feb/20 ]

Great, thank you.

Comment by William Schultz (Inactive) [ 05/Feb/20 ]

henrik.edin Is this a relatively quick fix?

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