Skip to content

Url Rewrites are lost if an exception thrown or deadlock during regeneration #23429

Closed
@ilnytskyi

Description

@ilnytskyi

Magento 2.3.x probably 2.2 and 2.1 as well

Preconditions (*)

In some cases when the url_rewrite has a lock and e.g. after the product saving - M2 regenerates URL and leaves the product without readable urls and affected URL lead to 404 page since they had not been generated again.

Steps to reproduce (*)

  1. Save product to trigger url regenerate
  2. Simulate lock on url_rewrite table
  3. See an exception
  4. Clean cache and go to product page by known URL
  5. See 404 page

Expected result (*)

  1. URL leads to correct product page

Actual result (*)

  1. URL leads to 404 page

Metadata

Metadata

Assignees

Labels

Component: UrlRewriteFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions