[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure using openJDK 1.8.0

2017-06-16 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16051618#comment-16051618
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/16/17 9:26 AM:
---

:)  That's Ok. During this, i learned a lot of about how to make code obvious 
and gracefully.


was (Author: hongyuan li):
:)  That's Ok. During this, i learned a lot of about how to make code obvious.

> TestSFTPFileSystem#testGetAccessTime test failure using openJDK 1.8.0  
> ---
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>  Components: fs
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
> Fix For: 2.9.0
>
> Attachments: HADOOP-14486-001.patch, HADOOP-14486-002.patch
>
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
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] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure using openJDK 1.8.0

2017-06-15 Thread Steve Loughran (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16050973#comment-16050973
 ] 

Steve Loughran edited comment on HADOOP-14486 at 6/15/17 9:33 PM:
--

No, time,  I've been away. I can assure you, we are all behind reviewing 
things. And, equally: all waiting for others to review our own work.

Looking at the patch, I think I'd be happier with

1000 * (accessTime1 % 1000)

It's integer division (hence the % operator) and avoids confusion about what 
the evaluateion of  {{accessTime1 / 1000 * 1000 }} is. I misread at first as 
{{accessTime1 / (1000 * 1000)).

*Update/Correction*. No, % is entirely the wrong operator. It'd have to be 
{{accessTime -  (accessTime1 % 1000)}}, which isn't that good. 

Let's go with: {{(accessTime1 / 1000) * 1000}} with the braces to make it 
obvious, even to me


was (Author: ste...@apache.org):
No, time,  I've been away. I can assure you, we are all behind reviewing 
things. And, equally: all waiting for others to review our own work.

Looking at the patch, I think I'd be happier with

1000 * (accessTime1 % 1000)

It's integer division (hence the % operator) and avoids confusion about what 
the evaluateion of  {{accessTime1 / 1000 * 1000 }} is. I misread at first as 
{{accessTime1 / (1000 * 1000)).



> TestSFTPFileSystem#testGetAccessTime test failure using openJDK 1.8.0  
> ---
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>  Components: fs
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
> Attachments: HADOOP-14486-001.patch
>
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
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] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure using openJDk 1.8.0

2017-06-09 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16045378#comment-16045378
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/10/17 4:23 AM:
---

[~ste...@apache.org] i have submit the patch and the test environment in near 
comment. Any time to review it ?


was (Author: hongyuan li):
Steve Loughran i have submit the patch and the test environment in near 
comment. Any time to review it ?

> TestSFTPFileSystem#testGetAccessTime test failure using openJDk 1.8.0  
> ---
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
> Attachments: HADOOP-14486-001.patch
>
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure

2017-06-06 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038909#comment-16038909
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/6/17 1:56 PM:
--

[~Sonia] this change work with opendjk 1.7 and oracle 1.8 as well.The oracle 
jdk and openJDK 1.7's Files.readAttributes(path, BasicFileAttributes.class) 
method get time in second accuracy, the value of which is like X000,but 
openJDK 1.8 and WindowFileAttributes don't.

[~ste...@apache.org] i will submit the patch here soon.
my test environment lists below:
{{os : ubuntu-14.04.5-server-amd64}}
jdks:
{code}
 java-7-1.7.0_131(java version "1.7.0_131", OpenJDK Runtime Environment 
(IcedTea 2.6.9) (7u131-2.6.9-0ubuntu0.14.04.2)  OpenJDK 64-Bit Server VM (build 
24.131-b00, mixed mode));
{code}
{code}
oracle jdk1.8.0_131(java version "1.8.0_131",  Java(TM) SE Runtime 
Environment (build 1.8.0_131-b11), Java HotSpot(TM) 64-Bit Server VM (build 
25.131-b11, mixed mode)) ;
{code}
{code}
 openjdk version "1.8.0_111"(openjdk version "1.8.0_111",OpenJDK Runtime 
Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14),OpenJDK 64-Bit Server VM 
(build 25.111-b14, mixed mode))
{code}

Only by using {{openjdk version "1.8.0_111"}} will encounter this problem.




was (Author: hongyuan li):
[~Sonia] this change work with opendjk 1.7 and oracle 1.8 as well.The oracle 
jdk and openJDK 1.7's Files.readAttributes(path, BasicFileAttributes.class) 
method get time in second accuracy, the value of which is like X000,but 
openJDK 1.8 and WindowFileAttributes don't.

[~ste...@apache.org] i will submit the patch here soon.
my test environment lists below:
os : ubuntu-14.04.5-server-amd64
jdks:
{code}
 java-7-1.7.0_131(java version "1.7.0_131", OpenJDK Runtime Environment 
(IcedTea 2.6.9) (7u131-2.6.9-0ubuntu0.14.04.2)  OpenJDK 64-Bit Server VM (build 
24.131-b00, mixed mode));
{code}
{code}
oracle jdk1.8.0_131(java version "1.8.0_131",  Java(TM) SE Runtime 
Environment (build 1.8.0_131-b11), Java HotSpot(TM) 64-Bit Server VM (build 
25.131-b11, mixed mode)) ;
{code}
{code}
 openjdk version "1.8.0_111"(openjdk version "1.8.0_111",OpenJDK Runtime 
Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14),OpenJDK 64-Bit Server VM 
(build 25.111-b14, mixed mode))
{code}

Only by using {{openjdk version "1.8.0_111"}} will encounter this problem.



> TestSFTPFileSystem#testGetAccessTime test failure
> -
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
> Attachments: HADOOP-14486-001.patch
>
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure

2017-06-06 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038925#comment-16038925
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/6/17 1:55 PM:
--

[~ste...@apache.org] i have submit the patch and the test environment in near 
comment.
By the way,can you give me a code review about HADOOP-14469, HADOOP-14470 and 
HADOOP-14429. If you've no time, forget this.


was (Author: hongyuan li):
[~ste...@apache.org] i have submit the patch and the test environment in above 
comment.
By the way,can you give me a code review about HADOOP-14469, HADOOP-14470 and 
HADOOP-14429. If you've no time, forget this.

> TestSFTPFileSystem#testGetAccessTime test failure
> -
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
> Attachments: HADOOP-14486-001.patch
>
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure

2017-06-06 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038909#comment-16038909
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/6/17 1:55 PM:
--

[~Sonia] this change work with opendjk 1.7 and oracle 1.8 as well.The oracle 
jdk and openJDK 1.7's Files.readAttributes(path, BasicFileAttributes.class) 
method get time in second accuracy, the value of which is like X000,but 
openJDK 1.8 and WindowFileAttributes don't.

[~ste...@apache.org] i will submit the patch here soon.
my test environment lists below:
os : ubuntu-14.04.5-server-amd64
jdks:
{code}
 java-7-1.7.0_131(java version "1.7.0_131", OpenJDK Runtime Environment 
(IcedTea 2.6.9) (7u131-2.6.9-0ubuntu0.14.04.2)  OpenJDK 64-Bit Server VM (build 
24.131-b00, mixed mode));
{code}
{code}
oracle jdk1.8.0_131(java version "1.8.0_131",  Java(TM) SE Runtime 
Environment (build 1.8.0_131-b11), Java HotSpot(TM) 64-Bit Server VM (build 
25.131-b11, mixed mode)) ;
{code}
{code}
 openjdk version "1.8.0_111"(openjdk version "1.8.0_111",OpenJDK Runtime 
Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14),OpenJDK 64-Bit Server VM 
(build 25.111-b14, mixed mode))
{code}

Only by using {{openjdk version "1.8.0_111"}} will encounter this problem.




was (Author: hongyuan li):
[~Sonia] this change work with opendjk 1.7 and oracle 1.8 as well.The oracle 
jdk and openJDK 1.7's Files.readAttributes(path, BasicFileAttributes.class) 
method get time in second accuracy, the value of which is like X000,but 
openJDK 1.8 and WindowFileAttributes don't.

[~ste...@apache.org] i will submit the patch here soon.
my test environment lists below:
os : ubuntu-14.04.5-server-amd64
jdks:
{code}
 java-7-1.7.0_131(java version "1.7.0_131", OpenJDK Runtime Environment 
(IcedTea 2.6.9) (7u131-2.6.9-0ubuntu0.14.04.2)  OpenJDK 64-Bit Server VM (build 
24.131-b00, mixed mode));
{code}
{code}
oracle jdk1.8.0_131(java version "1.8.0_131",  Java(TM) SE Runtime 
Environment (build 1.8.0_131-b11), Java HotSpot(TM) 64-Bit Server VM (build 
25.131-b11, mixed mode)) ;
{code}
{code}
 openjdk version "1.8.0_111"(openjdk version "1.8.0_111",OpenJDK Runtime 
Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14),OpenJDK 64-Bit Server VM 
(build 25.111-b14, mixed mode))
{code}

using {{openjdk version "1.8.0_111"}} will encounter this problem.



> TestSFTPFileSystem#testGetAccessTime test failure
> -
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
> Attachments: HADOOP-14486-001.patch
>
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure

2017-06-06 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038433#comment-16038433
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/6/17 11:04 AM:
---

[~Sonia] i checked this issue with the same environment and found out that the 
oracle jdk and openjdk's implements of code below is different.
{code}
Files.readAttributes(path, BasicFileAttributes.class)
{code}
That does not relate to the os system except the windows os.
Futhermore, openjdk 1.7 acts the same as oracle jdk.
So, two suggestions to solve this :
1、use oracle jdk 1.8
2、if you want to use openjdk 1.8, you can modify the 
TestSFTPFileSystem#testGetAccessTime  code  like code below:
{code}
  @Test
  public void testGetAccessTime() throws IOException {
Path file = touch(localFs, name.getMethodName().toLowerCase());
LocalFileSystem local = (LocalFileSystem)localFs;
java.nio.file.Path path = (local).pathToFile(file).toPath();
long accessTime1 = Files.readAttributes(path, BasicFileAttributes.class)
.lastAccessTime().toMillis();
accessTime1 = accessTime1 / 1000 * 1000;
long accessTime2 = sftpFs.getFileStatus(file).getAccessTime();
assertEquals(accessTime1, accessTime2);
  }
{code}

 [~ste...@apache.org], close the issue or submit code above as a patch?


was (Author: hongyuan li):
[~Sonia] i checked this issue with the same environment and found out that the 
oracle jdk and openjdk's implements of code below is different.
{code}
Files.readAttributes(path, BasicFileAttributes.class)
{code}
That does not relate to the os system except the windows os.
Futhermore, openjdk 1.7 acts the same as oracle jdk.
So, two suggestions to solve this :
1、use oracle jdk 1.8
2、if you want to use openjdk 1.8, you can modify the 
TestSFTPFileSystem#testGetAccessTime  code  like code below:
{code}
  @Test
  public void testGetAccessTime() throws IOException {
Path file = touch(localFs, name.getMethodName().toLowerCase());
LocalFileSystem local = (LocalFileSystem)localFs;
java.nio.file.Path path = (local).pathToFile(file).toPath();
long accessTime1 = Files.readAttributes(path, BasicFileAttributes.class)
.lastAccessTime().toMillis();
accessTime1 = accessTime1 / 1000 * 1000;
long accessTime2 = sftpFs.getFileStatus(file).getAccessTime();
assertEquals(accessTime1, accessTime2);
  }
{code}

 [~ste...@apache.org],Any good idea to solve this ?

> TestSFTPFileSystem#testGetAccessTime test failure
> -
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure

2017-06-06 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038433#comment-16038433
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/6/17 9:26 AM:
--

[~Sonia] i checked this issue with the same environment and found out that the 
oracle jdk and openjdk's implements of code below is different.
{code}
Files.readAttributes(path, BasicFileAttributes.class)
{code}
That does not relate to the os system except the windows os.
Futhermore, openjdk 1.7 acts the same as oracle jdk.
So, two suggestions to solve this :
1、use oracle jdk 1.8
2、if you want to use openjdk 1.8, you can modify the 
TestSFTPFileSystem#testGetAccessTime  code  like code below:
{code}
  @Test
  public void testGetAccessTime() throws IOException {
Path file = touch(localFs, name.getMethodName().toLowerCase());
LocalFileSystem local = (LocalFileSystem)localFs;
java.nio.file.Path path = (local).pathToFile(file).toPath();
long accessTime1 = Files.readAttributes(path, BasicFileAttributes.class)
.lastAccessTime().toMillis();
accessTime1 = accessTime1 / 1000 * 1000;
long accessTime2 = sftpFs.getFileStatus(file).getAccessTime();
assertEquals(accessTime1, accessTime2);
  }
{code}

 [~ste...@apache.org],Any good idea to solve this ?


was (Author: hongyuan li):
[~Sonia] i checked this issue with the same environment and found out that the 
oracle jdk and openjdk's implements of code below is different.
{code}
Files.readAttributes(path, BasicFileAttributes.class)
{code}
That does not relate to the os system except the windows os.
Futhermore, openjdk 1.7 acts the same as oracle jdk.
So, two suggestions to solve this :
1、use oracle jdk 1.8
2、if you want to use openjdk 1.8, you can modify the 
TestSFTPFileSystem#testGetAccessTime  code  like code below:
{code}
  @Test
  public void testGetAccessTime() throws IOException {
Path file = touch(localFs, name.getMethodName().toLowerCase());
LocalFileSystem local = (LocalFileSystem)localFs;
java.nio.file.Path path = (local).pathToFile(file).toPath();
long accessTime1 = Files.readAttributes(path, BasicFileAttributes.class)
.lastAccessTime().toMillis();
accessTime1 = accessTime1 / 1000 * 1000;
long accessTime2 = sftpFs.getFileStatus(file).getAccessTime();
assertEquals(accessTime1, accessTime2);
  }
{code}

 [~ste...@apache.org], can this issue be closed or fixed ?

> TestSFTPFileSystem#testGetAccessTime test failure
> -
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure

2017-06-06 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038433#comment-16038433
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/6/17 9:21 AM:
--

[~Sonia] i checked this issue with the same environment and found out that the 
oracle jdk and openjdk's implements of code below is different.
{code}
Files.readAttributes(path, BasicFileAttributes.class)
{code}
That does not relate to the os system except the windows os.
Futhermore, openjdk 1.7 acts the same as oracle jdk.
So, two suggestions to solve this :
1、use oracle jdk 1.8
2、if you want to use openjdk 1.8, you can modify the 
TestSFTPFileSystem#testGetAccessTime  code  like code below:
{code}
  @Test
  public void testGetAccessTime() throws IOException {
Path file = touch(localFs, name.getMethodName().toLowerCase());
LocalFileSystem local = (LocalFileSystem)localFs;
java.nio.file.Path path = (local).pathToFile(file).toPath();
long accessTime1 = Files.readAttributes(path, BasicFileAttributes.class)
.lastAccessTime().toMillis();
accessTime1 = accessTime1 / 1000 * 1000;
long accessTime2 = sftpFs.getFileStatus(file).getAccessTime();
assertEquals(accessTime1, accessTime2);
  }
{code}

 [~ste...@apache.org], can this issue be closed or fixed ?


was (Author: hongyuan li):
[~Sonia] i checked this issue with the same environment and found out that the 
oracle jdk and openjdk's implements of code below is different.
{code}
Files.readAttributes(path, BasicFileAttributes.class)
{code}
That does not relate to the os system.
Futhermore, openjdk 1.7 acts the same as oracle jdk.
So, two suggestions to solve this :
1、use oracle jdk 1.8
2、if you want to use openjdk 1.8, you can modify the 
TestSFTPFileSystem#testGetAccessTime  code  like code below:
{code}
  @Test
  public void testGetAccessTime() throws IOException {
Path file = touch(localFs, name.getMethodName().toLowerCase());
LocalFileSystem local = (LocalFileSystem)localFs;
java.nio.file.Path path = (local).pathToFile(file).toPath();
long accessTime1 = Files.readAttributes(path, BasicFileAttributes.class)
.lastAccessTime().toMillis();
accessTime1 = accessTime1 / 1000 * 1000;
long accessTime2 = sftpFs.getFileStatus(file).getAccessTime();
assertEquals(accessTime1, accessTime2);
  }
{code}

 [~ste...@apache.org], can this issue be closed or fixed ?

> TestSFTPFileSystem#testGetAccessTime test failure
> -
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure

2017-06-06 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038433#comment-16038433
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/6/17 9:19 AM:
--

[~Sonia] i checked this issue with the same environment and found out that the 
oracle jdk and openjdk's implements of code below is different.
{code}
Files.readAttributes(path, BasicFileAttributes.class)
{code}
That does not relate to the os system.
Futhermore, openjdk 1.7 acts the same as oracle jdk.
So, two suggestions to solve this :
1、use oracle jdk 1.8
2、if you want to use openjdk 1.8, you can modify the 
TestSFTPFileSystem#testGetAccessTime  code  like code below:
{code}
  @Test
  public void testGetAccessTime() throws IOException {
Path file = touch(localFs, name.getMethodName().toLowerCase());
LocalFileSystem local = (LocalFileSystem)localFs;
java.nio.file.Path path = (local).pathToFile(file).toPath();
long accessTime1 = Files.readAttributes(path, BasicFileAttributes.class)
.lastAccessTime().toMillis();
accessTime1 = accessTime1 / 1000 * 1000;
long accessTime2 = sftpFs.getFileStatus(file).getAccessTime();
assertEquals(accessTime1, accessTime2);
  }
{code}

 [~ste...@apache.org], can this issue be closed or fixed ?


was (Author: hongyuan li):
[~Sonia] i checked this issue and found out that the oracle jdk and openjdk's 
implements of code below is different.
{code}
Files.readAttributes(path, BasicFileAttributes.class)
{code}
Futhermore, openjdk 1.7 acts the same as oracle jdk.
So, two suggestions to solve this :
1、use oracle jdk 1.8
2、if you want to use openjdk 1.8, you can modify the 
TestSFTPFileSystem#testGetAccessTime  code  like code below:
{code}
  @Test
  public void testGetAccessTime() throws IOException {
Path file = touch(localFs, name.getMethodName().toLowerCase());
LocalFileSystem local = (LocalFileSystem)localFs;
java.nio.file.Path path = (local).pathToFile(file).toPath();
long accessTime1 = Files.readAttributes(path, BasicFileAttributes.class)
.lastAccessTime().toMillis();
accessTime1 = accessTime1 / 1000 * 1000;
long accessTime2 = sftpFs.getFileStatus(file).getAccessTime();
assertEquals(accessTime1, accessTime2);
  }
{code}

 [~ste...@apache.org], can this issue be closed or fixed ?

> TestSFTPFileSystem#testGetAccessTime test failure
> -
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure

2017-06-06 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038336#comment-16038336
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/6/17 8:21 AM:
--

will test on ubuntu 14.04 using openjdk 1.8 and oracle jdk. 


was (Author: hongyuan li):
will test on ubuntu 14.04 using openjdk 1.8. 

> TestSFTPFileSystem#testGetAccessTime test failure
> -
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure

2017-06-05 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038184#comment-16038184
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/6/17 6:30 AM:
--

will update patch soon after checking it in ubuntu os


was (Author: hongyuan li):
will update patch soon.

> TestSFTPFileSystem#testGetAccessTime test failure
> -
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure

2017-06-05 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038045#comment-16038045
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/6/17 3:22 AM:
--

[~brahmareddy] [~ste...@apache.org]  on trunk and branch-2 ,seemed that 
HADOOP-14431 patch has not submitted. what happened?  


was (Author: hongyuan li):
[~brahmareddy] [~ste...@apache.org]  on trunk and branch-2 ,seemed that 
HADOOP-14431 patch has not submitted. what happend? 

> TestSFTPFileSystem#testGetAccessTime test failure
> -
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure

2017-06-05 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038045#comment-16038045
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/6/17 3:21 AM:
--

[~brahmareddy] [~ste...@apache.org]  on trunk and branch-2 ,seemed that 
HADOOP-14431 patch has not submitted. what happend? 


was (Author: hongyuan li):
[~brahmareddy] [~Steve Loughran]  on trunk and branch-2 ,seemed that 
HADOOP-14431 patch has not submitted. what happend? 

> TestSFTPFileSystem#testGetAccessTime test failure
> -
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure

2017-06-05 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038045#comment-16038045
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/6/17 3:21 AM:
--

[~brahmareddy] [~Steve Loughran]  on trunk and branch-2 ,seemed that 
HADOOP-14431 patch has not submitted. what happend? 


was (Author: hongyuan li):
[~brahmareddy] [~Steve Loughran]  on trunk and branch-2long modTime = 
attr.getMTime() * 1000; // convert to milliseconds   is still wring, what 
happend? 

> TestSFTPFileSystem#testGetAccessTime test failure
> -
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure

2017-06-05 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16037996#comment-16037996
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/6/17 2:34 AM:
--

this may runs at windows system? some system may got access time in millions, 
but most got in seconds.
the sftp api can got time in seconds.Sure, modify code can avoid this.
 [~ste...@apache.org]. I will solve this including modifitime test unit.


was (Author: hongyuan li):
this may runs at windows system? some system may got access time in millions, 
but most got in seconds.
the sftp api can got time to seconds, [~ste...@apache.org]. I will solve this 
including modifitime test unit.

> TestSFTPFileSystem#testGetAccessTime test failure
> -
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure

2017-06-05 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16037996#comment-16037996
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/6/17 2:34 AM:
--

this may runs at windows system? some system may got access time in millions, 
but most got in seconds.
the sftp api can got time to seconds, [~ste...@apache.org]. I will solve this 
including modifitime test unit.


was (Author: hongyuan li):
this may runs at windows system? 
the sftp api can got time to seconds, [~ste...@apache.org]. I will solve this 
including modifitime test unit.

> TestSFTPFileSystem#testGetAccessTime test failure
> -
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure

2017-06-05 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16037996#comment-16037996
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/6/17 2:19 AM:
--

this may runs at windows system? 
the sftp api can got time to seconds, [~ste...@apache.org]. I will solve this 
including modifitime test unit.


was (Author: hongyuan li):
this may runs at windows system? 
the sftp api can got time to seconds, [~ste...@apache.org]. Will i assign this 
to me?

> TestSFTPFileSystem#testGetAccessTime test failure
> -
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>Assignee: Hongyuan Li
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure

2017-06-05 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16037996#comment-16037996
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/6/17 2:18 AM:
--

this may runs at windows system? 
the sftp api can got time to seconds, [~ste...@apache.org]. Will i assign this 
to me?


was (Author: hongyuan li):
this may runs at windows system? 
the sftp api cannot got time to seconds, [

> TestSFTPFileSystem#testGetAccessTime test failure
> -
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Comment Edited] (HADOOP-14486) TestSFTPFileSystem#testGetAccessTime test failure

2017-06-05 Thread Hongyuan Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-14486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16037996#comment-16037996
 ] 

Hongyuan Li edited comment on HADOOP-14486 at 6/6/17 2:17 AM:
--

this may runs at windows system? 
the sftp api cannot got time to seconds, [


was (Author: hongyuan li):
this may runs at windows system.

> TestSFTPFileSystem#testGetAccessTime test failure
> -
>
> Key: HADOOP-14486
> URL: https://issues.apache.org/jira/browse/HADOOP-14486
> Project: Hadoop Common
>  Issue Type: Bug
>Affects Versions: 3.0.0-alpha4
> Environment: Ubuntu 14.04 
> x86, ppc64le
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>Reporter: Sonia Garudi
>
> The TestSFTPFileSystem#testGetAccessTime test fails consistently with the 
> error below:
> {code}
> java.lang.AssertionError: expected:<1496496040072> but was:<149649604>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.junit.Assert.assertEquals(Assert.java:542)
>   at 
> org.apache.hadoop.fs.sftp.TestSFTPFileSystem.testGetAccessTime(TestSFTPFileSystem.java:319)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org