You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a simple setup with a leaf node connected to a hub. Jetstream is separated into two different domains ("hub" and "leaf") and i'm trying to mirror a bucket named "my_bucket" from the hub to the leaf node.
But this produces the following error on the leaf node: nats: API error: code=500 err_code=10052 description=detected cycle
Upon further inspection, the issue may be related to CreateOrUpdateKeyValue requesting a Jetstream API call to $JS.API.STREAM.UPDATE.KV_my_bucket without the proper external property in the mirror map.
Observed behavior
I have a simple setup with a leaf node connected to a hub. Jetstream is separated into two different domains ("hub" and "leaf") and i'm trying to mirror a bucket named "my_bucket" from the hub to the leaf node.
This is the code I'm using:
But this produces the following error on the leaf node:
nats: API error: code=500 err_code=10052 description=detected cycle
Upon further inspection, the issue may be related to
CreateOrUpdateKeyValue
requesting a Jetstream API call to$JS.API.STREAM.UPDATE.KV_my_bucket
without the properexternal
property in themirror
map.If I change the previous code to
manually specifying the correct
APIPrefix
(instead of relying on the library compiling it from theDomain
property) everything works as expected.Expected behavior
The previous code should run just fine when specifying only the
Domain
property of the StreamSource insteadServer and client version
2.10.12
2.10.12
v1.34.0
go1.22.0 windows/amd64
Host environment
No response
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: