hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kengo Seki (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-12341) patch file confuses test-patch (date format problems)
Date Fri, 04 Sep 2015 19:26:45 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-12341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kengo Seki updated HADOOP-12341:
--------------------------------
    Attachment: HADOOP-12375.HADOOP-12111.02.patch

Attaching another case. This was originally attached to HADOOP-12375.
{{git apply}} works on it, but test-patch fails as follows:

{code}
/tmp/test-patch-hadoop/2043 has been created
Running in developer mode
Patch file /Users/sekikn/Desktop/HADOOP-12375.HADOOP-12111.02.patch copied to /private/tmp/test-patch-hadoop/2043
ERROR: Unsure how to process /Users/sekikn/Desktop/HADOOP-12375.HADOOP-12111.02.patch.
{code}

with bash -x:

{code}
Patch file /Users/sekikn/Desktop/HADOOP-12375.HADOOP-12111.02.patch copied to /private/tmp/test-patch-hadoop/2071
+ guess_patch_file /private/tmp/test-patch-hadoop/2071/patch
+ local patch=/private/tmp/test-patch-hadoop/2071/patch
+ local fileOutput
+ [[ ! -f /private/tmp/test-patch-hadoop/2071/patch ]]
+ yetus_debug 'Trying to guess is /private/tmp/test-patch-hadoop/2071/patch is a patch file.'
+ [[ -n '' ]]
++ file /private/tmp/test-patch-hadoop/2071/patch
+ fileOutput='/private/tmp/test-patch-hadoop/2071/patch: ASCII text'
+ [[ /private/tmp/test-patch-hadoop/2071/patch: ASCII text =~  diff  ]]
++ head -n 1 /private/tmp/test-patch-hadoop/2071/patch
++ grep -E '^(From [a-z0-9]* Mon Sep 17 00:00:00 2001)|(diff .*)|(Index: .*)$'
+ fileOutput=
+ [[ 1 == 0 ]]
+ return 1
+ [[ 1 != 0 ]]
+ yetus_error 'ERROR: Unsure how to process /Users/sekikn/Desktop/HADOOP-12375.HADOOP-12111.02.patch.'
+ echo 'ERROR: Unsure how to process /Users/sekikn/Desktop/HADOOP-12375.HADOOP-12111.02.patch.'
ERROR: Unsure how to process /Users/sekikn/Desktop/HADOOP-12375.HADOOP-12111.02.patch.
{code}

> patch file confuses test-patch (date format problems)
> -----------------------------------------------------
>
>                 Key: HADOOP-12341
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12341
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: yetus
>    Affects Versions: HADOOP-12111
>            Reporter: Allen Wittenauer
>         Attachments: HADOOP-12326.002.patch, HADOOP-12375.HADOOP-12111.02.patch
>
>
> This was attached to HADOOP-12326 .



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message