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: add msg header size to diskqueue MaxMsgSize #672

Merged
merged 1 commit into from
Oct 15, 2015

Conversation

judwhite
Copy link
Contributor

  • purpose: diskqueue was enforcing a maxmsgsize of the whole message
    including header, while protocol enforces maxmsgsize on the body. this
    could lead to successful writes to the memory queue but failed writes
    to the diskqueue, intermittently if the body size was within the
    26 bytes range.
  • channel / topic tests assert configuration is passed correctly to
    diskqueue; it doesn't test PutMessage directly because enforcing msg
    size is the responsibility of protocol.
  • add maxMsgSize to diskqueue writeOne error message.

- purpose: diskqueue was enforcing a maxmsgsize of the whole message
  including header, while protocol enforces maxmsgsize on the body. this
  could lead to successful writes to the memory queue but failed writes
  to the diskqueue, intermittently if the body size was within the
  26 bytes range.
- channel / topic tests assert configuration is passed correctly to
  diskqueue; it doesn't test PutMessage directly because enforcing msg
  size is the responsibility of protocol.
- add maxMsgSize to diskqueue writeOne error message.
@mreiferson
Copy link
Member

LGTM

@mreiferson mreiferson changed the title [RFR] nsqd: add msg header size to diskqueue MaxMsgSize nsqd: add msg header size to diskqueue MaxMsgSize Oct 15, 2015
mreiferson added a commit that referenced this pull request Oct 15, 2015
nsqd: add msg header size to diskqueue MaxMsgSize
@mreiferson mreiferson merged commit 93cfe17 into nsqio:master Oct 15, 2015
@mreiferson mreiferson added the bug label Oct 15, 2015
@judwhite judwhite deleted the feature/nsqd-diskqueue-maxsize branch October 15, 2015 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants