Skip to content

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 nfebe 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?

@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
@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
@jendrikw
Copy link

jendrikw commented Mar 9, 2025

Still happens in 30.0.6.2

@ChristophWurst
Copy link
Member

@jendrikw thank you for the feedback. What you are reporting with #42625 (comment) is not the same code path.

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

Development

Successfully merging this pull request may close these issues.

[Bug]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'userid' for key 'user_status_uid_ix'

5 participants