Skip to content

Conversation

@gomoripeti
Copy link
Contributor

Proposed Changes

Sorry for providing a PR instead of asking the question: Is that correct that "The value close is never stored in the file handle ets since commit 32816c0."?

I found this comment while investigating #14181. As far as I can see the value can never be close so it cannot be the cause of the bug.

During the same investigation I got another question. Comment says (https://github.com/rabbitmq/rabbitmq-server/blob/v4.1.2/deps/rabbit/src/rabbit_msg_store.erl#L520-L522)

Get index for all Msgids in File.
It's possible that we get no results here if compaction
was in progress. That's OK: we will try again with those
MsgIds to get them from the new file.

But compaction (as opposed to combination) doesn't create new files. Only moves messages within the same file. How can a message be moved to a "new file" (assuming it has positive refcount)?

Types of Changes

What types of changes does your code introduce to this project?
Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes issue #NNNN)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause an observable behavior change in existing systems)
  • Documentation improvements (corrections, new content, etc)
  • Cosmetic change (whitespace, formatting, etc)
  • Build system and/or CI

Checklist

Put an x in the boxes that apply.
You can also fill these out after creating the PR.
If you're unsure about any of them, don't hesitate to ask on the mailing list.
We're here to help!
This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING.md document
  • I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
  • I have added tests that prove my fix is effective or that my feature works
  • All tests pass locally with my changes
  • If relevant, I have added necessary documentation to https://github.com/rabbitmq/rabbitmq-website
  • If relevant, I have added this change to the first version(s) in release-notes that I expect to introduce it

Further Comments

The value `close` is never stored in the file handle ets since commit 32816c0.
@michaelklishin michaelklishin added this to the 4.2.0 milestone Jul 4, 2025
@michaelklishin
Copy link
Collaborator

@lhoguin any objections from you?

@lhoguin
Copy link
Contributor

lhoguin commented Jul 21, 2025

But compaction (as opposed to combination) doesn't create new files. Only moves messages within the same file. How can a message be moved to a "new file" (assuming it has positive refcount)?

Not only that but compaction now doesn't prevent reading from the file at all so we should not reach the [] clause anymore.

@michaelklishin michaelklishin merged commit 6008e03 into rabbitmq:main Jul 21, 2025
279 of 283 checks passed
michaelklishin added a commit that referenced this pull request Jul 21, 2025
Very minor: Remove outdated comment from rabbit_msg_store (backport #14190)
@gomoripeti gomoripeti deleted the msg_store_comment branch August 28, 2025 11:07
lukebakken pushed a commit to amazon-mq/upstream-to-rabbitmq-server that referenced this pull request Oct 30, 2025
Very minor: Remove outdated comment from rabbit_msg_store

(cherry picked from commit 6008e03)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants