Open
Description
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.