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

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: None
   
   Problem Summary:
   
   The OceanBase all-in-one image starts Observer, OBProxy, and OBBinlog, but 
it does not execute SQL files mounted at `/root/boot/init.d`. The existing 
healthcheck queries a table created by those SQL files, so the service cannot 
become healthy and initialization cannot progress.
   
   This change separates service readiness from test-data readiness. The main 
service healthcheck verifies the Observer and OBBinlog endpoints, while a 
dedicated init service waits for the main service to become healthy and then 
executes all initialization SQL files in order. The init service reports 
healthy only after the current initialization run completes and the seeded 
table is readable.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test
       - [ ] Regression test
       - [ ] Unit Test
       - [x] Manual test (add detailed scripts or steps below)
           - Verified the rendered Compose configuration with `docker compose 
config --quiet`.
           - Started the real all-in-one image with `docker compose up -d 
--wait`.
           - Verified all four initialization SQL files ran in order.
           - Verified the seeded table contains four rows and `SHOW MASTER 
STATUS` returns a binlog position.
           - Restarted the init service with an existing completion marker and 
verified it reran all SQL files before becoming healthy.
       - [ ] 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:
       - [ ] No.
       - [x] Yes. OceanBase initialization SQL is now executed explicitly after 
the all-in-one service becomes ready.
   
   - 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