graninas / Hydra

Hydra is a full-fledged framework for building web services, multithreaded and concurrent applications with SQL and KV DB support.
BSD 3-Clause "New" or "Revised" License
189 stars 13 forks source link

RocksDB multiple connects are failing with error #49

Open graninas opened 4 years ago

graninas commented 4 years ago

See the labyrinth game (commit 7d47e83d641d22ad374b2e714a5361c82f4b7865).

Scenario:

  1. Type save 0. A new connection is opened, and the game will be successfully saved.
  2. Type load 0. A new connection will fail.
> save 0
Game successully saved to KV DB.
> load 0
labyrinth: InvalidOperation "DBError SystemError \"user error (open: IO error: lock ./app/labyrinth/labyrinths.rdb/LOCK: No locks available)\""
labyrinth: thread blocked indefinitely in an STM transaction