GeezerVison is showing github.com — fix(replica): replay atomic tutorial writes on current pre-dev (#773) by Storypapst · Pull Request #830 · OpenResilienceInitiative/ORISO-UserService
Conversation
Storypapst
commented
Jul 27, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
What changed
- replaces the tutorial-progress read-then-insert race with one MariaDB
ON DUPLICATE KEY UPDATE
- keeps the canonical post-write read inside a small
READ_COMMITTED transaction owner
- serializes first writes per user with a database advisory lock, so replicas creating different scopes cannot exceed the row cap
- hashes the user identifier when deriving the lock name; raw identifiers are not stored as lock names
- keeps existing-scope updates on the lock-free path
- adds real MariaDB contracts for same-scope first-write, different-scope row-cap, and lock-release behavior
- adds a required two-JVM authenticated load/restart proof with shared disposable MariaDB and Redis
Current-base replay
The branch contains current pre-dev at 947cd1baa142cc4ac9360a96f4694be5e932c657. Two conflicts were resolved:
- the MariaDB workflow now runs the tutorial contract together with the already-merged database drift, statistics, Organizer, and group-chat-deactivation contracts
- the identical Java 21 helper retains the executable mode required by the replica runner
The exact current-base diff is 13 files (1,246 insertions, 108 deletions).
Architecture boundary
The sole chat system is Matrix through the ORISO-owned frontend. Calls use an ORISO-controlled Element Call / MatrixRTC fork and LiveKit. The runner and production change contain no Rocket.Chat or Jitsi configuration, dependency, or fallback.
Exact-head verification
Exact head: 391d3ef2ff6cc2f269b60457a8ca728e90396f94
- focused tutorial unit suite: 9 tests, 0 failures/errors/skips
- tutorial controller E2E: 5 tests, 0 failures/errors/skips
- full unit suite: 3,411 tests, 0 failures, 0 errors, 4 existing
pre-dev quarantine skips
- full integration suite: 849 tests, 0 failures, 0 errors, 9 environment-gated skips
- real MariaDB tutorial replica contract on a fresh disposable database: 4 tests, 0 failures/errors/skips
- complete Python CI guards: 35 passed
- Spotless, Python syntax, shell syntax and diff checks passed
- all 12 exact-head GitHub checks are terminal green, including branch/PR builds, Docker validation, both required-integration jobs, both combined MariaDB contracts, Redis, OpenAPI, API diff, and Required PreDev CI
- all disposable MariaDB/Redis containers and both local service processes were removed; no persistent database was reset
Real two-replica proof
- initial phase: 80 concurrent authenticated PUTs plus one GET per replica; 82 operations, 0 failures, 48.80 ms aggregate p95
- restart phase: restart one service process, then 12 PUTs plus one GET per replica; 14 operations, 0 failures, 22.51 ms aggregate p95
- exactly one canonical version-1 database row remained
- no duplicate-key warning was emitted
- the same zero-error and 1,000 ms p95 bounds passed per operation and per replica
Deployment boundary
This PR contains source, local, real two-replica, and exact-head CI verification. It is open, not merged or deployed, and does not by itself authorize replica scale-out.
Supersedes #774
Closes #773
Refs #543, #734
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Jul 27, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Important
Review skipped
Auto reviews are disabled on base/target branches other than the default branch.
Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 9bf71ad2-4648-4cd5-aa76-2e3ac1d72eed
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
✨ Finishing Touches
✨ Simplify code
- Create PR with simplified code
- Commit simplified code in branch
replay/tutorial-atomic-writes-773
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Jul 27, 2026
|
Exact-head evidence for 73c607428a9e6dd1cefd81002dc65a209ac09494:
- 12/12 configured checks terminal green, including both 844-test Required Integration jobs and both real MariaDB/two-replica jobs
- local Required Integration: 79 reports / 844 tests, 0 failures, 0 errors, 7 environment-gated skips
- local real MariaDB tutorial contract: 4 tests, including different-scope row-cap serialization and release-after-rejection
- local two-JVM proof: 82 initial operations, 0 failures, 41.76 ms p95; 14 measured post-restart operations, 0 failures, 19.22 ms p95; one canonical row
- merge-tree clean with perf(admin): replay tenant-safe consultant agency read collapse (#764) #827, fix(observability): replay bounded OTP admin-session retry metric (#766) #828, test(stability): replay zero-quarantine guard on current pre-dev (#768) #829, refactor(identity): replay provider-neutral magic-link sessions (#770) #831, perf(agency): replay bounded outage fallback calls (#785) #832, fix(runtime): remove obsolete MongoDB stack (#855) #856 and feat(observability): bound Keycloak transport and redact traces (#857) #862
- test(load): replay measured two-replica mixed reads (#743) #834 has only an identical-content add/add mode conflict on
scripts/load/ensure-java-21.sh; retain executable mode
CodeRabbit was configured/skipped while the PR was draft and is not human review. Requested human reviewers remain shazia-k, Hassan9215 and shanzaeimran. This is source/CI readiness only; it is not merged or deployed PreDev proof.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Bugbot is not enabled for your account, so this pull request was not reviewed.
Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Jul 28, 2026
…omic-writes-773
# Conflicts:
# .github/workflows/mariadb-contract.yml
# scripts/load/ensure-java-21.sh
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
shazia-k
shazia-k approved these changes
Hassan9215
Awaiting requested review from Hassan9215
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|