Duplicate order creation on race condition.

Created on 17 April 2020, about 4 years ago
Updated 3 June 2024, 25 days ago

If race condition appears and RecurringOrderManager::renewOrder is executed then duplicated order will be created.
It may happen if advancedqueue executed job item in the same time from cron, automated cron or user paid via UI.
Suggestions:
- Lock renewOrder by subscription id, prevent the same order manipulation in parallel
- Check if order for the next billing period already exists

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇷🇺Russia vladimir_kriukov

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024