Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warn if using temp storage for JetStream (#5935)
Based on [a discussion on Community NATS Slack](https://natsio.slack.com/archives/CM3T6T7JQ/p1727353138572209?thread_ts=1727312314.349369&cid=CM3T6T7JQ). When just running `nats-server -js` or with Docker using `docker run --network host nats -js`, a temporary storage directory will be used since `-sd`/`jetstream.store_dir` is not specified. There have been some times where people lost data, because they were not aware of the temp storage being used. A user commented if a warning could be shown for this, therefore proposing this small fix to try and make it more obvious. @bruth, tagging as you commented in the thread as well. Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
- Loading branch information