Skip to content

nats-server is complaining about overlapping jetstream api subjects on stream creation when not valid [v2.11.2] #6846

@AresAutomata

Description

@AresAutomata

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

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

Expected behavior

A valid stream for subjects with wildcards appearing for the first 3+ tokens is created.

This should be valid.
Image

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

Metadata

Metadata

Assignees

Labels

defectSuspected defect such as a bug or regression

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions