| 3592 | } |
| 3593 | |
| 3594 | void ImpalaServer::Join() { |
| 3595 | // The server shuts down by exiting the process, so just block here until the process |
| 3596 | // exits. |
| 3597 | exec_env_->rpc_mgr()->Join(); |
| 3598 | |
| 3599 | if (FLAGS_is_coordinator) { |
| 3600 | beeswax_server_->Join(); |
| 3601 | hs2_server_->Join(); |
| 3602 | beeswax_server_.reset(); |
| 3603 | hs2_server_.reset(); |
| 3604 | } |
| 3605 | } |
| 3606 | |
| 3607 | bool ImpalaServer::AreServicesReady() const { |
| 3608 | return services_started_.load() && exec_env_->IsStatestoreRegistrationCompleted(); |