Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(userstatus): catch unique constraint violation #42805

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

miaulalala
Copy link
Contributor

@miaulalala miaulalala commented Jan 15, 2024

Summary

Due to how we have our read/write commit set up, sometimes a different process writes to the DB but we don't read it when running a SELECT. We can therefore ignore the Unique Constraint Violation and drop the insert completely.

TODO

  • ...

Checklist

@miaulalala miaulalala self-assigned this Jan 15, 2024
@miaulalala miaulalala requested review from ArtificialOwl, blizzz and Fenn-CS and removed request for a team January 15, 2024 14:32
@miaulalala
Copy link
Contributor Author

/backport to stable28

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpicks, otherwise 👍

@miaulalala miaulalala force-pushed the fix/42625/unique-constrain-violation-user-status branch from ec04660 to 020c8bf Compare January 16, 2024 11:06
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😎

@miaulalala
Copy link
Contributor Author

Failing test is OCA\Files_External\Tests\Storage\SmbTest::testNotifyGetChanges (unrelated).

@blizzz can I haz force merge possibly?

Signed-off-by: Anna Larch <anna@nextcloud.com>
@miaulalala miaulalala force-pushed the fix/42625/unique-constrain-violation-user-status branch from 020c8bf to 02d077b Compare January 16, 2024 14:38
@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jan 16, 2024
@blizzz blizzz merged commit dfb9cd8 into master Jan 16, 2024
50 checks passed
@blizzz blizzz deleted the fix/42625/unique-constrain-violation-user-status branch January 16, 2024 18:14
@blizzz blizzz mentioned this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish 28-feedback bug feature: status
Projects
None yet
3 participants