ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [1/2] ignite git commit: IGNITE-3165: Hadoop: Fixed incorrect resource extension resolution.
Date Wed, 18 May 2016 11:50:32 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-1.6 cf8514650 -> 0aaa1c73a


IGNITE-3165: Hadoop: Fixed incorrect resource extension resolution.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/7f8f000d
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/7f8f000d
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/7f8f000d

Branch: refs/heads/ignite-1.6
Commit: 7f8f000dd1909bb4ce26852a82f4c681734c8cd6
Parents: 83be105
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Wed May 18 14:47:45 2016 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Wed May 18 14:50:10 2016 +0300

----------------------------------------------------------------------
 .../processors/hadoop/v2/HadoopV2JobResourceManager.java       | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/7f8f000d/modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/v2/HadoopV2JobResourceManager.java
----------------------------------------------------------------------
diff --git a/modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/v2/HadoopV2JobResourceManager.java
b/modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/v2/HadoopV2JobResourceManager.java
index 769cd9e..67ab600 100644
--- a/modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/v2/HadoopV2JobResourceManager.java
+++ b/modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/v2/HadoopV2JobResourceManager.java
@@ -190,21 +190,17 @@ class HadoopV2JobResourceManager {
         Collection<String> res = new ArrayList<>();
 
         for (Object pathObj : files) {
-            String locName = null;
             Path srcPath;
 
             if (pathObj instanceof URI) {
                 URI uri = (URI)pathObj;
 
-                locName = uri.getFragment();
-
                 srcPath = new Path(uri);
             }
             else
                 srcPath = (Path)pathObj;
 
-            if (locName == null)
-                locName = srcPath.getName();
+            String locName = srcPath.getName();
 
             File dstPath = new File(jobLocDir.getAbsolutePath(), locName);
 


Mime
View raw message