IntersectMBO / IntersectMBO/ouroboros-consensus

[BUG] - Node fails to start because `DBLocked` is thrown

Open
#1,650 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
Haskell
Stars
67
Forks
43
Avg merge
5d 13h
Merged PRs (30d)
43

Description

**External**

**Summary**

In a recent run of [antithesis](https://github.com/cardano-foundation/antithesis) we got an interesting failure: One of the nodes (out of a cluster of 5) crashed with the following error messages:

```
DbLocked "/state/lock"
cardano-node: The db is used by another process. File "/state/lock" is locked
```

According to antithesis' logs, it seems this happened when the node was _restarted_ after having been killed.

**Steps to reproduce**

We only had one occurence of this error so it seems very hard to reproduce 😅
I suspect this happens because the file was not properly removed when the node stopped as there's no guarantee it's instantaneous when using file-based locks.

**Expected behavior**

Not sure

**System info (please complete the following information):**

- OS Name: Linux x86 (runs on Antithesis hypervisor)
- Consensus version: tested through cardano-node

```
cardano-node 10.5.1 - linux-x86_64 - ghc-9.6
git rev ca1ec278070baf4481564a6ba7b4a5b9e3d9f366
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.