GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(notification): replay group-chat reminder idempotency (#845) by Storypapst · Pull Request #846 · OpenResilienceInitiative/ORISO-UserService

Conversation

@Storypapst

@Storypapst Storypapst commented Jul 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Why

The active group-chat reminder scheduler can execute on multiple UserService replicas. Liquibase already creates a unique recipient/deduplication index, but the JPA entity did not declare the same contract, so the normal Spring test schema accepted duplicate reminders.

The red two-instance regression observed two persisted events for one reminder identity.

What

  • align the EventNotification JPA table contract with the existing Liquibase unique index
  • start two independent notification service instances concurrently against shared database state
  • prove exactly one persisted reminder and one live refresh

This replay is intentionally independent and based directly on current pre-dev; it does not require the scheduler-lease stack.

The governing communications target is Matrix as the sole chat system, the ORISO-owned frontend, an ORISO-controlled Element Call / MatrixRTC fork, and LiveKit. Rocket.Chat and Jitsi are removal targets, never fallbacks. This change introduces no Rocket.Chat or Jitsi dependency, configuration, fallback, or schema.

Review

The exact two-file diff was manually reviewed against the existing Liquibase index, JPA null semantics, independent REQUIRES_NEW transactions, the two-thread synchronization, duplicate-key containment, and live-refresh behavior. No blocking finding remains.

GitHub's successful CodeRabbit status is the configured draft skip for pre-dev, not a completed human review. No human review has been submitted.

Validation

Exact head: f05faef721ec36110154e1bac1cb80fe4277ff7f

  • focused red proof: 2 duplicate event rows before the fix
  • focused green proof: 1 event row and 1 live refresh after the fix
  • fresh Java 21 two-instance regression: 1 test, 0 failures/errors/skips
  • 3,373 unit/contract tests: 0 failures, 0 errors, 4 existing skips
  • 841 integration tests across 79 reports: 0 failures, 0 errors, 3 environment skips
  • fresh MariaDB 10.11: 101 Liquibase changesets, Hibernate validation green
  • MariaDB index verified unique on recipient_user_id,deduplication_key
  • 13 fresh Python CI tests passed
  • Java 21 package build, Spotless, and diff checks passed
  • all 12 exact-head GitHub checks passed

Merge-order audit

Exact synthetic merges are clean with #823, #825, #827, #828, #829, #830, #831, #832, #834, #854, #856 and #862.

Runtime boundary

This is source, local, database-contract, and CI proof only. The change is not merged or deployed. After rollout, a bounded runtime check must confirm one stored reminder and one refresh signal for a duplicate scheduler attempt.

No database reset was needed.

Supersedes the group-chat reminder idempotency behavior from historical commit 1d53c7bd.

Closes #845
Refs #543
Refs #757

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Storypapst @claude
fix(notification): prove reminder idempotency (#845)
f05faef
Co-Authored-By: Claude Opus 4.8 <[email protected]>
@Storypapst Storypapst self-assigned this Jul 27, 2026
@Storypapst
Storypapst requested review from Hassan9215, shanzaeimran and shazia-k July 27, 2026 21:50
@coderabbitai

coderabbitai Bot commented Jul 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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: 84dc88cb-63b7-4cff-9cf1-979488a3ff68

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:

  • 🔍 Trigger review
✨ Finishing Touches
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch replay/group-chat-reminder-idempotency-845

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
  • X
  • Mastodon
  • Reddit
  • LinkedIn

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Jul 27, 2026
feat(stability): make UserService replica safety measurable (#543) #757
Closed
Make UserService replica safety and residual state coupling measurable #543
Open
@Storypapst
Storypapst marked this pull request as ready for review July 28, 2026 05:48
@Storypapst Storypapst mentioned this pull request Jul 28, 2026
Prove group-chat reminder idempotency across replicas #845
Closed
5 tasks
@cursor

cursor Bot commented Jul 28, 2026

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Jul 28, 2026
fix(notification): serialize inactive email dispatch (#847) #848
Merged
Serialize inactive-account notification dispatch across replicas #847
Closed
test(appointment): prove cleanup idempotency (#849) #850
Merged
Prove appointment cleanup idempotency on MariaDB #849
Closed
test(group-chat): prove Matrix deactivation serialization #852
Merged
Prove Matrix group-chat deactivation serialization #851
Closed
test(stability): replay zero-quarantine guard on current pre-dev (#768) #829
Merged
shazia-k
shazia-k approved these changes Jul 28, 2026
View reviewed changes
@shazia-k
shazia-k merged commit 97db649 into pre-dev Jul 28, 2026
12 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@shazia-k
shazia-k deleted the replay/group-chat-reminder-idempotency-845 branch July 28, 2026 07:43
@Storypapst Storypapst mentioned this pull request Aug 2, 2026
fix(notifications): route enquiry deep links to sessionPreview, carry roomRef (#846) #943
Merged
4 tasks
shazia-k added a commit that referenced this pull request Aug 4, 2026
@shazia-k
Merge pull request #943 from OpenResilienceInitiative/fix/846-enquiry…
b1aed83
…-deeplinks-params

fix(notifications): route enquiry deep links to sessionPreview, carry roomRef (#846)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@shazia-k shazia-k shazia-k approved these changes
@Hassan9215 Hassan9215 Awaiting requested review from Hassan9215
@shanzaeimran shanzaeimran Awaiting requested review from shanzaeimran

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@Storypapst Storypapst

Labels

None yet

Projects

None yet

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.

2 participants

@Storypapst @shazia-k
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.