logv / sybil

columnar storage + NoSQL OLAP engine | https://logv.org
https://logv.org
Other
305 stars 24 forks source link

[grpc] investigate DB lock files #52

Open okayzed opened 6 years ago

okayzed commented 6 years ago

The DB lock files will no longer work as expected when using multiple queries or ingestions in a single sybil process, because they use the PID to coordinate and figure out the owner of the lock.

This task is to adjust the locks: ingest, digest, info and cache (see the sybil implementation page for what they do) to be protected internally against contention from other threads. It might mean adding a mutex or otherwise solving this issue.

(refs #38)