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

   ### What problem does this PR solve?
   
   Issue Number: N/A
   
   Related PR: N/A
   
   Problem Summary:
   
   `ColocationGroupProcDirTest` runs with a local mock FE and a background 
heartbeat daemon. Four cloud proc tests temporarily changed the process-wide 
`Config.deploy_mode` to `cloud`. If heartbeat ran during that window, it could 
enter cloud-only backend handling against the local `SystemInfoService`, fail 
the heartbeat, and persist the only mock backend as dead. Later tests then 
failed during table setup with zero available backends, before reaching their 
proc assertions.
   
   Replace the process-wide configuration changes with thread-scoped static 
mocks of `Config.isCloudMode()`. The proc call under test still exercises the 
cloud branch, while the heartbeat thread continues to observe local mode.
   
   Classification: case bug. Product proc behavior and assertions are unchanged.
   
   Validation:
   
   - `git diff --check`
   - Full FE UT validation will run through `run buildall` on this PR.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test
       - [ ] Regression test
       - [x] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] 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
   
   - Behavior changed:
       - [x] No.
       - [ ] Yes.
   
   - 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