Comments (10)
The problem isn’t the pull consumer per se but the fact that work queue streams only allow one consumer to consume any subject.
So the error indicates you are trying to add a consumer that would clash with an existing one
from natscli.
the error indicates you are trying to add a consumer that would clash with an existing one
@ripienaar, what existing one? There are no consumers to clash with.
from natscli.
Show “nats s info” please
from natscli.
Information for Stream swytch created 2024-05-12 00:18:53
Subjects: swytch.>
Replicas: 5
Storage: File
Options:
Retention: WorkQueue
Acknowledgments: true
Discard Policy: Old
Duplicate Window: 2m0s
Allows Msg Delete: false
Allows Purge: false
Allows Rollups: false
Limits:
Maximum Messages: unlimited
Maximum Per Subject: unlimited
Maximum Bytes: unlimited
Maximum Age: unlimited
Maximum Message Size: unlimited
Maximum Consumers: unlimited
Cluster Information:
Name: nats
Leader: nats-3
Replica: nats-0, current, seen 889ms ago
Replica: nats-1, current, seen 889ms ago
Replica: nats-2, current, seen 889ms ago
Replica: nats-4, current, seen 889ms ago
State:
Messages: 0
Bytes: 0 B
First Sequence: 0
Last Sequence: 0
Active Consumers: 0
Alternates: swytch: Cluster: nats
swytch_history: Cluster: nats
from natscli.
Hmm, maybe the mirror counts as a consumer, which is weird, because when created via SDK, it works fine.
Information for Stream swytch_history created 2024-05-11 23:44:01
Replicas: 5
Storage: File
Options:
Retention: Limits
Acknowledgments: true
Discard Policy: Old
Duplicate Window: 0s
Direct Get: true
Mirror Direct Get: true
Allows Msg Delete: true
Allows Purge: true
Allows Rollups: true
Limits:
Maximum Messages: unlimited
Maximum Per Subject: unlimited
Maximum Bytes: unlimited
Maximum Age: 7d0h0m0s
Maximum Message Size: unlimited
Maximum Consumers: unlimited
Replication:
Mirror: swytch
Cluster Information:
Name: nats
Leader: nats-2
Replica: nats-0, current, seen 498ms ago
Replica: nats-1, current, seen 498ms ago
Replica: nats-3, current, seen 498ms ago
Replica: nats-4, current, seen 497ms ago
Mirror Information:
Stream Name: swytch
Lag: 0
Last Seen: 464ms
State:
Messages: 0
Bytes: 0 B
First Sequence: 0
Last Sequence: 0
Active Consumers: 0
from natscli.
Could be yeah. Making a mirror of a WQ is probably not really a good idea. Try without the mirror?
from natscli.
Yep, that was it
from natscli.
Adding the mirror after the consumers works fine via cli.
from natscli.
What server version?
from natscli.
It's in the initial issue report.
from natscli.
Related Issues (20)
- Displayed ObjectStore digest is truncated HOT 1
- Not recognizing difference in stream configuration for sources HOT 1
- Support wildcard for KV get HOT 11
- Broken nats-cli arm64 binary HOT 3
- Stream info shows first and last timestamps incorrectly HOT 2
- Enable inactive-threshold flag while editing consumer HOT 2
- Add a JWT decoder
- `micro list` timeout when micro service process paused via debugger HOT 4
- Subscribing to JetStream Stream on a 3 node cluster with a single offline node fails 1 in 3 times HOT 10
- nats: error: user: unknown userid 929600006 HOT 2
- nats sub --stream does not respect the --js-domain flag HOT 7
- Max Message Size accepts too large a value HOT 2
- Add stream ingest rate sampling HOT 4
- Clean up consumer code HOT 5
- corrupt images when headers data is included HOT 5
- Failed to resolve requested version when downloading nats-cli binary HOT 5
- The command 'nats server check consumer' doesn't work HOT 2
- NatsKVContext.CreateStoreAsync (with defaults) fails on a NATS KV store created with defaults from CLI HOT 2
- Improve consumer list
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from natscli.