HuangFru opened a new issue, #3803:
URL: https://github.com/apache/amoro/issues/3803

   ### Search before asking
   
   - [x] I have searched in the 
[issues](https://github.com/apache/amoro/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### What would you like to be improved?
   
   When AMS is starting, `tableExplorerScheduler` starts with a 0 initial delay 
even before the initialized flag is marked as complete:
   <img width="1870" height="960" alt="Image" 
src="https://github.com/user-attachments/assets/4dc1cd6f-9933-4b14-bcad-d9035b160d00";
 />
   
   However, `exploreTableRuntimes`—the task scheduled by 
`tableExplorerScheduler`—will check whether the initialized flag is done:
   <img width="1372" height="318" alt="Image" 
src="https://github.com/user-attachments/assets/4b1abcb7-497d-4519-88c8-bda79fc4dcf7";
 />
   At this point, there is a risk that the initialized flag may not have been 
set yet, which will cause an exception to be thrown. This, in turn, will result 
in subsequent scheduled tasks of `tableExplorerScheduler` no longer executing.
   
   ### How should we improve?
   
   Complete `initialized` before starting `tableExplorerScheduler`.
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Subtasks
   
   _No response_
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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

Reply via email to