Uploaded image for project: 'Tajo (Retired)'
  1. Tajo (Retired)
  2. TAJO-1506

WorkerConnectionInfo::id field may be not unique, but its uniqueness is assumed throughout codes.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • QueryMaster, Worker
    • None

    Description

      WorkerConnectionInfo::id is a integer value. It is generated in Worker by a hashCode as follows:

      public WorkerConnectionInfo(String host, int peerRpcPort, int pullServerPort, int clientPort,
                                    int queryMasterPort, int httpInfoPort) {
      ...
          this.queryMasterPort = queryMasterPort;
          this.httpInfoPort = httpInfoPort;
          this.id = hashCode();
      

      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.

      Attachments

        1. TAJO-1506_1.patch
          11 kB
          Jihun Kang
        2. TAJO-1506_2.patch
          15 kB
          Jihun Kang
        3. TAJO-1506_3.patch
          16 kB
          Jihun Kang
        4. TAJO-1506_4.patch
          15 kB
          Jihun Kang
        5. TAJO-1506.patch
          8 kB
          Jihun Kang

        Activity

          People

            ykrips Jihun Kang
            hyunsik Hyunsik Choi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: