[jira] [Created] (HADOOP-7341) Fix option parsing in CommandFormat
Fix option parsing in CommandFormat --- Key: HADOOP-7341 URL: https://issues.apache.org/jira/browse/HADOOP-7341 Project: Hadoop Common Issue Type: Bug Components: fs Affects Versions: 0.23.0 Reporter: Daryn Sharp Assignee: Daryn Sharp CommandFormat currently allows options in any location within the args. This is not the intended behavior for FsShell commands. Prior to the redesign, the commands used to expect option processing to stop at the first non-option. CommandFormat was an existing class prior the redesign, but it was only used by count to find the -q flag. All commands were converted to using this class, thus inherited the unintended behavior. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Created] (HADOOP-7342) Add an utility API in FileUtil for JDK File.list
Add an utility API in FileUtil for JDK File.list Key: HADOOP-7342 URL: https://issues.apache.org/jira/browse/HADOOP-7342 Project: Hadoop Common Issue Type: Bug Affects Versions: 0.23.0 Reporter: Bharath Mundlapudi Assignee: Bharath Mundlapudi Priority: Minor Fix For: 0.23.0 Java File.list API can return null when disk is bad or directory is not a directory. This utility API in FileUtil will throw an exception when this happens rather than returning null. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Created] (HADOOP-7343) backport HADOOP-7008 and HADOOP-7042 to branch-0.20-security
backport HADOOP-7008 and HADOOP-7042 to branch-0.20-security Key: HADOOP-7343 URL: https://issues.apache.org/jira/browse/HADOOP-7343 Project: Hadoop Common Issue Type: Improvement Components: test Affects Versions: 0.20.204.0 Reporter: Thomas Graves Assignee: Thomas Graves Priority: Minor backport HADOOP-7008 and HADOOP-7042 to branch-0.20-security so that we can enable test-patch.sh to have a configured number of acceptable findbugs and javadoc warnings -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Created] (HADOOP-7344) globStatus doesn't grok groupings with a slash
globStatus doesn't grok groupings with a slash -- Key: HADOOP-7344 URL: https://issues.apache.org/jira/browse/HADOOP-7344 Project: Hadoop Common Issue Type: Bug Components: fs Affects Versions: 0.23.0 Reporter: Daryn Sharp If a glob contains a grouping with a single item that contains a slash, ex. {a/b}, then globStatus throws {{Illegal file pattern: Unclosed group near index 2}} -- regardless of whether the path exists. However, if the glob set contains more than one item, ex. {a/b,c}, then it throws a {{NullPointerException}} from {{FileSystem.java:1277}}. {code} 1276: FileStatus[] files = globStatusInternal(new Path(filePattern), filter); 1277: for (FileStatus file : files) { 1278: results.add(file); 1279: } {code} The method {{globStatusInternal}} can return null, so the iterator fails with the NPE. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Created] (HADOOP-7345) listStatus for local files throws NPE instead of permission denied
listStatus for local files throws NPE instead of permission denied -- Key: HADOOP-7345 URL: https://issues.apache.org/jira/browse/HADOOP-7345 Project: Hadoop Common Issue Type: Bug Components: fs Affects Versions: 0.23.0 Reporter: Daryn Sharp Calling {{fs.listStatus}} on a local directory where the user does not have permissions generates a {{NullPointerException}}: {noformat} Exception in thread main java.lang.NullPointerException at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1115) at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1150) at org.apache.hadoop.fs.ChecksumFileSystem.listStatus(ChecksumFileSystem.java:494) {noformat} FileSystem.java: {code} : private void listStatus(ArrayListFileStatus results, Path f, 1112: PathFilter filter) throws FileNotFoundException, IOException { 1113:FileStatus listing[] = listStatus(f); 1114: 1115:for (int i = 0; i listing.length; i++) { {code} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Created] (HADOOP-7346) Send back nicer error to clients using outdated IPC version
Send back nicer error to clients using outdated IPC version --- Key: HADOOP-7346 URL: https://issues.apache.org/jira/browse/HADOOP-7346 Project: Hadoop Common Issue Type: Improvement Components: ipc Affects Versions: 0.22.0 Reporter: Todd Lipcon Assignee: Todd Lipcon Fix For: 0.22.0 When an older Hadoop version tries to contact a newer Hadoop version across an IPC protocol version bump, the client currently just gets a non-useful error message like EOFException. Instead, the IPC server code can speak just enough of prior IPC protocols to send back a fatal message indicating the version mismatch. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Created] (HADOOP-7347) HDFS Wire compatibility
HDFS Wire compatibility --- Key: HADOOP-7347 URL: https://issues.apache.org/jira/browse/HADOOP-7347 Project: Hadoop Common Issue Type: Improvement Reporter: Sanjay Radia Assignee: Sanjay Radia Fix For: 0.23.0 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira