[deviceauth] possible race condition when decommissioning device

Description

The deviceauth service synchronizes device data with inventory.

The data synchronization is done asynchronously.

The decommissioning of the device is also done by asynchronous job.

It is possible to have a race condition where one job is removing the device from some services and the other job is adding it back. The end result can be that the device will be present in the inventory, but not in the deviceauth, which is wrong by itself, but it’s also causing some other issues - e.g. it impossible to decommission the device.

Affects versions

None

Environment

None

Activity

Show:

Fabio TranchitellaJune 6, 2023 at 1:11 PM

Cherry pick to 3.3 and 3.4

Krzysztof JaśkiewiczJune 2, 2023 at 11:20 AM

PR:

Fixed

Details

Assignee

Reporter

Labels

Story Points

Remaining Story Points

0

Priority

Days in progress

0

Fix versions

Sprint

Backlog

yes

Zendesk Support

Checklist

Created June 2, 2023 at 9:55 AM
Updated July 4, 2023 at 7:37 AM
Resolved July 4, 2023 at 7:37 AM