Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-10282

We can't assure that the first ZK server is active server in MiniZooKeeperCluster

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.94.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Thanks to HBASE-3052, we're able to run multiple zk servers in minicluster. However, It's confusing to keep the variable activeZKServerIndex as zero and assure the first zk server is always the active one. I think returning the first sever's client port is for testing and it seems that we can directly return the first item of the list. Anyway, the concept of "active" here is not the same as zk's.

      It's confusing when I read the code so I think we should fix it.

        Attachments

          Activity

            People

            • Assignee:
              tobe chendihao
              Reporter:
              tobe chendihao
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: