Repository navigation
Enahancement/multifile max days - #737
Pr0metheus2 wants to merge 3 commits into
Conversation
- Added the file’s UTC last-write timestamp to ILogFileInfo. - Implemented timestamp retrieval for: - Local files - SFTP files - Applied the Max days limit when MultiFile companion files are discovered. - The file explicitly opened by the user is always retained. - MaxDayTry = 0 preserves the previous unlimited behavior. - Filesystem plugins that cannot provide a timestamp retain the previous behavior and their files are not excluded.
EN, DE, CNs
|
hi, i added an analyses to the issue, its not really a bug |
|
The PR doesn't do what the #735 spec asks. The spec wants a new, separate max-file-age option. The PR instead turns the existing MaxDayTry setting into an age limit. Because MaxDayTry still defaults to 3, every existing user with an index pattern like *$J(.) will silently lose rollover files older than 3 days. The spec lists exactly that change as out of scope. Standards Bugs
Repo standards (judgement calls, none hard)
Smells (judgement calls)
Minor:
Spec (maintainer triage comment on #735) Missing or partial
Scope creep
Implemented but wrong
Summary: 10 standards findings, the worst being the "0 = unlimited" hint, which actually loads no files for $D patterns. 12 spec findings, the worst being that the PR changes MaxDayTry instead of adding a separate option that defaults to off. The fix the spec points to is a new MaxFileAgeDays option (default 0) with an injected clock, carried through Settings and the Session File, plus a ColumnizerLib version bump. |
|
OK I will try to make your proposal as you require. |
|
2 Bugs left:
New:
Remaining:
|

This is a proposed fix for the Issue #735 and #185
Problem
The Max days setting only controlled how many previous calendar dates were searched when the MultiFile mask contained a $D date placeholder.
It did not check the last-modified date of files found using index patterns such as:
As a result, all indexed rollover files were loaded regardless of their age.
Changes
Tests
Added coverage for both supported rollover filename layouts:
The tests verify that with MaxDayTry = 3:
The existing $D date-placeholder rule remains working.