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

   ### Background
   
   Two FE unit tests assert the outcome of asynchronous refresh work.
   Their assertions previously ran after fixed sleeps.
   
   ### What problem does this PR solve?
   
   Issue Number: None
   Related PR: None
   PR Type: Test
   
   Problem Summary:
   
   Make refresh tests independent of timing on busy runners while retaining
   coverage of scheduled catalog refresh and async cache refresh semantics.
   
   ### Details
   
   - **Failure:** RefreshCatalogTest sees four databases before the next
     refresh, and CacheFactoryTest sees only the initial load.
   - **Cause:** A fixed delay does not establish that the scheduled or
     asynchronous work completed.
   - **Stability evidence:** Wait for the catalog to expose db3, and control
     async load completion using futures. Distinct values verify that reads
     retain the old entry during refresh and publish the new entry after it.
   
   ### Testing
   
   - git diff --check passed.
   - On Fedora, the Doris FE UT runner passed all eight tests in
     CacheFactoryTest and RefreshCatalogTest.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Behavior changed: No
   - Does this need documentation: No
   - Pre-submission status: Ready
   
   ### AI Disclosure
   
   - Tool: OpenAI Codex (GPT-6)
   - Generated: test changes and PR description
   - Human review: Not yet performed.
   
   


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