Skip to content

Audit JSONL Write Failures — 469 occurrences (~8% data loss) #545

@mickume

Description

@mickume

AuditJsonlSink.emit_audit_event() in audit.py:226-233 opens the file with open(path, "a") for every single event, with no file locking. With
parallel = 5, concurrent appends cause OSError. The JSONL file ended up with 5,466 lines, meaning ~469 events were silently dropped.

Root cause: No file lock or buffered writer. Each emit_audit_event call opens/closes the file independently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    af:fixIssues ready to be implementedaf:fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions