Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NACK gave up on creating a stream before NATS became available #193

Open
rozidan opened this issue Jul 4, 2024 · 2 comments
Open

NACK gave up on creating a stream before NATS became available #193

rozidan opened this issue Jul 4, 2024 · 2 comments
Labels
defect Suspected defect such as a bug or regression

Comments

@rozidan
Copy link

rozidan commented Jul 4, 2024

What version were you using?

NACK: 0.15.0
Nats-server: 2.10.9

What environment was the server running in?

RKE2: v1.26.4+rke2r1

Is this defect reproducible?

Before the NATS server is available, start Nack and let it attempt to create a stream more then ten times.

Given the capability you are leveraging, describe your expectation?

The stream should be recreated

Would it be possible for the "maximum queue retries" to be configurable?
See

maxQueueRetries = 10

Given the expectation, what is the defect you are observing?

The stream is not created
nack log:
"controller.go:478] failed to process stream: failed to create stream "...": no suitable peers for placement (10005)"

@rozidan rozidan added the defect Suspected defect such as a bug or regression label Jul 4, 2024
@jetdream
Copy link

jetdream commented Aug 29, 2024

+1
The same issue but is happening even earlier - when NATS cluster is not deployed yet:

apiVersion: jetstream.nats.io/v1beta2
kind: Stream
# skipped...
status:
  conditions:
    - lastTransitionTime: '2024-08-29T03:14:17.636645001Z'
      message: >-
        failed to connect to nats-servers(nats://nats:4222): dial tcp:
        lookup nats on 10.245.0.10:53: no such host
      reason: Errored
      status: 'False'
      type: Ready
  observedGeneration: 0

@Jarema
Copy link
Member

Jarema commented Aug 30, 2024

We plan to have a prpoer control loop that would make it an ongoing operation instaed of single one.
I think that is what casuses the issue now - it just tries once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Suspected defect such as a bug or regression
Projects
None yet
Development

No branches or pull requests

3 participants