Replies: 2 comments 2 replies
-
Can you provide some configuration files and some code. The code should specify how you are trying to subscribe. It might be as simple as you needing to give the mirror stream name to the consumer configuration you subscribe with. Also you may need to adjust your jetstream prefix / domain. The .net client is raw, meaning it has all the functionality to support this, but it doesn't do any logic for you regarding understanding your account and domains.
maybe with
|
Beta Was this translation helpful? Give feedback.
-
@whysi This is a ton to digest, I'll look at it when I can. Pleases try setting the stream name in the push subscribe options. Also, for your stream info, it's not clear which server you are connecting to with the cli, so the full cli command would be useful. I just want to be sure the cli isn't using your default server or something. |
Beta Was this translation helpful? Give feedback.
-
Hi,
recently I've started to use NATS JetStream, testing with various topology configurations (clustering+leafnodes).
This is the desired configuration:
From an infrastructure point of view I'm able to create the clusters, configure the leafnodes connection, create the stream (both timings and timings_mirror) and publish messages using a user in the TEST account.
If I use the NATS Cli I can subscribe to both ends using 2 contexts with the same user, without any problems. I can subscribe to the whole stream or to any of the subjects that I've created in the leaf node without problem, and the stream mirroring works as expected.
But I've a problem doing the same with nats.net: I'm only able to subscribe to the leaf timings stream, and not the replica one.
This is the error I get when I try to subscribe to the stream in the HUB cluster:
NATS.Client.NATSJetStreamClientException: '[SUB-90007] No matching streams for subject
If I try to get the stream info of timings_mirror using GetStreamInfo() I get 0 subjects for the stream, even if I have a number of subjects on the leaf node/original stream.
I don't know if I'm missing a piece of the configuration and/or in the nats.net usage. If needed I can give you more information about my test infrastructure and about the code that I'm using to connect on my application.
I'm asking here because I really don't know if connecting to a mirror (or even a source stream, I've done the same tests with same result) is something that's supported by nats.net or not.
Any help would be really appreciated, thanks in advance!
Regards
Marco
Beta Was this translation helpful? Give feedback.
All reactions