-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
nats-server is complaining about overlapping jetstream api subjects on stream creation when not valid [v2.11.2] #6846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Are you overlapping with the interest of other configured streams? Streams have to have non-overlapping interest within a given account. |
We have intentionally hardcoded one of the tokens in the subject: i.e. This is occurring when trying to create a the first stream in a very simple environment. |
Does |
Yep no streams are reported. We bypassed this issue by adding a constant prefix to the subject. |
With server v2.11.2 and CLI v0.1.5, I fail to create the streams as you do, but the error returned is because of the JS API collision, not a duplicate stream. For your first example:
For your second example:
... which makes sense because the first wildcard could match What isn't clear is why you are getting |
Also happens in 2.11.3 with the following subject |
Also happens to me with 2.11.3 with a stream having subjects like:
I fixed that by adding a prefix to all these subjects like:
|
Uh oh!
There was an error while loading. Please reload this page.
Observed behavior
In nats-server version 2.11.2, it appears that creating a stream using mostly wildcards in the subjects field raises an error saying:
nats: error: could not create Stream: subjects overlap with an existing stream (10065)
.I've observed that if the first 2 tokens are wildcards. the stream creation will always fail.
Here is a screenshot of using the cli to replicate the issue.

This is a valid stream being created with the same pattern.

Expected behavior
A valid stream for subjects with wildcards appearing for the first 3+ tokens is created.
This should be valid.

Server and client version
nats-server version = 2.11.2
nats cli version = 0.1.5
Host environment
No response
Steps to reproduce
Outlined in the screenshots above
The text was updated successfully, but these errors were encountered: