[CELEBORN-1615] Start the http server after all handlers added
What changes were proposed in this pull request?
Start the http server after all handlers added.
Why are the changes needed?
Do not expose the RESTful server before all handlers initialized.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Existing UT.
After some digging, this PR might not find the root cause. The master class is a subclass of the Service class.
The master object creates a master instance and calls its initialize method.
Master instance calls its superclass method of initialize.
HttpService calls its superclass method of initialize.
Initialize method in service.
Those initialization methods are invoked in the same thread.
We should find out the root cause and fix this problem.
Hi @waitinfuture
I have changed the PR description and title.
Just start to expose the RESTful server after all handlers initialization finished.