Skip to content

Race between file reader and writer in FileSessionCredentialsProvider #6665

@leventov

Description

@leventov

A race is possible between the file updater and the Druid process reading the file. It could be enforced only with mandatory file locking, but file locking is advisory by default in Linux.

If Druid targets only Linux (is it?) probably some Linux-specific code could be added to configure mandatory file locking for sessionCredentialsFile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions