incubator-pegasus
incubator-pegasus copied to clipboard
feat(FQDN): Replace rpc_address to host_prot for function & Add host_port on thrift struct
issue: https://github.com/apache/incubator-pegasus/issues/1659
1.Replace type rpc_address to host_port on class variables. Modify the parameter types of the function if necessary.
2.Add type 'host_port' member to thrift struct which have 'rpc_address'.
Some changes can be separated to another patch, for example, the changes in:
- src/common/json_helper.h and its tests.
- src/runtime/rpc/rpc_host_port.h (add some tests as well)
TODO (in next patches):
- [x] Just pass host_post parameter, don't pass rpc_address parameters for
generate_balancer_requestandnew_proposal_action - [x] Change the
-rparameter to resolve hostname to IP in Cpp-shell. - [x] Use hostname for backup in
get_remote_chkpt_dirname()