[jira] [Updated] (HADOOP-15101) what testListStatusFile verified not consistent with listStatus declaration in FileSystem
[ https://issues.apache.org/jira/browse/HADOOP-15101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Loughran updated HADOOP-15101: Description: {code} @Test public void testListStatusFile() throws Throwable { describe("test the listStatus(path) on a file"); Path f = touchf("liststatusfile"); verifyStatusArrayMatchesFile(f, getFileSystem().listStatus(f)); } {code} In this case, first create a file _f_, then listStatus on _f_,expect listStatus returns an array of one FileStatus. But this is not consistent with the declarations in FileSystem, i.e. {code} " List the statuses of the files/directories in the given path if the path is a directory. Parameters: f given path Returns: the statuses of the files/directories in the given patch " {code} Which is the expected? The behave in fs contract test or in FileSystem? was: @Test public void testListStatusFile() throws Throwable { describe("test the listStatus(path) on a file"); Path f = touchf("liststatusfile"); verifyStatusArrayMatchesFile(f, getFileSystem().listStatus(f)); } In this case, first create a file _f_, then listStatus on _f_,expect listStatus returns an array of one FileStatus. But this is not consistent with the declarations in FileSystem, i.e. " List the statuses of the files/directories in the given path if the path is a directory. Parameters: f given path Returns: the statuses of the files/directories in the given patch " Which is the expected? The behave in fs contract test or in FileSystem? > what testListStatusFile verified not consistent with listStatus declaration > in FileSystem > --- > > Key: HADOOP-15101 > URL: https://issues.apache.org/jira/browse/HADOOP-15101 > Project: Hadoop Common > Issue Type: Bug > Components: fs, test >Affects Versions: 3.0.0-beta1 >Reporter: zhoutai.zt >Priority: Critical > > {code} > @Test > public void testListStatusFile() throws Throwable { > describe("test the listStatus(path) on a file"); > Path f = touchf("liststatusfile"); > verifyStatusArrayMatchesFile(f, getFileSystem().listStatus(f)); > } > {code} > In this case, first create a file _f_, then listStatus on _f_,expect > listStatus returns an array of one FileStatus. But this is not consistent > with the declarations in FileSystem, i.e. > {code} > " > List the statuses of the files/directories in the given path if the path is a > directory. > Parameters: > f given path > Returns: > the statuses of the files/directories in the given patch > " > {code} > Which is the expected? The behave in fs contract test or in FileSystem? -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org
[jira] [Updated] (HADOOP-15101) what testListStatusFile verified not consistent with listStatus declaration in FileSystem
[ https://issues.apache.org/jira/browse/HADOOP-15101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zhoutai.zt updated HADOOP-15101: Description: @Test public void testListStatusFile() throws Throwable { describe("test the listStatus(path) on a file"); Path f = touchf("liststatusfile"); verifyStatusArrayMatchesFile(f, getFileSystem().listStatus(f)); } In this case, first create a file _f_, then listStatus on _f_,expect listStatus returns an array of one FileStatus. But this is not consistent with the declarations in FileSystem, i.e. " List the statuses of the files/directories in the given path if the path is a directory. Parameters: f given path Returns: the statuses of the files/directories in the given patch " Which is the expected? The behave in fs contract test or in FileSystem? was: @Test public void testListStatusFile() throws Throwable { describe("test the listStatus(path) on a file"); Path f = touchf("liststatusfile"); verifyStatusArrayMatchesFile(f, getFileSystem().listStatus(f)); } In this case, first create a file _f_, then listStatus on _f_,expect listStatus returns an array of one FileStatus. But this is not consistent with the declarations in FileSystem, i.e. ??List the statuses of the files/directories in the given path if the path is a directory. Parameters: f given path Returns: the statuses of the files/directories in the given patch?? Which is the expected? The behave in fs contract test or in FileSystem? > what testListStatusFile verified not consistent with listStatus declaration > in FileSystem > --- > > Key: HADOOP-15101 > URL: https://issues.apache.org/jira/browse/HADOOP-15101 > Project: Hadoop Common > Issue Type: Bug > Components: fs, test >Affects Versions: 3.0.0-beta1 >Reporter: zhoutai.zt >Priority: Critical > > @Test > public void testListStatusFile() throws Throwable { > describe("test the listStatus(path) on a file"); > Path f = touchf("liststatusfile"); > verifyStatusArrayMatchesFile(f, getFileSystem().listStatus(f)); > } > In this case, first create a file _f_, then listStatus on _f_,expect > listStatus returns an array of one FileStatus. But this is not consistent > with the declarations in FileSystem, i.e. > " > List the statuses of the files/directories in the given path if the path is a > directory. > Parameters: > f given path > Returns: > the statuses of the files/directories in the given patch > " > Which is the expected? The behave in fs contract test or in FileSystem? -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org