phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshelser <>
Subject [GitHub] phoenix pull request #236: PHOENIX-3654 Load Balancer for thin client
Date Fri, 16 Jun 2017 18:44:28 GMT
Github user joshelser commented on a diff in the pull request:
    --- Diff: phoenix-queryserver/src/main/java/org/apache/phoenix/queryserver/server/
    @@ -233,16 +240,29 @@ public int run(String[] args) throws Exception {
           // Build and start the HttpServer
           server =;
    +      registerToServiceProvider(hostname);
           return 0;
         } catch (Throwable t) {
           LOG.fatal("Unrecoverable service error. Shutting down.", t);
           this.t = t;
           return -1;
    +    } finally {
    +      deRegister();
    +  private void registerToServiceProvider(String hostName) throws Exception {
    +      PqsZookeeperConf pqsZookeeperConf = new PqsZookeeperConfImpl(getConf());
    --- End diff --
    Move any IT exercising loadbalancer functionality to the loadbalancer module :)
    Tests in the queryserver module would have no load balancer implementation. PQS should
pass gracefully in this case (e.g. not try to register with the loadbalancer because it would
be null).

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message