liaoxin01 opened a new pull request, #64630:
URL: https://github.com/apache/doris/pull/64630

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Problem Summary:
   
   When recycling a dropped tablet, empty rowsets may have `num_segments == 0` 
and an empty `resource_id`. The protobuf field can be explicitly set to an 
empty string, so `has_resource_id()` returns true. The recycler then attempts 
to look up an accessor for the empty ID, fails the recycle round, and 
repeatedly leaves the dropped tablet/index metadata behind.
   
   This PR skips object deletion for every rowset with zero segments because it 
has no segment objects to remove. Rowsets with segments still require a 
non-empty resource ID.
   
   ### Release note
   
   Fix cloud recycler failing to remove dropped tablet metadata when an empty 
rowset has no resource ID.
   
   ### Check List (For Author)
   
   - Test
       - [ ] Regression test
       - [x] Unit Test
       - [ ] Manual test
       - [ ] No need to test or manual test.
   
   - Behavior changed:
       - [ ] No.
       - [x] Yes. Empty rowsets are skipped during object deletion because they 
have no segment objects; non-empty rowsets still require a valid resource ID.
   
   - Does this need documentation?
       - [x] No.
       - [ ] Yes.
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label


-- 
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]

Reply via email to