Repository: incubator-slider Updated Branches: refs/heads/develop ee7844ea2 -> d08545443
SLIDER-495 YarnRegistryViewForProviders#deleteChildren() should handle the case where path doesn't exist Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/d0854544 Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/d0854544 Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/d0854544 Branch: refs/heads/develop Commit: d085454437a817dd8e357bfa1b63a5087a8ca33b Parents: ee7844e Author: tedyu <[email protected]> Authored: Thu Oct 9 13:44:31 2014 -0700 Committer: tedyu <[email protected]> Committed: Thu Oct 9 13:44:31 2014 -0700 ---------------------------------------------------------------------- .../services/yarnregistry/YarnRegistryViewForProviders.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/d0854544/slider-core/src/main/java/org/apache/slider/server/services/yarnregistry/YarnRegistryViewForProviders.java ---------------------------------------------------------------------- diff --git a/slider-core/src/main/java/org/apache/slider/server/services/yarnregistry/YarnRegistryViewForProviders.java b/slider-core/src/main/java/org/apache/slider/server/services/yarnregistry/YarnRegistryViewForProviders.java index 4104b16..345bf05 100644 --- a/slider-core/src/main/java/org/apache/slider/server/services/yarnregistry/YarnRegistryViewForProviders.java +++ b/slider-core/src/main/java/org/apache/slider/server/services/yarnregistry/YarnRegistryViewForProviders.java @@ -183,10 +183,8 @@ public class YarnRegistryViewForProviders { try { childNames = registryOperations.list(path); } catch (PathNotFoundException e) { - //ignored + return; } - Map<String, RegistryPathStatus> results = - new HashMap<String, RegistryPathStatus>(); for (String childName : childNames) { String child = join(path, childName); registryOperations.delete(child, recursive);
