[ https://issues.apache.org/jira/browse/HADOOP-12187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kengo Seki updated HADOOP-12187: -------------------------------- Attachment: HADOOP-12187.HADOOP-12111.01.patch Attaching a patch. Before applying: {code} [sekikn@localhost hadoop]$ cat ~/ws.patch diff --git a/hadoop-common-project/hadoop-common/src/main/bin/hadoop b/hadoop-common-project/hadoop-common/src/main/bin/hadoop index 9e7b3ef..8b36347 100755 --- a/hadoop-common-project/hadoop-common/src/main/bin/hadoop +++ b/hadoop-common-project/hadoop-common/src/main/bin/hadoop @@ -47,7 +47,6 @@ function hadoop_usage() echo "Most commands print help when invoked w/o parameters." } - # This script runs the hadoop core commands. # let's locate libexec... [sekikn@localhost hadoop]$ dev-support/test-patch.sh --project=hadoop ~/ws.patch (snip) ============================================================================ ============================================================================ Checking for whitespace at the end of lines ============================================================================ ============================================================================ awk: cmd. line:1: fatal: cannot open file `/tmp/test-patch-hadoop/27113/gitdiffcontent.txt' for reading (No such file or directory) grep: /tmp/test-patch-hadoop/27113/gitdiffcontent.txt: No such file or directory ============================================================================ ============================================================================ Verifying mvn install still works ============================================================================ ============================================================================ (snip) {code} After applying: {code} [sekikn@localhost hadoop]$ dev-support/test-patch.sh --dirty-workspace --project=hadoop ~/ws.patch (snip) ============================================================================ ============================================================================ Checking for whitespace at the end of lines ============================================================================ ============================================================================ ============================================================================ ============================================================================ Verifying mvn install still works ============================================================================ ============================================================================ (snip) {code} > Whitespace plugin shows unexpected error messages if gitdiffcontent is empty > ---------------------------------------------------------------------------- > > Key: HADOOP-12187 > URL: https://issues.apache.org/jira/browse/HADOOP-12187 > Project: Hadoop Common > Issue Type: Sub-task > Components: yetus > Reporter: Kengo Seki > Priority: Minor > Attachments: HADOOP-12187.HADOOP-12111.01.patch > > > In the case that gitdiffcontent is empty such as only removing lines, the > following error messages are shown in console: > {code} > awk: cmd. line:1: fatal: cannot open file > `/tmp/test-patch-pig/3298/gitdiffcontent.txt' for reading (No such file or > directory) > grep: /tmp/test-patch-pig/3298/gitdiffcontent.txt: No such file or directory > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)