You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by sm...@apache.org on 2014/10/12 02:58:24 UTC
[36/50] git commit: SLIDER-495
YarnRegistryViewForProviders#deleteChildren() should handle the case where
path doesn't exist
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/feature/SLIDER-481_allow_dedicated_handling_of_exports
Commit: d085454437a817dd8e357bfa1b63a5087a8ca33b
Parents: ee7844e
Author: tedyu <yu...@gmail.com>
Authored: Thu Oct 9 13:44:31 2014 -0700
Committer: tedyu <yu...@gmail.com>
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);