Skip to content

Log file timestamp not updated on some file systems. Support periodic sync to flush metadata to FS #3593

@roytmana

Description

@roytmana

Hello we are experiencing issue on Azure file shares where log files metadata (particularly last updated timestamp) is not being updated till log file is closed. We confirmed that it is not log4j issue but a problem with any FileOutputStream on this file system.

Would it be possible to add functionality to file manager implementations whereby FileOutputStream's file descriptor would be fsynched with a configured Appender's frequency

FileOutputStream.getFD().sync();

Or perhaps a more generalized solution

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Waiting for user

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions