Re: Review Request 50808: Failed to load stack versions

2016-08-04 Thread Dmytro Sen

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


Ship it!




Ship It!

- Dmytro Sen


On Авг. 4, 2016, 4:46 п.п., Andrew Onischuk wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/50808/
> ---
> 
> (Updated Авг. 4, 2016, 4:46 п.п.)
> 
> 
> Review request for Ambari and Dmytro Sen.
> 
> 
> Bugs: AMBARI-18028
> https://issues.apache.org/jira/browse/AMBARI-18028
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> GET _api/v1/stacks?fields=versions/*_  
> and  
> GET _api/v1/clusters/c/stack_versions?fields=*&ClusterStackVersions/repository
> _version=2_  
> sometimes (ex. 2 of 10 requests) return
> 
> 
> 
> {
>   "status" : 500,
>   "message" : "org.apache.ambari.server.controller.spi.SystemException: 
> Could not load xml for Repository 2"
> }
> 
> 
> As this request is also used in Add Service Wizard, sometimes it fails deploy
> of new service.
> 
> This issue is reproduced after visiting Hive View, when hive was not
> installed.
> 
> STR:  
> 1\. Install cluster without hive.  
> 2\. Create Hive view.  
> 3\. Open Hive view, open Query section.
> 
> Then try those two requests several times. There are no records in ambari-
> server.log about these requests.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariHandlerList.java
>  b33d977 
>   
> contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsUtil.java
>  c7d054f 
> 
> Diff: https://reviews.apache.org/r/50808/diff/
> 
> 
> Testing
> ---
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>



Review Request 50808: Failed to load stack versions

2016-08-04 Thread Andrew Onischuk

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

Review request for Ambari and Dmytro Sen.


Bugs: AMBARI-18028
https://issues.apache.org/jira/browse/AMBARI-18028


Repository: ambari


Description
---

GET _api/v1/stacks?fields=versions/*_  
and  
GET _api/v1/clusters/c/stack_versions?fields=*&ClusterStackVersions/repository
_version=2_  
sometimes (ex. 2 of 10 requests) return



{
  "status" : 500,
  "message" : "org.apache.ambari.server.controller.spi.SystemException: 
Could not load xml for Repository 2"
}


As this request is also used in Add Service Wizard, sometimes it fails deploy
of new service.

This issue is reproduced after visiting Hive View, when hive was not
installed.

STR:  
1\. Install cluster without hive.  
2\. Create Hive view.  
3\. Open Hive view, open Query section.

Then try those two requests several times. There are no records in ambari-
server.log about these requests.


Diffs
-

  
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariHandlerList.java
 b33d977 
  
contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsUtil.java
 c7d054f 

Diff: https://reviews.apache.org/r/50808/diff/


Testing
---

mvn clean test


Thanks,

Andrew Onischuk