Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/changelog/3.6.1/366-flush-takes-the-file-lock.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://logging.apache.org/xml/ns"
xsi:schemaLocation="https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
type="fixed">
<issue id="366" link="https://github.com/apache/logging-log4net/issues/366"/>
<issue id="369" link="https://github.com/apache/logging-log4net/pull/369"/>
<description format="asciidoc">`FileAppender.Flush(int)` with `ImmediateFlush=false` no longer
drops the buffered text and returns `false`: it takes the file lock and writes the text.
With `InterProcessLock` and `MinimalLock` nothing is left buffered, as they flush before
each release, so it returns immediately (ANT-2026-98BDXCN5, fixed by @FreeAndNil)</description>
</entry>
14 changes: 14 additions & 0 deletions src/changelog/3.6.1/366-shared-locks-flush-before-release.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://logging.apache.org/xml/ns"
xsi:schemaLocation="https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
type="fixed">
<issue id="366" link="https://github.com/apache/logging-log4net/issues/366"/>
<issue id="369" link="https://github.com/apache/logging-log4net/pull/369"/>
<description format="asciidoc">`InterProcessLock` and `MinimalLock` write out their buffered text
before releasing the lock, so processes sharing a file no longer overwrite or split each other's
records: `ImmediateFlush=false` has no effect with them and is reported once per activation. A long
header, a layout throwing halfway and the footer no longer leave text behind; the footer is written
and the file closed within a single lock
(ANT-2026-EAZMFSKC, fixed by @FreeAndNil)</description>
</entry>
11 changes: 11 additions & 0 deletions src/changelog/3.6.1/367-global-mutex-names.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://logging.apache.org/xml/ns"
xsi:schemaLocation="https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
type="fixed">
<issue id="367" link="https://github.com/apache/logging-log4net/issues/367"/>
<issue id="369" link="https://github.com/apache/logging-log4net/pull/369"/>
<description format="asciidoc">Outside Windows `InterProcessLock` and `RollingFileAppender` now lock
the file across login sessions, so processes started separately, such as services and cron jobs, no
longer write at the same time (fixed by @FreeAndNil)</description>
</entry>
11 changes: 11 additions & 0 deletions src/changelog/3.6.1/367-minimal-lock-excludes-writers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://logging.apache.org/xml/ns"
xsi:schemaLocation="https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
type="fixed">
<issue id="367" link="https://github.com/apache/logging-log4net/issues/367"/>
<issue id="369" link="https://github.com/apache/logging-log4net/pull/369"/>
<description format="asciidoc">Outside Windows `MinimalLock` keeps other writers out while it
writes, so one process no longer overwrites the event another just wrote. Readers are not blocked;
an event that cannot get the lock within 10 seconds is reported and dropped (ANT-2026-JC5GM7W7, fixed by @FreeAndNil)</description>
</entry>
11 changes: 11 additions & 0 deletions src/changelog/3.6.1/368-retried-open-suffix-once.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://logging.apache.org/xml/ns"
xsi:schemaLocation="https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
type="fixed">
<issue id="368" link="https://github.com/apache/logging-log4net/issues/368"/>
<issue id="369" link="https://github.com/apache/logging-log4net/pull/369"/>
<description format="asciidoc">`RollingFileAppender` with `StaticLogFileName=false` retries a failed
open under the right file name; each retry used to add the roll suffix again and leave one more empty
file behind (fixed by @FreeAndNil)</description>
</entry>
13 changes: 13 additions & 0 deletions src/changelog/3.6.1/368-timed-out-open-waits-once.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://logging.apache.org/xml/ns"
xsi:schemaLocation="https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
type="fixed">
<issue id="368" link="https://github.com/apache/logging-log4net/issues/368"/>
<issue id="369" link="https://github.com/apache/logging-log4net/pull/369"/>
<description format="asciidoc">After an open of the log file timed out on the lock, each retrying
event waits once instead of four times and no longer leaks a file stream. An open retried after a
failure appends instead of truncating, whatever the locking model, also with `AppendToFile=false`,
so what another process wrote meanwhile stays. `FileAppender.OpenFile` no longer sets
`AppendToFile` (ANT-2026-D1OOS5L6, fixed by @FreeAndNil)</description>
</entry>
Loading
Loading