Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

FileTarget - Fix Windows FileSystem Tunneling when KeepFileOpen=false - #5427

#5427
Merged
snakefoot merged 1 commit into
NLog:devNLog/NLog:devfrom
snakefoot:filetarget-tunnel-fixsnakefoot/NLog:filetarget-tunnel-fixCopy head branch name to clipboard
Nov 28, 2023
Merged

FileTarget - Fix Windows FileSystem Tunneling when KeepFileOpen=false#5427
snakefoot merged 1 commit into
NLog:devNLog/NLog:devfrom
snakefoot:filetarget-tunnel-fixsnakefoot/NLog:filetarget-tunnel-fixCopy head branch name to clipboard

Conversation

@snakefoot

@snakefoot snakefoot commented Nov 28, 2023

Copy link
Copy Markdown
Contributor

Resolving #5426

Bug introduced with #5381 + #5382 + #5384

NLog v5.2.6 tried to make FileTarget more stable by not momentarily releasing-file-handle when starting new log-file. By updating file-timestamp on the newly opened file. But when using FileTarget KeepFileOpen=false, then file-handle is opened with exclusive write-access, and caused File.SetCreationTimeUtc to fail and not set correct file-creation-timestamp. This meant NLog file-archive-logic would fail together with KeepFileOpen=false.

@snakefoot snakefoot added bug Bug report / Bug fix file-target file-archiving Issues with archiving with the file target labels Nov 28, 2023
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

86.7% 86.7% Coverage
0.0% 0.0% Duplication

@snakefoot
snakefoot merged commit b84e892 into NLog:dev Nov 28, 2023
@snakefoot snakefoot added this to the 5.2.7 milestone Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bug report / Bug fix file-archiving Issues with archiving with the file target file-target size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.