-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64388/#review193018
-----------------------------------------------------------




ambari-server/src/main/java/org/apache/ambari/server/events/listeners/upgrade/HostVersionOutOfSyncListener.java
Lines 134-139 (patched)
<https://reviews.apache.org/r/64388/#comment271506>

    In this problem, you're saying that after upgrading the cluster from BI to 
HDP, adding a service is looking it up via BigInsights. 
    
    ```
    org.apache.ambari.server.StackAccessException: Stack data, 
stackName=BigInsights, stackVersion=4.2.5, serviceName=TEZ
        at 
org.apache.ambari.server.api.services.AmbariMetaInfo.getService(AmbariMetaInfo.java:532)
        at 
org.apache.ambari.server.api.services.AmbariMetaInfo.getComponent(AmbariMetaInfo.java:284)
        at 
org.apache.ambari.server.events.listeners.upgrade.HostVersionOutOfSyncListener.onServiceEvent(HostVersionOutOfSyncListener.java:263)
    ```
    
    Doesn't this mean that the lookup is using the wrong stack version:
    
    ```
                ComponentInfo component = 
ami.get().getComponent(repositoryVersion.getStackName(),
                        repositoryVersion.getStackVersion(), serviceName, 
componentName);
    ```
    
    Instead of skipping the lookup (which could cause problems with reporting 
component versions), we should figure out why the wrong stack is being used to 
lookup the information. HDP should be used since it's current...


- Jonathan Hurley


On Dec. 6, 2017, 1:52 p.m., Myroslav Papirkovskyy wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/64388/
> -----------------------------------------------------------
> 
> (Updated Dec. 6, 2017, 1:52 p.m.)
> 
> 
> Review request for Ambari, Dmitro Lisnichenko, Jonathan Hurley, and Sid Wagle.
> 
> 
> Bugs: AMBARI-22605
>     https://issues.apache.org/jira/browse/AMBARI-22605
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> STR:
> Deploy minimal cluster (HDFS, YARN+MR2, ZooKeeper).
> Add Tez service.
> Service check hangs for a long time.
> 
> 
> Diffs
> -----
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
>  85e0c1cf130974377abb7b685f191e20324b090e 
>   
> ambari-server/src/main/java/org/apache/ambari/server/events/listeners/upgrade/HostVersionOutOfSyncListener.java
>  d5a1ac4fd06377a992a8286d6fca366536a25157 
> 
> 
> Diff: https://reviews.apache.org/r/64388/diff/1/
> 
> 
> Testing
> -------
> 
> mvn clean test
> manual check
> 
> 
> Thanks,
> 
> Myroslav Papirkovskyy
> 
>

Reply via email to