-
Notifications
You must be signed in to change notification settings - Fork 3
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
Investigate and fix data integrity issues in production due to deadlock bug #708
Comments
14.02.2025 - Use case to investigate Friday 14.02.2025 |
Friday 14.02.2025 In the Altinn Notifications system, the client responsible for sending SMS messages communicates with LinkMobility for message delivery. If a successful response is not received from LinkMobility, the client distinguishes the failure mode: it returns a status of "Failed_InvalidRecipient" if the response begins with "Invalid RCV," and "Failed" for all other cases. In the last scenario, the sending service assigns an empty string as the gateway reference. Simultaneously, the API that processes delivery reports records this empty string directly in the database. Consequently, whenever a delivery fails, the corresponding database record shows an empty gateway reference. Production data has identified a single instance of a failed delivery with this characteristic, suggesting that a script should be executed to update this record to a Moreover, the endpoint responsible for updating the delivery status for each SMS uses the empty string as the gateway reference and employs a query with an Notes
Solution
Suggestion
|
Description
A previously identified bug in the
SmsNotificationRepository.UpdateSendStatus
function caused deadlocks, impacting the Altinn Notifications service. This bug resulted in unintended status updates of SMS orders in the database due to incorrect matching logic in update queries.We need to investigate the data in production to determine if it has been affected and, if so, develop a strategy to correct any incorrect data.
Investigation
References
Actions
The text was updated successfully, but these errors were encountered: