Currently the data set is created with symbolic link, which is much faster than the original copy way. In this case, it is possible that the old Solr process is not killed (it takes time for the old Solr to release the port) before the new Solr process gets started, and the new Solr will have problem occupying the same port.
This PR fixes this problem by waiting for the process to end. It has been tested locally.
Currently the data set is created with symbolic link, which is much faster than the original copy way. In this case, it is possible that the old Solr process is not killed (it takes time for the old Solr to release the port) before the new Solr process gets started, and the new Solr will have problem occupying the same port.
This PR fixes this problem by waiting for the process to end. It has been tested locally.