You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Benoy Antony (JIRA)" <ji...@apache.org> on 2012/05/20 01:46:40 UTC
[jira] [Created] (HADOOP-8416) test-patch fails to apply the patch
Benoy Antony created HADOOP-8416:
------------------------------------
Summary: test-patch fails to apply the patch
Key: HADOOP-8416
URL: https://issues.apache.org/jira/browse/HADOOP-8416
Project: Hadoop Common
Issue Type: Bug
Components: build
Affects Versions: 0.22.0
Reporter: Benoy Antony
Assignee: Benoy Antony
Priority: Minor
The patch needs to be applied from the root of the repository. The when test-patch is run frm common, hdfs or mapreduce subdirectories, the test-patch fails in applying the patch .
The error is shown below
[exec] ======================================================================
[exec] Applying patch.
[exec] ======================================================================
[exec] ======================================================================
[exec]
[exec]
[exec] can't find file to patch at input line 5
[exec] Perhaps you used the wrong -p or --strip option?
[exec] The text leading up to this was:
[exec] --------------------------
[exec] |diff --git mapreduce/build.xml mapreduce/build.xml
[exec] |index ff73822..6a24ff2 100644
[exec] |--- mapreduce/build.xml
[exec] |+++ mapreduce/build.xml
[exec] --------------------------
[exec] File to patch:
[exec] Skip this patch? [y]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Work started] (HADOOP-8416) test-patch fails to apply the
patch
Posted by "Benoy Antony (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on HADOOP-8416 started by Benoy Antony.
> test-patch fails to apply the patch
> -----------------------------------
>
> Key: HADOOP-8416
> URL: https://issues.apache.org/jira/browse/HADOOP-8416
> Project: Hadoop Common
> Issue Type: Bug
> Components: build
> Affects Versions: 0.22.0
> Reporter: Benoy Antony
> Assignee: Benoy Antony
> Priority: Minor
> Attachments: hadoop-8416.patch
>
>
> The patch needs to be applied from the root of the repository. The when test-patch is run frm common, hdfs or mapreduce subdirectories, the test-patch fails in applying the patch .
> The error is shown below
> [exec] ======================================================================
> [exec] Applying patch.
> [exec] ======================================================================
> [exec] ======================================================================
> [exec]
> [exec]
> [exec] can't find file to patch at input line 5
> [exec] Perhaps you used the wrong -p or --strip option?
> [exec] The text leading up to this was:
> [exec] --------------------------
> [exec] |diff --git mapreduce/build.xml mapreduce/build.xml
> [exec] |index ff73822..6a24ff2 100644
> [exec] |--- mapreduce/build.xml
> [exec] |+++ mapreduce/build.xml
> [exec] --------------------------
> [exec] File to patch:
> [exec] Skip this patch? [y]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-8416) test-patch fails to apply the
patch
Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279641#comment-13279641 ]
Konstantin Shvachko commented on HADOOP-8416:
---------------------------------------------
What is the patch you are trying to apply? I assume it is the mega security one?
If a patch is generated relative to repo root, then test-patch will not be able to apply while running from common, hdfs or mapreduce. test-patch is actually supposed to run from one of the three, not from the root.
If your modification covers both cases, then it is ok. I don't think it does though. Could you please clarify.
> test-patch fails to apply the patch
> -----------------------------------
>
> Key: HADOOP-8416
> URL: https://issues.apache.org/jira/browse/HADOOP-8416
> Project: Hadoop Common
> Issue Type: Bug
> Components: build
> Affects Versions: 0.22.0
> Reporter: Benoy Antony
> Assignee: Benoy Antony
> Priority: Minor
> Attachments: hadoop-8416.patch
>
>
> The patch needs to be applied from the root of the repository. The when test-patch is run frm common, hdfs or mapreduce subdirectories, the test-patch fails in applying the patch .
> The error is shown below
> [exec] ======================================================================
> [exec] Applying patch.
> [exec] ======================================================================
> [exec] ======================================================================
> [exec]
> [exec]
> [exec] can't find file to patch at input line 5
> [exec] Perhaps you used the wrong -p or --strip option?
> [exec] The text leading up to this was:
> [exec] --------------------------
> [exec] |diff --git mapreduce/build.xml mapreduce/build.xml
> [exec] |index ff73822..6a24ff2 100644
> [exec] |--- mapreduce/build.xml
> [exec] |+++ mapreduce/build.xml
> [exec] --------------------------
> [exec] File to patch:
> [exec] Skip this patch? [y]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-8416) test-patch fails to apply the
patch
Posted by "Benoy Antony (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279634#comment-13279634 ]
Benoy Antony commented on HADOOP-8416:
--------------------------------------
This is because , test-patch tries to apply the patch relative to the current working directory which is a subdirectory under hadoop-common.
> test-patch fails to apply the patch
> -----------------------------------
>
> Key: HADOOP-8416
> URL: https://issues.apache.org/jira/browse/HADOOP-8416
> Project: Hadoop Common
> Issue Type: Bug
> Components: build
> Affects Versions: 0.22.0
> Reporter: Benoy Antony
> Assignee: Benoy Antony
> Priority: Minor
>
> The patch needs to be applied from the root of the repository. The when test-patch is run frm common, hdfs or mapreduce subdirectories, the test-patch fails in applying the patch .
> The error is shown below
> [exec] ======================================================================
> [exec] Applying patch.
> [exec] ======================================================================
> [exec] ======================================================================
> [exec]
> [exec]
> [exec] can't find file to patch at input line 5
> [exec] Perhaps you used the wrong -p or --strip option?
> [exec] The text leading up to this was:
> [exec] --------------------------
> [exec] |diff --git mapreduce/build.xml mapreduce/build.xml
> [exec] |index ff73822..6a24ff2 100644
> [exec] |--- mapreduce/build.xml
> [exec] |+++ mapreduce/build.xml
> [exec] --------------------------
> [exec] File to patch:
> [exec] Skip this patch? [y]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-8416) test-patch fails to apply the patch
Posted by "Benoy Antony (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benoy Antony updated HADOOP-8416:
---------------------------------
Attachment: hadoop-8416.patch
The attached patch solves the problem by changing the working directory to the parent. After the patch is applied , it restores the working directory to the original.
> test-patch fails to apply the patch
> -----------------------------------
>
> Key: HADOOP-8416
> URL: https://issues.apache.org/jira/browse/HADOOP-8416
> Project: Hadoop Common
> Issue Type: Bug
> Components: build
> Affects Versions: 0.22.0
> Reporter: Benoy Antony
> Assignee: Benoy Antony
> Priority: Minor
> Attachments: hadoop-8416.patch
>
>
> The patch needs to be applied from the root of the repository. The when test-patch is run frm common, hdfs or mapreduce subdirectories, the test-patch fails in applying the patch .
> The error is shown below
> [exec] ======================================================================
> [exec] Applying patch.
> [exec] ======================================================================
> [exec] ======================================================================
> [exec]
> [exec]
> [exec] can't find file to patch at input line 5
> [exec] Perhaps you used the wrong -p or --strip option?
> [exec] The text leading up to this was:
> [exec] --------------------------
> [exec] |diff --git mapreduce/build.xml mapreduce/build.xml
> [exec] |index ff73822..6a24ff2 100644
> [exec] |--- mapreduce/build.xml
> [exec] |+++ mapreduce/build.xml
> [exec] --------------------------
> [exec] File to patch:
> [exec] Skip this patch? [y]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira