wyxxxcat opened a new pull request, #68552: URL: https://github.com/apache/doris/pull/68552
### What problem does this PR solve? Problem Summary: When recycling a versioned tablet, the ref_count > 1 classification path decremented the rowset reference count without removing its versioned metadata. If subsequent cleanup failed, a later round could read the same metadata and release the reference again, potentially deleting data still used by another reference. Remove the versioned rowset metadata in the same transaction as the reference count decrement. Add a unit test covering shared load and compact rowsets, an injected deletion failure, and a retry with a fresh recycler. ### Release note Prevent premature deletion of shared rowset data when tablet recycling is retried after a failure. ### Check List (For Author) - Test: Unit test added; not run. Build and formatting checks not run. - Behavior changed: Yes. Shared rowset metadata is removed atomically with its reference count decrement to prevent repeated dereferencing. -- 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]
