-
Notifications
You must be signed in to change notification settings - Fork 99
Closed
Description
While replacing groups the tool is trying to attempt to delete groups that were already deleted. It seems there is a race condition in the _replace_group method.
Error:
07:26 INFO [d.l.ucx.workspace_access.groups] Deleting the workspace-level group idm2bcd_dssi03prod_smg_super with id 439677076072037 07:26 DEBUG [d.s] DELETE /api/2.0/preview/scim/v2/Groups/439677076072037 < 404 Not Found < { < "detail": "Group with id 439677076072037 not found.", < "schemas": [ < "urn:ietf:params:scim:api:messages:2.0:Error" < ], < "status": "404" < }
the following code in the _replace_group is not thread-safe:
self._workspace_groups = [g for g in self._workspace_groups if g.id != ws_group.id]