Skip to content

(2.12) Atomic batch: remove TODO comments#7386

Merged
neilalexander merged 1 commit intomainfrom
maurice/rm-todo
Oct 2, 2025
Merged

(2.12) Atomic batch: remove TODO comments#7386
neilalexander merged 1 commit intomainfrom
maurice/rm-todo

Conversation

@MauriceVanVeen
Copy link
Copy Markdown
Member

Some TODOs were left around while implementing atomic batch that can now be removed.

One important change is that we should never try to revert state based on a failed proposal. It's brittle anyhow as it can only error directly if the server is not Raft leader anymore, but the proposal can still fail anyhow. So, just making it consistent and not rolling back only partially under some conditions, always commit to doing the accounting properly.

Signed-off-by: Maurice van Veen github@mauricevanveen.com

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
@MauriceVanVeen MauriceVanVeen requested a review from a team as a code owner October 2, 2025 10:34
Copy link
Copy Markdown
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@neilalexander neilalexander merged commit 804680a into main Oct 2, 2025
67 of 70 checks passed
@neilalexander neilalexander deleted the maurice/rm-todo branch October 2, 2025 15:24
neilalexander added a commit that referenced this pull request Oct 3, 2025
Includes the following:

- #7374
- #7373
- #7377
- #7380
- #7382
- #7381
- #7364
- #7384
- #7385
- #7388
- #7386
- #7391
- #7242

Signed-off-by: Neil Twigg <neil@nats.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants