luizotavio32 opened a new pull request, #45152: URL: https://github.com/apache/superset/pull/45152
### SUMMARY Backport of #45102 to 6.2. On 6.2, bursts of 3 or more identical permalink requests for the same dashboard can still return 500 on MySQL. Each request that loses the race re-reads the winner's row with an exclusive lock while already holding a shared lock on it, so the losers wait on each other and MySQL aborts one with a deadlock. This backport makes that re-read take a shared lock instead. The distributed-lock release and report-config changes from the original PR are left out, since that code doesn't exist on 6.2. ### TESTING INSTRUCTIONS Unit tests from the original PR are included. ### ADDITIONAL INFORMATION - [ ] Has associated issue: - [ ] Required feature flags: - [ ] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [ ] Introduces new feature or API - [ ] Removes existing feature or API 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
