GithubHelp home page GithubHelp logo

Comments (10)

ripienaar avatar ripienaar commented on September 22, 2024

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.

withinboredom avatar withinboredom commented on September 22, 2024

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.

ripienaar avatar ripienaar commented on September 22, 2024

Show “nats s info” please

from natscli.

withinboredom avatar withinboredom commented on September 22, 2024
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.

withinboredom avatar withinboredom commented on September 22, 2024

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.

ripienaar avatar ripienaar commented on September 22, 2024

Could be yeah. Making a mirror of a WQ is probably not really a good idea. Try without the mirror?

from natscli.

withinboredom avatar withinboredom commented on September 22, 2024

Yep, that was it

from natscli.

withinboredom avatar withinboredom commented on September 22, 2024

Adding the mirror after the consumers works fine via cli.

from natscli.

ripienaar avatar ripienaar commented on September 22, 2024

What server version?

from natscli.

withinboredom avatar withinboredom commented on September 22, 2024

It's in the initial issue report.

from natscli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.