zhijiang created FLINK-12571:
--------------------------------
Summary: Make NetworkEnvironment#start() return the binded data port
Key: FLINK-12571
URL:
https://issues.apache.org/jira/browse/FLINK-12571 Project: Flink
Issue Type: Sub-task
Components: Runtime / Network
Reporter: zhijiang
Assignee: zhijiang
Currently `NetworkEnvironment#getConnectionManager()` is mainly used for `TaskManagerServices` for getting binded data port from `NettyConnectionManager`. Considering the `ConnectionManager` as an internal component of `NetworkEnvironment`, it should not be exposed for outsides. For other ShuffleService implementations, it might have no `ConnectionManager` at all.
We could make `ShuffleService#start()` return the binded data port to replace the `getConnectionManager`. For the `LocalConnectionManager` or other shuffle service implementations which have no binded data port, it could return a simple default value and it would have no harm.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)