apache / apache/logging-log4j2
Fix tests using `OnStartupTriggeringPolicy`
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.7k
- Avg merge
- 21h 30m
- Merged PRs (30d)
- 27
Description
The `OnStartupTriggeringPolicy` compares the creation time of the JVM with the creation time of the current log file.
However "creation time" is not well defined on UNIX systems and Java might output:
* `0L`,
* the time of last modification of the file,
* or the time the file was created, if the filesystem supports additional metadata (see for example [`statx`](https://man7.org/linux/man-pages/man2/statx.2.html) for Linux).
For the time being the tests have been disabled on some systems in 7b92b6f17965f96cbcd3caf404e9e553ded043ff and 53e3b85978fd0dc5bccee44adca7dc94b5c33679
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with OnStartupTriggeringPolicy and the tests disabled by commits 7b92b6f17965f96cbcd3caf404e9e553ded043ff and 53e3b85978fd0dc5bccee44adca7dc94b5c33679. Compare how Java reports file creation time on UNIX systems and determine how the tests should behave across those environments. Done means the affected tests work reliably without assuming a single creation-time value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100