Skip to content

out_forware doesn't flush file buffers #4875

@TheDaz-1

Description

@TheDaz-1

Describe the bug

After a failure the system was restarted but fluentd never started working the disk buffers. Only after I changed the flush configuration to flush_mode immediate it immediately started to flush the file buffers.

To Reproduce

can't reproduce at will

Expected behavior

fluentd should automatically flush file buffers after a restart

Your Environment

OS     : RHEL 9
Kernel : 5.14.0-427.42.1
fluentd: 1.16.1

Your Configuration

@type forward
     <server>
        name myServer
        host 127.0.0.1
        port 24225
        ignore_network_errors_at_startup true
        verify_connection_at_startup false
     </server>
     <buffer>
        @type file
        path /ffdc/fluent/buffers/mybuf.*.buf
        flush_mode interval
        flush_interval 1s
        overflow_action block
        total_limit_size 1GB
        queued_chunks_limit_size 1024
        compress gzip
        retry_forever true
        retry_type periodic
        retry_wait 1s
     </buffer>

Your Error Log

no error logs written

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting-for-userSimilar to "moreinfo", but especially need feedback from user

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions