HarperFast / HarperFast/harper-pro

restart_service with replicated:true only restarts the targeted node

Open
#206 0 comments 0 reactions 0 assignees View on GitHub
area:replication bug from-jira
Dominant language
JavaScript
Stars
3
Forks
0
Avg merge
1d 21h
Merged PRs (30d)
80

Description

## Problem

Sending a `restart_service` operation with `replicated: true` and `service: http_workers` only restarts the workers on the node specified in the request URL. The operation is not propagated to other cluster nodes.

## Steps to reproduce

```json
POST https://:9925/
{
"operation": "restart_service",
"service": "http_workers",
"replicated": true
}
```

**Expected:** HTTP workers restarted on all nodes in the cluster.
**Actual:** HTTP workers restarted only on the targeted node.

## Likely cause

`core/bin/restart.ts` has `replicated` handling that calls `replication.sendOperationToNode` per node, but this path may not be reached for `http_workers` specifically, or the `http_workers` restart may short-circuit the process before the replication loop executes.

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