Hyunsik Choi created TAJO-1506:
----------------------------------

             Summary: 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
             Fix For: 0.11.0


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)

Reply via email to