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

State of stream and actual state might be different #45

Open
wallyqs opened this issue Oct 29, 2021 · 3 comments
Open

State of stream and actual state might be different #45

wallyqs opened this issue Oct 29, 2021 · 3 comments

Comments

@wallyqs
Copy link
Member

wallyqs commented Oct 29, 2021

A result of doing kubectl get streams can show:

kubectl get streams
NAME   STATE     STREAM NAME   SUBJECTS
foo    Errored   foo           ["foo","foo.\u003e"]
foo2   Errored   foo2          ["foo2","foo2.\u003e"]
foo3   Created   foo3          ["foo3","foo3.\u003e"]

Although there is no issue with the streams themselves:

nats stream ls -s nats://nats:4222 --tlsca nack105163165/default/a/ca.c...  Waldemars-Air-2: Fri Oct 29 11:26:23 2021

Streams:

        foo
        foo2
        foo3

@wallyqs
Copy link
Member Author

wallyqs commented Oct 29, 2021

Also need to encode it to HTML maybe to avoid entities in the subjects when using wildcards?

@chris13524
Copy link

chris13524 commented Nov 16, 2022

Sounds similar to several scenarios I encountered. E.g. JetStream was not enabled so Stream CRD is now permanently errored even after JetStream is enabled. Seems I have to delete and re-create the Stream CRD in order to fix. I wish the operator was able to recover from Errored states automatically.

@AntPAllen
Copy link

Yeah, we are also experiencing issues where state in the JS cluster isn't reflected back to the CR's. Say for example we define a stream and several consumers of that stream, if the stream is deleted, the consumers still show in k8s as being ok. Ideally some kind of continuous reconciliation should be in place to make sure that what is defined in the CR is what is in JS, or the status updated accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants