Skip to content

fix: improve ReadBatch flush error handling#16

Merged
mattisonchao merged 1 commit intomainfrom
pr/08-readbatch-flush
Mar 21, 2026
Merged

fix: improve ReadBatch flush error handling#16
mattisonchao merged 1 commit intomainfrom
pr/08-readbatch-flush

Conversation

@mattisonchao
Copy link
Copy Markdown
Member

Summary

  • Improve error handling in ReadBatch flush to properly propagate errors
  • Avoid silent failures when read batch operations fail

Test plan

  • CI passes (fmt, clippy, build, tests)

- Replace option.is_none() + unwrap() with match pattern
- Return ShardLeaderNotFound error to inflight operations instead of
  silently dropping them when shard leader is not found

Signed-off-by: mattisonchao <mattisonchao@gmail.com>
@mattisonchao mattisonchao merged commit bfda6c6 into main Mar 21, 2026
2 checks passed
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.

1 participant