You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Masanori Itoh (Jira)" <ji...@apache.org> on 2021/10/16 11:33:00 UTC

[jira] [Updated] (HDDS-5859) testGetUsed() in HDDS Common fails.

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

Masanori Itoh updated HDDS-5859:
--------------------------------
    Description: 
{{I got the following test error when I tried to build from the master branch. Although README.md says to skip tests by adding `}}{{-DskipTests`  build itself succeeds, is this an expected behaviour?}}

 

Regarding the error details, maybe it could be related that I have source tree on NFS.

 

{{* reproduce condititions}}

{{$ git log -n 1 --oneline}}
 {{0e5ad313c (HEAD -> master, origin/master, origin/HEAD) HDDS-5856. Bump Spring to 5.2.17 (#2738)}}
 {{$ java -version}}
 {{openjdk version "11.0.11" 2021-04-20}}
 {{OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)}}
 {{OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)}}
 {{$ mvn -version}}
 {{Apache Maven 3.6.3}}
 {{Maven home: /usr/share/maven}}
 {{Java version: 11.0.11, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64}}
 {{Default locale: en_US, platform encoding: UTF-8}}
 {{OS name: "linux", version: "5.4.0-40-generic", arch: "amd64", family: "unix"}}
 \{{}}

 
 * maven build summary

[INFO] ------------------------------------------------------------------------
 [INFO] Reactor Summary for Apache Ozone Main 1.2.0-SNAPSHOT:
 [INFO]
 [INFO] Apache Ozone Main .................................. SUCCESS [ 7.780 s]
 [INFO] Apache Ozone HDDS .................................. SUCCESS [ 1.691 s]
 [INFO] Apache Ozone HDDS Hadoop Client dependencies ....... SUCCESS [ 3.139 s]
 [INFO] Apache Ozone HDDS Hadoop Test dependencies ......... SUCCESS [ 0.540 s]
 [INFO] Apache Ozone HDDS Hadoop Server dependencies ....... SUCCESS [ 2.404 s]
 [INFO] Apache Ozone HDDS Client Interface ................. SUCCESS [ 12.631 s]
 [INFO] Apache Ozone HDDS Admin Interface .................. SUCCESS [ 3.336 s]
 [INFO] Apache Ozone HDDS Server Interface ................. SUCCESS [ 4.923 s]
 [INFO] Apache Ozone HDDS Test Utils ....................... SUCCESS [ 4.168 s]
 [INFO] Apache Ozone HDDS Config ........................... SUCCESS [ 16.149 s]
 [INFO] Apache Ozone HDDS Common ........................... FAILURE [01:52 min]
 [INFO] Apache Ozone HDDS Client ........................... SKIPPED
 [INFO] Apache Ozone HDDS Server Framework ................. SKIPPED
 [INFO] Apache Ozone/HDDS Documentation .................... SKIPPED

 

{{* Error details (excerption)}}

 

{{[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.357 s -}}
 \{{ in org.apache.hadoop.hdds.fs.TestSaveSpaceUsageToFile}}
 {{[INFO] Running org.apache.hadoop.hdds.fs.TestDU}}
 {{[ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.257 s}}
 {{<<< FAILURE! - in org.apache.hadoop.hdds.fs.TestDU}}
 {{[ERROR] testGetUsed(org.apache.hadoop.hdds.fs.TestDU) Time elapsed: 0.193 s <<}}
 {{< FAILURE!}}
 {{org.opentest4j.AssertionFailedError: Invalid on-disk size: 4096, expected to be}}
 {{in [32768, 40960] ==> expected: <true> but was: <false>}}
 \{{ at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)}}
 \{{ at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:46)}}
 \{{ at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:170)}}
 \{{ at org.apache.hadoop.hdds.fs.TestDU.assertFileSize(TestDU.java:106)}}
 \{{ at org.apache.hadoop.hdds.fs.TestDU.testGetUsed(TestDU.java:88)}}
 \{{ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nativ}}
 {{e Method)}}
 \{{ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Native}}
 {{MethodAccessorImpl.java:62)}}
 \{{ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(De}}
 {{legatingMethodAccessorImpl.java:43)}}
 \{{ at java.base/java.lang.reflect.Method.invoke(Method.java:566)}}
 \{{ at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework}}
 {{Method.java:59)}}
 \{{ at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal}}
 {{lable.java:12)}}
 \{{ at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe}}
 {{thod.java:56)}}
 \{{ at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMet}}
 {{hod.java:17)}}
 \{{ at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.}}
 {{java:26)}}
 \{{ at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.ja}}
 {{va:27)}}
 \{{ at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)}}
 \{{ at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassR}}
 {{unner.java:100)}}
 \{{ at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)}}
 \{{ at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun}}
 {{ner.java:103)}}
 \{{ at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun}}
 {{ner.java:63)}}
 \{{ at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)}}
 \{{ at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)}}
 \{{ at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)}}
 \{{ at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)}}
 \{{ at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)}}
 \{{ at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)}}

at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
 at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provide
 r.java:365)
 at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUni
 t4Provider.java:273)
 at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4
 Provider.java:238)
 at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider
 .java:159)
 at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameCla
 ssLoader(ForkedBooter.java:384)
 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Fork
 edBooter.java:345)
 at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.ja
 va:126)
 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:
 418)

[INFO] Running org.apache.hadoop.hdds.fs.TestSpaceUsageFactory

  was:
{{I got the following test error when I tried to build from the master branch. Although README.md says to skip tests by adding `}}{{-DskipTests`  build itself succeeds, is this an expected behaviour?}}


{{* reproduce condititions}}

{{$ git log -n 1 --oneline}}
{{0e5ad313c (HEAD -> master, origin/master, origin/HEAD) HDDS-5856. Bump Spring to 5.2.17 (#2738)}}
{{$ java -version}}
{{openjdk version "11.0.11" 2021-04-20}}
{{OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)}}
{{OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)}}
{{$ mvn -version}}
{{Apache Maven 3.6.3}}
{{Maven home: /usr/share/maven}}
{{Java version: 11.0.11, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64}}
{{Default locale: en_US, platform encoding: UTF-8}}
{{OS name: "linux", version: "5.4.0-40-generic", arch: "amd64", family: "unix"}}
{{}}

 

* maven build summary

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Apache Ozone Main 1.2.0-SNAPSHOT:
[INFO]
[INFO] Apache Ozone Main .................................. SUCCESS [ 7.780 s]
[INFO] Apache Ozone HDDS .................................. SUCCESS [ 1.691 s]
[INFO] Apache Ozone HDDS Hadoop Client dependencies ....... SUCCESS [ 3.139 s]
[INFO] Apache Ozone HDDS Hadoop Test dependencies ......... SUCCESS [ 0.540 s]
[INFO] Apache Ozone HDDS Hadoop Server dependencies ....... SUCCESS [ 2.404 s]
[INFO] Apache Ozone HDDS Client Interface ................. SUCCESS [ 12.631 s]
[INFO] Apache Ozone HDDS Admin Interface .................. SUCCESS [ 3.336 s]
[INFO] Apache Ozone HDDS Server Interface ................. SUCCESS [ 4.923 s]
[INFO] Apache Ozone HDDS Test Utils ....................... SUCCESS [ 4.168 s]
[INFO] Apache Ozone HDDS Config ........................... SUCCESS [ 16.149 s]
[INFO] Apache Ozone HDDS Common ........................... FAILURE [01:52 min]
[INFO] Apache Ozone HDDS Client ........................... SKIPPED
[INFO] Apache Ozone HDDS Server Framework ................. SKIPPED
[INFO] Apache Ozone/HDDS Documentation .................... SKIPPED

 

{{* Error details (excerption)}}

 

{{[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.357 s -}}
{{ in org.apache.hadoop.hdds.fs.TestSaveSpaceUsageToFile}}
{{[INFO] Running org.apache.hadoop.hdds.fs.TestDU}}
{{[ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.257 s}}
{{<<< FAILURE! - in org.apache.hadoop.hdds.fs.TestDU}}
{{[ERROR] testGetUsed(org.apache.hadoop.hdds.fs.TestDU) Time elapsed: 0.193 s <<}}
{{< FAILURE!}}
{{org.opentest4j.AssertionFailedError: Invalid on-disk size: 4096, expected to be}}
{{in [32768, 40960] ==> expected: <true> but was: <false>}}
{{ at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)}}
{{ at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:46)}}
{{ at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:170)}}
{{ at org.apache.hadoop.hdds.fs.TestDU.assertFileSize(TestDU.java:106)}}
{{ at org.apache.hadoop.hdds.fs.TestDU.testGetUsed(TestDU.java:88)}}
{{ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nativ}}
{{e Method)}}
{{ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Native}}
{{MethodAccessorImpl.java:62)}}
{{ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(De}}
{{legatingMethodAccessorImpl.java:43)}}
{{ at java.base/java.lang.reflect.Method.invoke(Method.java:566)}}
{{ at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework}}
{{Method.java:59)}}
{{ at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal}}
{{lable.java:12)}}
{{ at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe}}
{{thod.java:56)}}
{{ at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMet}}
{{hod.java:17)}}
{{ at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.}}
{{java:26)}}
{{ at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.ja}}
{{va:27)}}
{{ at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)}}
{{ at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassR}}
{{unner.java:100)}}
{{ at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)}}
{{ at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun}}
{{ner.java:103)}}
{{ at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun}}
{{ner.java:63)}}
{{ at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)}}
{{ at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)}}
{{ at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)}}
{{ at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)}}
{{ at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)}}
{{ at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)}}

at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
 at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provide
r.java:365)
 at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUni
t4Provider.java:273)
 at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4
Provider.java:238)
 at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider
.java:159)
 at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameCla
ssLoader(ForkedBooter.java:384)
 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Fork
edBooter.java:345)
 at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.ja
va:126)
 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:
418)

[INFO] Running org.apache.hadoop.hdds.fs.TestSpaceUsageFactory


> testGetUsed() in HDDS Common fails.
> -----------------------------------
>
>                 Key: HDDS-5859
>                 URL: https://issues.apache.org/jira/browse/HDDS-5859
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: build
>            Reporter: Masanori Itoh
>            Priority: Major
>
> {{I got the following test error when I tried to build from the master branch. Although README.md says to skip tests by adding `}}{{-DskipTests`  build itself succeeds, is this an expected behaviour?}}
>  
> Regarding the error details, maybe it could be related that I have source tree on NFS.
>  
> {{* reproduce condititions}}
> {{$ git log -n 1 --oneline}}
>  {{0e5ad313c (HEAD -> master, origin/master, origin/HEAD) HDDS-5856. Bump Spring to 5.2.17 (#2738)}}
>  {{$ java -version}}
>  {{openjdk version "11.0.11" 2021-04-20}}
>  {{OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)}}
>  {{OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)}}
>  {{$ mvn -version}}
>  {{Apache Maven 3.6.3}}
>  {{Maven home: /usr/share/maven}}
>  {{Java version: 11.0.11, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64}}
>  {{Default locale: en_US, platform encoding: UTF-8}}
>  {{OS name: "linux", version: "5.4.0-40-generic", arch: "amd64", family: "unix"}}
>  \{{}}
>  
>  * maven build summary
> [INFO] ------------------------------------------------------------------------
>  [INFO] Reactor Summary for Apache Ozone Main 1.2.0-SNAPSHOT:
>  [INFO]
>  [INFO] Apache Ozone Main .................................. SUCCESS [ 7.780 s]
>  [INFO] Apache Ozone HDDS .................................. SUCCESS [ 1.691 s]
>  [INFO] Apache Ozone HDDS Hadoop Client dependencies ....... SUCCESS [ 3.139 s]
>  [INFO] Apache Ozone HDDS Hadoop Test dependencies ......... SUCCESS [ 0.540 s]
>  [INFO] Apache Ozone HDDS Hadoop Server dependencies ....... SUCCESS [ 2.404 s]
>  [INFO] Apache Ozone HDDS Client Interface ................. SUCCESS [ 12.631 s]
>  [INFO] Apache Ozone HDDS Admin Interface .................. SUCCESS [ 3.336 s]
>  [INFO] Apache Ozone HDDS Server Interface ................. SUCCESS [ 4.923 s]
>  [INFO] Apache Ozone HDDS Test Utils ....................... SUCCESS [ 4.168 s]
>  [INFO] Apache Ozone HDDS Config ........................... SUCCESS [ 16.149 s]
>  [INFO] Apache Ozone HDDS Common ........................... FAILURE [01:52 min]
>  [INFO] Apache Ozone HDDS Client ........................... SKIPPED
>  [INFO] Apache Ozone HDDS Server Framework ................. SKIPPED
>  [INFO] Apache Ozone/HDDS Documentation .................... SKIPPED
>  
> {{* Error details (excerption)}}
>  
> {{[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.357 s -}}
>  \{{ in org.apache.hadoop.hdds.fs.TestSaveSpaceUsageToFile}}
>  {{[INFO] Running org.apache.hadoop.hdds.fs.TestDU}}
>  {{[ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.257 s}}
>  {{<<< FAILURE! - in org.apache.hadoop.hdds.fs.TestDU}}
>  {{[ERROR] testGetUsed(org.apache.hadoop.hdds.fs.TestDU) Time elapsed: 0.193 s <<}}
>  {{< FAILURE!}}
>  {{org.opentest4j.AssertionFailedError: Invalid on-disk size: 4096, expected to be}}
>  {{in [32768, 40960] ==> expected: <true> but was: <false>}}
>  \{{ at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)}}
>  \{{ at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:46)}}
>  \{{ at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:170)}}
>  \{{ at org.apache.hadoop.hdds.fs.TestDU.assertFileSize(TestDU.java:106)}}
>  \{{ at org.apache.hadoop.hdds.fs.TestDU.testGetUsed(TestDU.java:88)}}
>  \{{ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nativ}}
>  {{e Method)}}
>  \{{ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Native}}
>  {{MethodAccessorImpl.java:62)}}
>  \{{ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(De}}
>  {{legatingMethodAccessorImpl.java:43)}}
>  \{{ at java.base/java.lang.reflect.Method.invoke(Method.java:566)}}
>  \{{ at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework}}
>  {{Method.java:59)}}
>  \{{ at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal}}
>  {{lable.java:12)}}
>  \{{ at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe}}
>  {{thod.java:56)}}
>  \{{ at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMet}}
>  {{hod.java:17)}}
>  \{{ at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.}}
>  {{java:26)}}
>  \{{ at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.ja}}
>  {{va:27)}}
>  \{{ at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)}}
>  \{{ at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassR}}
>  {{unner.java:100)}}
>  \{{ at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)}}
>  \{{ at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun}}
>  {{ner.java:103)}}
>  \{{ at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun}}
>  {{ner.java:63)}}
>  \{{ at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)}}
>  \{{ at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)}}
>  \{{ at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)}}
>  \{{ at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)}}
>  \{{ at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)}}
>  \{{ at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)}}
> at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
>  at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provide
>  r.java:365)
>  at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUni
>  t4Provider.java:273)
>  at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4
>  Provider.java:238)
>  at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider
>  .java:159)
>  at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameCla
>  ssLoader(ForkedBooter.java:384)
>  at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Fork
>  edBooter.java:345)
>  at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.ja
>  va:126)
>  at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:
>  418)
> [INFO] Running org.apache.hadoop.hdds.fs.TestSpaceUsageFactory



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org