[
https://issues.apache.org/jira/browse/TAJO-1506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jihun Kang updated TAJO-1506:
-----------------------------
Attachment: TAJO-1506_1.patch
> WorkerConnectionInfo::id field may be not unique, but its uniqueness is
> assumed throughout codes.
> -------------------------------------------------------------------------------------------------
>
> Key: TAJO-1506
> URL: https://issues.apache.org/jira/browse/TAJO-1506
> Project: Tajo
> Issue Type: Improvement
> Components: query master, worker
> Reporter: Hyunsik Choi
> Assignee: Jihun Kang
> Fix For: 0.11.0
>
> Attachments: TAJO-1506.patch, TAJO-1506_1.patch
>
>
> WorkerConnectionInfo::id is a integer value. It is generated in Worker by a
> hashCode as follows:
> {code}
> public WorkerConnectionInfo(String host, int peerRpcPort, int pullServerPort,
> int clientPort,
> int queryMasterPort, int httpInfoPort) {
> ...
> this.queryMasterPort = queryMasterPort;
> this.httpInfoPort = httpInfoPort;
> this.id = hashCode();
> {code}
> Fundamentally, it uses hashCode method, so there are possibility to cause
> duplicate integer value. But, all codes assume its uniqueness. It is a
> potential problem.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)