HarperFast / HarperFast/harper

drop_schema logs spurious 'Attempt to reset an invalid read txn' error

Open
#812 0 comments 0 reactions 0 assignees View on GitHub
area:storage bug from-jira
Dominant language
JavaScript
Stars
89
Forks
10
Avg merge
2d 6h
Merged PRs (30d)
200

Description

## Problem

After dropping a schema (and components), the schema is successfully removed but the following error appears in logs:

```
Attempt to reset an invalid read txn Txn {
address: 105553145403728,
timerTracked: true,
refCount: 0,
isDone: true
}
uncaughtException Error: Attempt to reset an invalid read txn
at Timeout.resetReadTxn [as _onTimeout] (lmdb/read.js:1052:11)
```

Reproduced in a 4-node cluster with plexus replication, dropping components then the schema on each node.

🤖 Filed by Claude on behalf of Kris.

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.