HarperFast / HarperFast/harper

Crash after drop_schema + drop_component + add_component without restart

Open
#718 0 comments 0 reactions 1 assignee Claimed by @kriszyp View on GitHub
area:components bug from-jira
Dominant language
JavaScript
Stars
89
Forks
10
Avg merge
2d 6h
Merged PRs (30d)
200

Description

## Problem

Performing `drop_schema` → `drop_component` → `add_component` (without a `restart` between drop and add) causes Harper to crash with 50+ "No current read transaction available" errors followed by "Thread has been restarted N times and will not be restarted."

```
uncaughtException Error: Invalid argument: No transaction to renew
opening database /path/hdb/database/data.mdb
[main/0] [error]: Thread has been restarted undefined times and will not be restarted
```

## Workaround

Insert a `restart` operation between `drop_component` and `add_component`.

## Steps to reproduce

```json
{ "operation": "drop_schema", "schema": "data" }
{ "operation": "drop_component", "project": "computed" }
{ "operation": "add_component", "project": "appGraphQL" }
{ "operation": "restart" }
```

🤖 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.