-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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(carddav): don't read after write for address book creation #42102
Conversation
Signed-off-by: Anna Larch <anna@nextcloud.com>
Does this address #41996? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 makes a lot of sense
I'm not sure, but it might help. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a second thought I'm not sure this does help. The INSERT+SELECT is already wrapped in a transaction. A read/write split should still execute both queries on a primary node. Read after write is only problematic outside of transactions.
See nextcloud/groupware#24. Mariadb experts have told me to either
The address book creation does the latter since #34412. Did you see this error on a productive instance? Does it run 25? |
right, this is superfluous then |
Summary
In clustered setups, a read after write will sporadically fail. We have all the data, so we don't need to query the backend again.
Checklist
Screenshots before/after for front-end changesDocumentation (manuals or wiki) has been updated or is not required