(2.14) [IMPROVED] Rollup allowed if at DiscardNewPerSubject limit#7974
(2.14) [IMPROVED] Rollup allowed if at DiscardNewPerSubject limit#7974MauriceVanVeen wants to merge 1 commit intomainfrom
Conversation
|
Claude finished @MauriceVanVeen's task in 5m 26s —— View job PR Review
SummaryThe overall approach is correct: allowing rollup messages through the The AllowRollup guard is checked before the store-level DiscardNewPer bypass in all call paths:
Test coverage is good — R1/R3 × file/memory, rollup-sub and rollup-all both verified. One bug:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bf6aea71a1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-authored-by: Charles Duffy <charles@cmdzero.io> Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
bf6aea7 to
ac4a491
Compare
|
@claude, brief re-review please. |
|
Claude finished @MauriceVanVeen's task in 54s —— View job Re-review
SummaryThe prior feedback has been fully addressed. All three sites now use
This is consistent with No further issues found. The overall approach (allowing rollup messages through the DiscardNewPerSubject gate), the AllowRollup guard ordering, and the test coverage (R1/R3 × File/Memory, both rollup-sub and rollup-all) all look good. LGTM. |
When a stream is configured with
DiscardNewPerSubjectand the per-subject message limit is reached,Nats-Rollupmessages were rejected before being stored. Even though the rollup would result in clearing up space below theDiscardNewPerSubjectlimit. This PR improves this by allowing rollups to go through even if at this limit.Co-authored-by: Charles Duffy charles@cmdzero.io
Signed-off-by: Maurice van Veen github@mauricevanveen.com