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

nsqd: --mem-queue-size=0 still creates memory channel #1160

Closed
bitpeng opened this issue Jun 5, 2019 · 2 comments
Closed

nsqd: --mem-queue-size=0 still creates memory channel #1160

bitpeng opened this issue Jun 5, 2019 · 2 comments
Labels

Comments

@bitpeng
Copy link
Contributor

bitpeng commented Jun 5, 2019

generally, we intend to save all the message in the disk-queue when set -mem-queue-size=0 option, but make(chan *Message, 0) just create a unbuffered chan which can also send/receive message as well.
the follow figure is my experiment test...

image

is it a bug?

@mreiferson
Copy link
Member

It was never intended to be a strict guarantee, so I don't personally consider it a bug, but I would be willing to consider the change in #1159.

Let's continue the discussion there? Thanks!

@mreiferson mreiferson changed the title is it a bug when set -mem-queue-size=0 nsqd: --mem-queue-size=0 still creates memory channel Jun 5, 2019
@bitpeng
Copy link
Contributor Author

bitpeng commented Jun 12, 2019

Thanks for your warmly, patient answer, but in my opinion it should give the user an option to have a chance to save all the messages on the disk-queue. What about you? @mreiferson

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

2 participants