Github user joshelser commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/343#discussion_r218531961
  
    --- Diff: bin/phoenix_utils.py ---
    @@ -162,6 +163,13 @@ def setPath():
         if phoenix_queryserver_jar == "":
             phoenix_queryserver_jar = 
findFileInPathWithoutRecursion(PHOENIX_QUERYSERVER_JAR_PATTERN, 
os.path.join(current_dir, ".."))
     
    +    global phoenix_loadbalancer_jar
    +    phoenix_loadbalancer_jar = find(PHOENIX_LOADBALANCER_JAR_PATTERN, 
os.path.join(current_dir, "..", "phoenix-loadbalancer", "target", "*"))
    +    if phoenix_loadbalancer_jar == "":
    +        phoenix_loadbalancer_jar = 
findFileInPathWithoutRecursion(PHOENIX_LOADBALANCER_JAR_PATTERN, 
os.path.join(current_dir, "..", "lib"))
    --- End diff --
    
    Yes, I understand how the load-balancer is meant to work (I was involved in 
the reviews and stipulated it be this way ;)).
    
    I'm trying to point out that the logic you've added here is useless on 
master because the jar doesn't exist in the lib directory of the tarball 
created by the phoenix-assembly module. Specifically, the following path is 
never valid because the JAR is not put there on normal tarball builds of Phoenix
    ```
    findFileInPathWithoutRecursion(PHOENIX_LOADBALANCER_JAR_PATTERN, 
os.path.join(current_dir, "..", "lib"))
    ```


---

Reply via email to