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

nsqlookupd: inactive #ephemeral topics #1101

Closed
fredhuang9Street opened this issue Oct 20, 2018 · 7 comments
Closed

nsqlookupd: inactive #ephemeral topics #1101

fredhuang9Street opened this issue Oct 20, 2018 · 7 comments
Labels

Comments

@fredhuang9Street
Copy link

Hello,

I would like to ask this problem that it shows "Below is a tree of Topics/Channels that are currently inactive (i.e. not produced on any nsqd in the cluster but are present in the lookup data)" in the nsqadmin lookup page when I use ephemeral topic or I delete the topic manually.

I developed by golang, and use nsq.NewConsumer to create a consumer, and then connectToNSQD.

I was wondering if I use the wrong function so that it shows the alert in lookup page, and how should I do to avoid this warning?

Thank you very much

Fred

image

@ploxiln
Copy link
Member

ploxiln commented Oct 20, 2018

I think this is an issue with ephemeral topics - they'll end up in nsqlookupd, and later be automatically cleaned up from nsqd, but remain in nsqlookupd. It's not a huge problem, but I guess we should try to think of what we can do about it. This would be an nsqd/nsqlookupd issue btw.

@mreiferson
Copy link
Member

I've never observed this issue and use #ephemeral topics/channels extensively — @fredhuang9Street can you provide any more information that might help us debug this? e.g. your NSQ cluster configuration and topology, nsqd, nsqlookupd, and nsqadmin logs?

@mreiferson mreiferson transferred this issue from nsqio/go-nsq Nov 11, 2018
@mreiferson mreiferson changed the title nsqlookupd Host shows "Topics/Channels that are currently inactive" nsqlookupd: #ephemeral topics inactive Nov 11, 2018
@mreiferson mreiferson added the bug label Nov 11, 2018
@mreiferson mreiferson changed the title nsqlookupd: #ephemeral topics inactive nsqlookupd: inactive #ephemeral topics Nov 11, 2018
@fredhuang9Street
Copy link
Author

Hello,

I developed by golang. and there is the part of my code below,

image

after connect to nsqd,
this is the streams page.
image

and I disconnect it by the following code
image

this is the stream page after disconnection.
image

this is the lookup page after disconnection.
image

this is the log after disconnection
image

Please tell me if you need more information

Thanks

@mreiferson
Copy link
Member

thanks! can you provide the command line arguments (or configuration file) to nsqd and nsqadmin?

It looks like you're connecting nsqadmin (and consumer) directly to nsqd, I'd like to confirm that.

@fredhuang9Street
Copy link
Author

fredhuang9Street commented Nov 13, 2018

Hello,

This is the way I start nsq service.
image

and it connects to 192.168.192.145:4150 which is the nsq server address directly.

I'm not sure what information you need. Could you kindly tell me the exact way or where can I find the information for you since I'm not really familiar with it.

you mentioned that you didn't observe this issue. I would like to know is the way I did is wrong?
or how can I avoid this issue?

Thanks,

@ploxiln
Copy link
Member

ploxiln commented Nov 13, 2018

The --lookupd-tcp-address=0.0.0.0:4160 is odd and not recommended - when listening, "0.0.0.0" means "listen on all interfaces/addresses". When connecting, I think it is just wrong, you probably want "127.0.0.1:4160"

@mreiferson
Copy link
Member

fixed in #1116, thanks for the report!

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

No branches or pull requests

3 participants