Skip to content

Handle duplicate Mnesia push sessions#4586

Merged
badlop merged 1 commit into
processone:masterfrom
catap:mnesia-publish-duplicates
Jul 9, 2026
Merged

Handle duplicate Mnesia push sessions#4586
badlop merged 1 commit into
processone:masterfrom
catap:mnesia-publish-duplicates

Conversation

@catap

@catap catap commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Delete all existing push sessions for the same account, service, and node before storing a replacement; make lookup tolerate legacy duplicate rows by selecting the newest session.

Fixes #4584

@p1bot

p1bot commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

Hi @catap, many thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes.

@p1bot p1bot added the cla-missing Contributor needs to sign Contribution License Agreement label Jul 5, 2026
@catap

catap commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

I will signed it, but changes are quite trivial and I think it can be called "public domain".

@badlop

badlop commented Jul 9, 2026

Copy link
Copy Markdown
Member

There was a problem when building installers, I've fixed that now on master branch. Can you rebase your PR against master?

Delete all existing push sessions for the same account, service, and
node before storing a replacement; make lookup tolerate legacy duplicate
rows by selecting the newest session.

Fixes processone#4584
@catap catap force-pushed the mnesia-publish-duplicates branch from f4fec37 to 9a70685 Compare July 9, 2026 11:05
@catap

catap commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

@badlop here it is. FWI I run it on my setup for a few days, and haven't see any issue anymore.

@badlop badlop added this to the ejabberd 26.xx milestone Jul 9, 2026
@badlop badlop merged commit 2c8bbe5 into processone:master Jul 9, 2026
19 checks passed
@p1bot

p1bot commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

You did it @catap!

Thank you for signing the ProcessOne Contribution License Agreement.

We will have a look at your contribution!

@p1bot p1bot removed the cla-missing Contributor needs to sign Contribution License Agreement label Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

** exception error: no case clause matching

3 participants