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

   ### What problem does this PR solve?
   
   Issue Number: N/A
   
   Related PR: #63886
   
   Problem Summary:
   
   `test_compaction_profile_action` queried `/api/compaction/profile` on the 
first backend returned by `SHOW BACKENDS`, independently of the target tablet 
placement. The profile API reads the selected BE's process-local compaction 
tracker, so the tablet filter returned an empty list whenever that backend was 
the one BE outside the target tablet's three-replica set.
   
   The branch-4.1 P0 history shows 13 failures in 32 runs. In every failure, 
the queried first backend was outside the target replica set; in every passing 
run, it hosted a target replica.
   
   This change derives the profile endpoint from the `BackendId` in the same 
`SHOW TABLETS` row as the selected `TabletId`. The case therefore queries a 
replica that participates in `trigger_and_wait_compaction` while preserving all 
existing API assertions.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test <!-- At least one of them must be included. -->
       - [ ] Regression test
       - [ ] Unit Test
       - [x] Manual test (add detailed scripts or steps below)
           - `mvn package -DskipTests -Dmaven.javadoc.skip=true` in 
`regression-test/framework`.
           - Verified the shaded regression-test jar with `ZipFile.testzip()`.
           - Parsed the updated suite with `GroovyShell.parse()`.
           - Runtime single-case validation is pending because the authorized 
test host timed out on SSH twice; no runtime pass is claimed here.
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason <!-- Add your reason?  -->
   
   - Behavior changed:
       - [x] No. The product API behavior is unchanged; this only routes the 
regression assertion to a target-tablet replica.
       - [ ] Yes. <!-- Explain the behavior change -->
   
   - Does this need documentation?
       - [x] No.
       - [ ] Yes. <!-- Add document PR link here. eg: 
https://github.com/apache/doris-website/pull/1214 -->
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label <!-- Add branch pick label that this PR should 
merge into -->
   


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