Skip to content

feat(store): enforce single event-store writer with renewable lease - #406

Draft
daniel-mader wants to merge 1 commit into
feat/in-memory-projectionsfrom
feat/event-store-writer-lease
Draft

daniel-mader wants to merge 1 commit into
feat/in-memory-projectionsfrom
feat/event-store-writer-lease

Conversation

@daniel-mader

Copy link
Copy Markdown
Contributor

Description of change

Only a single writer to the event store is allowed at any time.

Links to any relevant issues

Be sure to reference any related issues by adding fixes issue #.

How the change has been tested

Describe the tests that you ran to verify your changes.
Make sure to provide instructions for the maintainer as well as any relevant configurations.

Definition of Done checklist

Add an x to the boxes that are relevant to your changes.

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have successfully tested this change in a docker environment

@daniel-mader daniel-mader self-assigned this Sep 16, 2026
@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@daniel-mader
daniel-mader added this pull request to stack #405 September 16, 2026 20:45
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 2.06659% with 853 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
agent_store/src/mongodb_lease.rs 2.61% 521 Missing ⚠️
agent_store/src/postgres_lease.rs 1.36% 288 Missing ⚠️
agent_store/src/postgres.rs 0.00% 19 Missing ⚠️
agent_store/src/mongodb.rs 0.00% 13 Missing ⚠️
agent_application/src/lib.rs 0.00% 12 Missing ⚠️
Files with missing lines Coverage Δ
agent_store/src/lib.rs 87.17% <ø> (ø)
agent_application/src/lib.rs 8.85% <0.00%> (-0.24%) ⬇️
agent_store/src/mongodb.rs 0.00% <0.00%> (ø)
agent_store/src/postgres.rs 0.00% <0.00%> (ø)
agent_store/src/postgres_lease.rs 1.36% <1.36%> (ø)
agent_store/src/mongodb_lease.rs 2.61% <2.61%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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