Improve HPOS sync of deleted or missing orders #42746
Labels
focus: custom order tables / HPOS
Issues related to High-Performance Order Storage (HPOS) née Custom Order Tables.
priority: high
The issue/PR is high priority—it affects lots of customers substantially, but not critically.
team: Proton
type: bug
The issue is a confirmed bug.
There are a few edge cases or scenarios where our handling of deleted/missing orders isn't entirely correct.
wp_delete_post()
also deletes the HPOS order.Steps to reproduce:
Even though manually modifying the database isn't ideal, it can happen, and a record from either HPOS or posts tables might go missing. We should detect and restore those as part of sync.
Related: p1698440228829329-slack-C05BSQT06S3, p1702394164500349-slack-C0E1AV8T0, p1698945937061699/1698780173.096349-slack-C05BSQT06S3.
The text was updated successfully, but these errors were encountered: