Jetstream: PATCH operation for adding a source to a stream
Author: ordeneauxCreated Sep 16, 2026Updated Sep 17, 2026
Labelsproposal
Proposed change
Is there any way to avoid a costly "write full state" operation when editing a stream to only add a source?
Use case
Our main stream is about 90GB on disk. "nats stream edit" cli operations cause the entire system to go unresponsive, eventually logging [WRN] Internal subscription on "$JS.API.STREAM.UPDATE.SHORE" took too long: 14m17.66853948s then it comes back up. Typically we are only adding a source stream when we perform these edits.
Contribution
No response
Submission acknowledgment
- I am a human being writing in my own words and not an AI agent. I will not use an AI agent to communicate on my behalf in this issue, either directly or via copy-paste.
Source: nats-io/nats-server