Skip to content

Conversation

@hbrunn
Copy link
Member

@hbrunn hbrunn commented Sep 8, 2015

Doing this in a serialized transaction can cause deadlocks, and we don't need serialization here

Copy link
Contributor

Choose a reason for hiding this comment

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

Serialized=True to avoid serialized?

Copy link
Member Author

Choose a reason for hiding this comment

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

@moylop260 thanks so much, I messed up the only thing that was to mess up here...

@hbrunn hbrunn added this to the 8.0 milestone Sep 8, 2015
@pedrobaeza
Copy link
Member

Are you sure you don't need to serialize? How user get correct groups then?

@hbrunn
Copy link
Member Author

hbrunn commented Sep 8, 2015

Using a nonserialized cursor doesn't always help, as the ORM also wants to update the user's write_{uid,date}, which blocks again, we do it in SQL

@hbrunn
Copy link
Member Author

hbrunn commented Sep 8, 2015

@pedrobaeza the worst thing that can happen is to have not all dynamic groups, which will be fixed with the next login

@moylop260
Copy link
Contributor

Is posible add a test case that reproduce the problem?

@hbrunn
Copy link
Member Author

hbrunn commented Sep 11, 2015

difficult, because it's a timing issue with multiple users involved

@moylop260
Copy link
Contributor

👍

1 similar comment
@StefanRijnhart
Copy link
Member

👍

StefanRijnhart added a commit that referenced this pull request Oct 30, 2015
…r_serialized

[FIX] use a nonserialized cursor for updating user groups
@StefanRijnhart StefanRijnhart merged commit 89a6dd7 into OCA:8.0 Oct 30, 2015
SiesslPhillip pushed a commit to grueneerde/OCA-server-tools that referenced this pull request Nov 20, 2024
Syncing from upstream OCA/server-tools (11.0)
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.

6 participants