* modified according to code review.
* changed error handling.
* changed back previous change in index_server_manager.cpp & partition_manager.cpp