Skip to content

Ensure two or more plugin instances don't select the same sincedb, causing data loss #150

Open
@jsvd

Description

@jsvd

Currently in the documentation we warn that, when using more than one file { } section, you need different sincedb paths (doc here).

However, we should enforce this somehow to prevent silent data loss, because the same sincedb file will be updated by different instances, causing each plugin to potentially backtrack or skip ahead.

To ensure no other plugin instance or event logstash instance uses the same sincedb file, a file lock could be used.
To guarantee the exclusivity just at the logstash instance level we could create some threadsafe class level metadata that would be checked at register time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions