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


Fix it, then Ship it!





ambari-agent/src/main/python/ambari_agent/ClusterCache.py
Lines 78 (patched)
<https://reviews.apache.org/r/63618/#comment267595>

    The cache still may end up in a partially updated state, since this does 
not clear it, just a local variable.



ambari-agent/src/main/python/ambari_agent/ClusterCache.py
Lines 99-100 (original), 103-106 (patched)
<https://reviews.apache.org/r/63618/#comment267598>

    `persist_cache()` will write possibly obsolete `self.hash`, not the new 
one.  Should pass `cache_hash` as argument now that the order is reversed.


- Attila Doroszlai


On Nov. 7, 2017, 2:48 p.m., Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/63618/
> -----------------------------------------------------------
> 
> (Updated Nov. 7, 2017, 2:48 p.m.)
> 
> 
> Review request for Ambari, Attila Doroszlai, Myroslav Papirkovskyy, and Sid 
> Wagle.
> 
> 
> Bugs: AMBARI-22375
>     https://issues.apache.org/jira/browse/AMBARI-22375
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> * If on_update_cache fails cache should be discard
>   * loggers should log messages during initialization of classes
>   * hash of cache should only updated if saving/processing it was sucessful
> 
> 
> Diffs
> -----
> 
>   ambari-agent/src/main/python/ambari_agent/ClusterCache.py b924420f8b 
>   ambari-agent/src/main/python/ambari_agent/InitializerModule.py 2c8021844f 
>   ambari-agent/src/main/python/ambari_agent/main.py 3948290519 
>   ambari-agent/src/test/python/ambari_agent/TestAgentStompResponses.py 
> 2154fca8d3 
> 
> 
> Diff: https://reviews.apache.org/r/63618/diff/1/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>

Reply via email to