[jira] [Work logged] (HDFS-16345) Fix test cases fail in TestBlockStoragePolicy

2021-12-08 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16345?focusedWorklogId=692470=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-692470
 ]

ASF GitHub Bot logged work on HDFS-16345:
-

Author: ASF GitHub Bot
Created on: 08/Dec/21 11:26
Start Date: 08/Dec/21 11:26
Worklog Time Spent: 10m 
  Work Description: GuoPhilipse commented on pull request #3696:
URL: https://github.com/apache/hadoop/pull/3696#issuecomment-988729027


   Thanks @ayushtkn  and @aajisaka  for your kind reivew. :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 692470)
Time Spent: 2h 40m  (was: 2.5h)

> Fix test cases fail in TestBlockStoragePolicy
> -
>
> Key: HDFS-16345
> URL: https://issues.apache.org/jira/browse/HDFS-16345
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 3.3.1
>Reporter: guophilipse
>Assignee: guophilipse
>Priority: Major
>  Labels: pull-request-available
> Fix For: 3.4.0
>
>  Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> test class ``TestBlockStoragePolicy` ` fail frequently for the 
> `BindException`, it block all normal source code build. we can improve it.
> [ERROR] Tests run: 26, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
> 49.295 s <<< FAILURE! - in org.apache.hadoop.hdfs.TestBlockStoragePolicy 
> [ERROR] 
> testChooseTargetWithTopology(org.apache.hadoop.hdfs.TestBlockStoragePolicy) 
> Time elapsed: 0.551 s <<< ERROR! java.net.BindException: Problem binding to 
> [localhost:43947] java.net.BindException: Address already in use; For more 
> details see: http://wiki.apache.org/hadoop/BindException at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at 
> org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:931) at 
> org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:827) at 
> org.apache.hadoop.ipc.Server.bind(Server.java:657) at 
> org.apache.hadoop.ipc.Server$Listener.(Server.java:1352) at 
> org.apache.hadoop.ipc.Server.(Server.java:3252) at 
> org.apache.hadoop.ipc.RPC$Server.(RPC.java:1062) at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2$Server.(ProtobufRpcEngine2.java:468)
>  at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2.getServer(ProtobufRpcEngine2.java:371)
>  at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:853) at 
> org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.(NameNodeRpcServer.java:466)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:860)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:766) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:1017) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:992) 
> at 
> org.apache.hadoop.hdfs.TestBlockStoragePolicy.testChooseTargetWithTopology(TestBlockStoragePolicy.java:1275)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498) at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
>  at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>  at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
>  at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>  at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at 
> org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
>  at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
>  at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.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 
> 

[jira] [Work logged] (HDFS-16345) Fix test cases fail in TestBlockStoragePolicy

2021-12-08 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16345?focusedWorklogId=692448=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-692448
 ]

ASF GitHub Bot logged work on HDFS-16345:
-

Author: ASF GitHub Bot
Created on: 08/Dec/21 11:05
Start Date: 08/Dec/21 11:05
Worklog Time Spent: 10m 
  Work Description: ayushtkn merged pull request #3696:
URL: https://github.com/apache/hadoop/pull/3696


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 692448)
Time Spent: 2h 20m  (was: 2h 10m)

> Fix test cases fail in TestBlockStoragePolicy
> -
>
> Key: HDFS-16345
> URL: https://issues.apache.org/jira/browse/HDFS-16345
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 3.3.1
>Reporter: guophilipse
>Assignee: guophilipse
>Priority: Major
>  Labels: pull-request-available
> Fix For: 3.4.0
>
>  Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> test class ``TestBlockStoragePolicy` ` fail frequently for the 
> `BindException`, it block all normal source code build. we can improve it.
> [ERROR] Tests run: 26, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
> 49.295 s <<< FAILURE! - in org.apache.hadoop.hdfs.TestBlockStoragePolicy 
> [ERROR] 
> testChooseTargetWithTopology(org.apache.hadoop.hdfs.TestBlockStoragePolicy) 
> Time elapsed: 0.551 s <<< ERROR! java.net.BindException: Problem binding to 
> [localhost:43947] java.net.BindException: Address already in use; For more 
> details see: http://wiki.apache.org/hadoop/BindException at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at 
> org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:931) at 
> org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:827) at 
> org.apache.hadoop.ipc.Server.bind(Server.java:657) at 
> org.apache.hadoop.ipc.Server$Listener.(Server.java:1352) at 
> org.apache.hadoop.ipc.Server.(Server.java:3252) at 
> org.apache.hadoop.ipc.RPC$Server.(RPC.java:1062) at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2$Server.(ProtobufRpcEngine2.java:468)
>  at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2.getServer(ProtobufRpcEngine2.java:371)
>  at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:853) at 
> org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.(NameNodeRpcServer.java:466)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:860)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:766) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:1017) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:992) 
> at 
> org.apache.hadoop.hdfs.TestBlockStoragePolicy.testChooseTargetWithTopology(TestBlockStoragePolicy.java:1275)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498) at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
>  at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>  at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
>  at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>  at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at 
> org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
>  at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
>  at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.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 
> 

[jira] [Work logged] (HDFS-16345) Fix test cases fail in TestBlockStoragePolicy

2021-12-08 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16345?focusedWorklogId=692449=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-692449
 ]

ASF GitHub Bot logged work on HDFS-16345:
-

Author: ASF GitHub Bot
Created on: 08/Dec/21 11:05
Start Date: 08/Dec/21 11:05
Worklog Time Spent: 10m 
  Work Description: ayushtkn commented on pull request #3696:
URL: https://github.com/apache/hadoop/pull/3696#issuecomment-988714181


   Merged, Thanx @GuoPhilipse for the contribution and @aajisaka for the 
review!!!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 692449)
Time Spent: 2.5h  (was: 2h 20m)

> Fix test cases fail in TestBlockStoragePolicy
> -
>
> Key: HDFS-16345
> URL: https://issues.apache.org/jira/browse/HDFS-16345
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 3.3.1
>Reporter: guophilipse
>Assignee: guophilipse
>Priority: Major
>  Labels: pull-request-available
> Fix For: 3.4.0
>
>  Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> test class ``TestBlockStoragePolicy` ` fail frequently for the 
> `BindException`, it block all normal source code build. we can improve it.
> [ERROR] Tests run: 26, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
> 49.295 s <<< FAILURE! - in org.apache.hadoop.hdfs.TestBlockStoragePolicy 
> [ERROR] 
> testChooseTargetWithTopology(org.apache.hadoop.hdfs.TestBlockStoragePolicy) 
> Time elapsed: 0.551 s <<< ERROR! java.net.BindException: Problem binding to 
> [localhost:43947] java.net.BindException: Address already in use; For more 
> details see: http://wiki.apache.org/hadoop/BindException at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at 
> org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:931) at 
> org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:827) at 
> org.apache.hadoop.ipc.Server.bind(Server.java:657) at 
> org.apache.hadoop.ipc.Server$Listener.(Server.java:1352) at 
> org.apache.hadoop.ipc.Server.(Server.java:3252) at 
> org.apache.hadoop.ipc.RPC$Server.(RPC.java:1062) at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2$Server.(ProtobufRpcEngine2.java:468)
>  at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2.getServer(ProtobufRpcEngine2.java:371)
>  at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:853) at 
> org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.(NameNodeRpcServer.java:466)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:860)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:766) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:1017) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:992) 
> at 
> org.apache.hadoop.hdfs.TestBlockStoragePolicy.testChooseTargetWithTopology(TestBlockStoragePolicy.java:1275)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498) at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
>  at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>  at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
>  at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>  at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at 
> org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
>  at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
>  at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
>  at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at 
> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at 
> 

[jira] [Work logged] (HDFS-16345) Fix test cases fail in TestBlockStoragePolicy

2021-12-06 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16345?focusedWorklogId=691505=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-691505
 ]

ASF GitHub Bot logged work on HDFS-16345:
-

Author: ASF GitHub Bot
Created on: 07/Dec/21 07:21
Start Date: 07/Dec/21 07:21
Worklog Time Spent: 10m 
  Work Description: hadoop-yetus commented on pull request #3696:
URL: https://github.com/apache/hadoop/pull/3696#issuecomment-987639954


   :confetti_ball: **+1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime |  Logfile | Comment |
   |::|--:|:|::|:---:|
   | +0 :ok: |  reexec  |   0m 47s |  |  Docker mode activated.  |
    _ Prechecks _ |
   | +1 :green_heart: |  dupname  |   0m  0s |  |  No case conflicting files 
found.  |
   | +0 :ok: |  codespell  |   0m  1s |  |  codespell was not available.  |
   | +1 :green_heart: |  @author  |   0m  0s |  |  The patch does not contain 
any @author tags.  |
   | +1 :green_heart: |  test4tests  |   0m  0s |  |  The patch appears to 
include 1 new or modified test files.  |
    _ trunk Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |  32m 18s |  |  trunk passed  |
   | +1 :green_heart: |  compile  |   1m 29s |  |  trunk passed with JDK 
Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04  |
   | +1 :green_heart: |  compile  |   1m 19s |  |  trunk passed with JDK 
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10  |
   | +1 :green_heart: |  checkstyle  |   1m  3s |  |  trunk passed  |
   | +1 :green_heart: |  mvnsite  |   1m 28s |  |  trunk passed  |
   | +1 :green_heart: |  javadoc  |   1m  2s |  |  trunk passed with JDK 
Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04  |
   | +1 :green_heart: |  javadoc  |   1m 33s |  |  trunk passed with JDK 
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10  |
   | +1 :green_heart: |  spotbugs  |   3m 10s |  |  trunk passed  |
   | +1 :green_heart: |  shadedclient  |  22m 16s |  |  branch has no errors 
when building and testing our client artifacts.  |
    _ Patch Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |   1m 13s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   1m 19s |  |  the patch passed with JDK 
Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04  |
   | +1 :green_heart: |  javac  |   1m 19s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   1m 13s |  |  the patch passed with JDK 
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10  |
   | +1 :green_heart: |  javac  |   1m 13s |  |  the patch passed  |
   | +1 :green_heart: |  blanks  |   0m  0s |  |  The patch has no blanks 
issues.  |
   | +1 :green_heart: |  checkstyle  |   0m 51s |  |  the patch passed  |
   | +1 :green_heart: |  mvnsite  |   1m 19s |  |  the patch passed  |
   | +1 :green_heart: |  javadoc  |   0m 52s |  |  the patch passed with JDK 
Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04  |
   | +1 :green_heart: |  javadoc  |   1m 22s |  |  the patch passed with JDK 
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10  |
   | +1 :green_heart: |  spotbugs  |   3m 15s |  |  the patch passed  |
   | +1 :green_heart: |  shadedclient  |  22m  8s |  |  patch has no errors 
when building and testing our client artifacts.  |
    _ Other Tests _ |
   | +1 :green_heart: |  unit  | 224m 38s |  |  hadoop-hdfs in the patch 
passed.  |
   | +1 :green_heart: |  asflicense  |   0m 46s |  |  The patch does not 
generate ASF License warnings.  |
   |  |   | 323m  4s |  |  |
   
   
   | Subsystem | Report/Notes |
   |--:|:-|
   | Docker | ClientAPI=1.41 ServerAPI=1.41 base: 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3696/4/artifact/out/Dockerfile
 |
   | GITHUB PR | https://github.com/apache/hadoop/pull/3696 |
   | Optional Tests | dupname asflicense compile javac javadoc mvninstall 
mvnsite unit shadedclient spotbugs checkstyle codespell |
   | uname | Linux 44538cde4e75 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 
11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/bin/hadoop.sh |
   | git revision | trunk / d3108f344878bd50b5a7e63018eb72c538c53be9 |
   | Default Java | Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10 |
   | Multi-JDK versions | 
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04 
/usr/lib/jvm/java-8-openjdk-amd64:Private 
Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10 |
   |  Test Results | 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3696/4/testReport/ |
   | Max. process+thread count | 3622 (vs. ulimit of 5500) |
   | modules | C: hadoop-hdfs-project/hadoop-hdfs U: 
hadoop-hdfs-project/hadoop-hdfs |
   | Console output | 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3696/4/console |
   | versions | git=2.25.1 maven=3.6.3 spotbugs=4.2.2 |
   | Powered by | Apache Yetus 0.14.0-SNAPSHOT https://yetus.apache.org |
   
   
   This message 

[jira] [Work logged] (HDFS-16345) Fix test cases fail in TestBlockStoragePolicy

2021-12-06 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16345?focusedWorklogId=691204=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-691204
 ]

ASF GitHub Bot logged work on HDFS-16345:
-

Author: ASF GitHub Bot
Created on: 06/Dec/21 16:43
Start Date: 06/Dec/21 16:43
Worklog Time Spent: 10m 
  Work Description: hadoop-yetus commented on pull request #3696:
URL: https://github.com/apache/hadoop/pull/3696#issuecomment-986951981


   :broken_heart: **-1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime |  Logfile | Comment |
   |::|--:|:|::|:---:|
   | +0 :ok: |  reexec  |   1m  4s |  |  Docker mode activated.  |
    _ Prechecks _ |
   | +1 :green_heart: |  dupname  |   0m  0s |  |  No case conflicting files 
found.  |
   | +0 :ok: |  codespell  |   0m  1s |  |  codespell was not available.  |
   | +1 :green_heart: |  @author  |   0m  0s |  |  The patch does not contain 
any @author tags.  |
   | +1 :green_heart: |  test4tests  |   0m  0s |  |  The patch appears to 
include 1 new or modified test files.  |
    _ trunk Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |  34m 54s |  |  trunk passed  |
   | +1 :green_heart: |  compile  |   1m 30s |  |  trunk passed with JDK 
Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04  |
   | +1 :green_heart: |  compile  |   1m 18s |  |  trunk passed with JDK 
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10  |
   | +1 :green_heart: |  checkstyle  |   0m 59s |  |  trunk passed  |
   | +1 :green_heart: |  mvnsite  |   1m 28s |  |  trunk passed  |
   | +1 :green_heart: |  javadoc  |   1m  1s |  |  trunk passed with JDK 
Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04  |
   | +1 :green_heart: |  javadoc  |   1m 34s |  |  trunk passed with JDK 
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10  |
   | +1 :green_heart: |  spotbugs  |   3m 26s |  |  trunk passed  |
   | +1 :green_heart: |  shadedclient  |  25m 48s |  |  branch has no errors 
when building and testing our client artifacts.  |
    _ Patch Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |   1m 19s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   1m 21s |  |  the patch passed with JDK 
Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04  |
   | +1 :green_heart: |  javac  |   1m 21s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   1m 12s |  |  the patch passed with JDK 
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10  |
   | +1 :green_heart: |  javac  |   1m 12s |  |  the patch passed  |
   | -1 :x: |  blanks  |   0m  0s | 
[/blanks-eol.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3696/3/artifact/out/blanks-eol.txt)
 |  The patch has 1 line(s) that end in blanks. Use git apply --whitespace=fix 
<>. Refer https://git-scm.com/docs/git-apply  |
   | +1 :green_heart: |  checkstyle  |   0m 52s |  |  the patch passed  |
   | +1 :green_heart: |  mvnsite  |   1m 20s |  |  the patch passed  |
   | +1 :green_heart: |  javadoc  |   0m 53s |  |  the patch passed with JDK 
Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04  |
   | +1 :green_heart: |  javadoc  |   1m 22s |  |  the patch passed with JDK 
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10  |
   | +1 :green_heart: |  spotbugs  |   3m 26s |  |  the patch passed  |
   | +1 :green_heart: |  shadedclient  |  25m 29s |  |  patch has no errors 
when building and testing our client artifacts.  |
    _ Other Tests _ |
   | -1 :x: |  unit  | 350m 43s | 
[/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3696/3/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt)
 |  hadoop-hdfs in the patch passed.  |
   | +1 :green_heart: |  asflicense  |   0m 38s |  |  The patch does not 
generate ASF License warnings.  |
   |  |   | 458m 46s |  |  |
   
   
   | Reason | Tests |
   |---:|:--|
   | Failed junit tests | hadoop.hdfs.TestHDFSFileSystemContract |
   
   
   | Subsystem | Report/Notes |
   |--:|:-|
   | Docker | ClientAPI=1.41 ServerAPI=1.41 base: 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3696/3/artifact/out/Dockerfile
 |
   | GITHUB PR | https://github.com/apache/hadoop/pull/3696 |
   | Optional Tests | dupname asflicense compile javac javadoc mvninstall 
mvnsite unit shadedclient spotbugs checkstyle codespell |
   | uname | Linux 7fbb4318c273 4.15.0-143-generic #147-Ubuntu SMP Wed Apr 14 
16:10:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/bin/hadoop.sh |
   | git revision | trunk / bd469d84830cbba95ade937486fa7fbb93d3fac5 |
   | Default Java | Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10 |
   | Multi-JDK versions | 
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04 
/usr/lib/jvm/java-8-openjdk-amd64:Private 
Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10 |
   |  Test Results | 

[jira] [Work logged] (HDFS-16345) Fix test cases fail in TestBlockStoragePolicy

2021-12-06 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16345?focusedWorklogId=690930=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-690930
 ]

ASF GitHub Bot logged work on HDFS-16345:
-

Author: ASF GitHub Bot
Created on: 06/Dec/21 11:51
Start Date: 06/Dec/21 11:51
Worklog Time Spent: 10m 
  Work Description: hadoop-yetus commented on pull request #3696:
URL: https://github.com/apache/hadoop/pull/3696#issuecomment-986703448


   :broken_heart: **-1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime |  Logfile | Comment |
   |::|--:|:|::|:---:|
   | +0 :ok: |  reexec  |   0m 49s |  |  Docker mode activated.  |
    _ Prechecks _ |
   | +1 :green_heart: |  dupname  |   0m  0s |  |  No case conflicting files 
found.  |
   | +0 :ok: |  codespell  |   0m  1s |  |  codespell was not available.  |
   | +1 :green_heart: |  @author  |   0m  0s |  |  The patch does not contain 
any @author tags.  |
   | +1 :green_heart: |  test4tests  |   0m  0s |  |  The patch appears to 
include 1 new or modified test files.  |
    _ trunk Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |  38m 22s |  |  trunk passed  |
   | +1 :green_heart: |  compile  |   1m 52s |  |  trunk passed with JDK 
Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04  |
   | +1 :green_heart: |  compile  |   1m 30s |  |  trunk passed with JDK 
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10  |
   | +1 :green_heart: |  checkstyle  |   1m 10s |  |  trunk passed  |
   | +1 :green_heart: |  mvnsite  |   1m 40s |  |  trunk passed  |
   | +1 :green_heart: |  javadoc  |   1m 16s |  |  trunk passed with JDK 
Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04  |
   | +1 :green_heart: |  javadoc  |   1m 49s |  |  trunk passed with JDK 
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10  |
   | +1 :green_heart: |  spotbugs  |   3m 54s |  |  trunk passed  |
   | +1 :green_heart: |  shadedclient  |  28m 37s |  |  branch has no errors 
when building and testing our client artifacts.  |
    _ Patch Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |   1m 32s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   1m 38s |  |  the patch passed with JDK 
Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04  |
   | +1 :green_heart: |  javac  |   1m 38s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   1m 30s |  |  the patch passed with JDK 
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10  |
   | +1 :green_heart: |  javac  |   1m 30s |  |  the patch passed  |
   | -1 :x: |  blanks  |   0m  0s | 
[/blanks-eol.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3696/2/artifact/out/blanks-eol.txt)
 |  The patch has 3 line(s) that end in blanks. Use git apply --whitespace=fix 
<>. Refer https://git-scm.com/docs/git-apply  |
   | +1 :green_heart: |  checkstyle  |   1m  6s |  |  the patch passed  |
   | +1 :green_heart: |  mvnsite  |   1m 32s |  |  the patch passed  |
   | +1 :green_heart: |  javadoc  |   1m  2s |  |  the patch passed with JDK 
Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04  |
   | +1 :green_heart: |  javadoc  |   1m 41s |  |  the patch passed with JDK 
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10  |
   | +1 :green_heart: |  spotbugs  |   4m 16s |  |  the patch passed  |
   | +1 :green_heart: |  shadedclient  |  29m  9s |  |  patch has no errors 
when building and testing our client artifacts.  |
    _ Other Tests _ |
   | +1 :green_heart: |  unit  | 237m 57s |  |  hadoop-hdfs in the patch 
passed.  |
   | +1 :green_heart: |  asflicense  |   0m 48s |  |  The patch does not 
generate ASF License warnings.  |
   |  |   | 359m 38s |  |  |
   
   
   | Subsystem | Report/Notes |
   |--:|:-|
   | Docker | ClientAPI=1.41 ServerAPI=1.41 base: 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3696/2/artifact/out/Dockerfile
 |
   | GITHUB PR | https://github.com/apache/hadoop/pull/3696 |
   | Optional Tests | dupname asflicense compile javac javadoc mvninstall 
mvnsite unit shadedclient spotbugs checkstyle codespell |
   | uname | Linux a2e3dc613541 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 
11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/bin/hadoop.sh |
   | git revision | trunk / d117e3433a918e4d4333a8f2cb2a9e42ec563207 |
   | Default Java | Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10 |
   | Multi-JDK versions | 
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04 
/usr/lib/jvm/java-8-openjdk-amd64:Private 
Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10 |
   |  Test Results | 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3696/2/testReport/ |
   | Max. process+thread count | 3402 (vs. ulimit of 5500) |
   | modules | C: hadoop-hdfs-project/hadoop-hdfs U: 
hadoop-hdfs-project/hadoop-hdfs |
   | Console output | 

[jira] [Work logged] (HDFS-16345) Fix test cases fail in TestBlockStoragePolicy

2021-12-06 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16345?focusedWorklogId=690834=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-690834
 ]

ASF GitHub Bot logged work on HDFS-16345:
-

Author: ASF GitHub Bot
Created on: 06/Dec/21 08:58
Start Date: 06/Dec/21 08:58
Worklog Time Spent: 10m 
  Work Description: GuoPhilipse commented on a change in pull request #3696:
URL: https://github.com/apache/hadoop/pull/3696#discussion_r762809175



##
File path: 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockStoragePolicy.java
##
@@ -1274,23 +1274,29 @@ public void testChooseTargetWithTopology() throws 
Exception {
 DFSTestUtil.formatNameNode(conf);
 NameNode namenode = new NameNode(conf);
 
-final BlockManager bm = namenode.getNamesystem().getBlockManager();
-BlockPlacementPolicy replicator = bm.getBlockPlacementPolicy();
-NetworkTopology cluster = bm.getDatanodeManager().getNetworkTopology();
-for (DatanodeDescriptor datanode : dataNodes) {
-  cluster.add(datanode);
-}
-
-DatanodeStorageInfo[] targets = replicator.chooseTarget("/foo", 3,
-dataNodes[0], Collections.emptyList(), false,
-new HashSet(), 0, policy1, null);
-System.out.println(Arrays.asList(targets));
-Assert.assertEquals(3, targets.length);
-targets = replicator.chooseTarget("/foo", 3,
-dataNodes[0], Collections.emptyList(), false,
-new HashSet(), 0, policy2, null);
-System.out.println(Arrays.asList(targets));
-Assert.assertEquals(3, targets.length);
+try{

Review comment:
   > 
   
   Thanks @ayushtkn , will update it later




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 690834)
Time Spent: 1h 40m  (was: 1.5h)

> Fix test cases fail in TestBlockStoragePolicy
> -
>
> Key: HDFS-16345
> URL: https://issues.apache.org/jira/browse/HDFS-16345
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 3.3.1
>Reporter: guophilipse
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> test class ``TestBlockStoragePolicy` ` fail frequently for the 
> `BindException`, it block all normal source code build. we can improve it.
> [ERROR] Tests run: 26, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
> 49.295 s <<< FAILURE! - in org.apache.hadoop.hdfs.TestBlockStoragePolicy 
> [ERROR] 
> testChooseTargetWithTopology(org.apache.hadoop.hdfs.TestBlockStoragePolicy) 
> Time elapsed: 0.551 s <<< ERROR! java.net.BindException: Problem binding to 
> [localhost:43947] java.net.BindException: Address already in use; For more 
> details see: http://wiki.apache.org/hadoop/BindException at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at 
> org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:931) at 
> org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:827) at 
> org.apache.hadoop.ipc.Server.bind(Server.java:657) at 
> org.apache.hadoop.ipc.Server$Listener.(Server.java:1352) at 
> org.apache.hadoop.ipc.Server.(Server.java:3252) at 
> org.apache.hadoop.ipc.RPC$Server.(RPC.java:1062) at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2$Server.(ProtobufRpcEngine2.java:468)
>  at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2.getServer(ProtobufRpcEngine2.java:371)
>  at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:853) at 
> org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.(NameNodeRpcServer.java:466)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:860)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:766) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:1017) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:992) 
> at 
> org.apache.hadoop.hdfs.TestBlockStoragePolicy.testChooseTargetWithTopology(TestBlockStoragePolicy.java:1275)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> 

[jira] [Work logged] (HDFS-16345) Fix test cases fail in TestBlockStoragePolicy

2021-12-06 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16345?focusedWorklogId=690814=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-690814
 ]

ASF GitHub Bot logged work on HDFS-16345:
-

Author: ASF GitHub Bot
Created on: 06/Dec/21 08:34
Start Date: 06/Dec/21 08:34
Worklog Time Spent: 10m 
  Work Description: ayushtkn commented on a change in pull request #3696:
URL: https://github.com/apache/hadoop/pull/3696#discussion_r762792588



##
File path: 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockStoragePolicy.java
##
@@ -1274,23 +1274,29 @@ public void testChooseTargetWithTopology() throws 
Exception {
 DFSTestUtil.formatNameNode(conf);
 NameNode namenode = new NameNode(conf);
 
-final BlockManager bm = namenode.getNamesystem().getBlockManager();
-BlockPlacementPolicy replicator = bm.getBlockPlacementPolicy();
-NetworkTopology cluster = bm.getDatanodeManager().getNetworkTopology();
-for (DatanodeDescriptor datanode : dataNodes) {
-  cluster.add(datanode);
-}
-
-DatanodeStorageInfo[] targets = replicator.chooseTarget("/foo", 3,
-dataNodes[0], Collections.emptyList(), false,
-new HashSet(), 0, policy1, null);
-System.out.println(Arrays.asList(targets));
-Assert.assertEquals(3, targets.length);
-targets = replicator.chooseTarget("/foo", 3,
-dataNodes[0], Collections.emptyList(), false,
-new HashSet(), 0, policy2, null);
-System.out.println(Arrays.asList(targets));
-Assert.assertEquals(3, targets.length);
+try{

Review comment:
   nit: looks like the code isn't formatted, atleast there should be space 
after try




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 690814)
Time Spent: 1.5h  (was: 1h 20m)

> Fix test cases fail in TestBlockStoragePolicy
> -
>
> Key: HDFS-16345
> URL: https://issues.apache.org/jira/browse/HDFS-16345
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 3.3.1
>Reporter: guophilipse
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> test class ``TestBlockStoragePolicy` ` fail frequently for the 
> `BindException`, it block all normal source code build. we can improve it.
> [ERROR] Tests run: 26, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
> 49.295 s <<< FAILURE! - in org.apache.hadoop.hdfs.TestBlockStoragePolicy 
> [ERROR] 
> testChooseTargetWithTopology(org.apache.hadoop.hdfs.TestBlockStoragePolicy) 
> Time elapsed: 0.551 s <<< ERROR! java.net.BindException: Problem binding to 
> [localhost:43947] java.net.BindException: Address already in use; For more 
> details see: http://wiki.apache.org/hadoop/BindException at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at 
> org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:931) at 
> org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:827) at 
> org.apache.hadoop.ipc.Server.bind(Server.java:657) at 
> org.apache.hadoop.ipc.Server$Listener.(Server.java:1352) at 
> org.apache.hadoop.ipc.Server.(Server.java:3252) at 
> org.apache.hadoop.ipc.RPC$Server.(RPC.java:1062) at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2$Server.(ProtobufRpcEngine2.java:468)
>  at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2.getServer(ProtobufRpcEngine2.java:371)
>  at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:853) at 
> org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.(NameNodeRpcServer.java:466)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:860)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:766) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:1017) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:992) 
> at 
> org.apache.hadoop.hdfs.TestBlockStoragePolicy.testChooseTargetWithTopology(TestBlockStoragePolicy.java:1275)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> 

[jira] [Work logged] (HDFS-16345) Fix test cases fail in TestBlockStoragePolicy

2021-12-05 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16345?focusedWorklogId=690773=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-690773
 ]

ASF GitHub Bot logged work on HDFS-16345:
-

Author: ASF GitHub Bot
Created on: 06/Dec/21 05:51
Start Date: 06/Dec/21 05:51
Worklog Time Spent: 10m 
  Work Description: GuoPhilipse commented on a change in pull request #3696:
URL: https://github.com/apache/hadoop/pull/3696#discussion_r762718753



##
File path: 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockStoragePolicy.java
##
@@ -1291,6 +1291,9 @@ public void testChooseTargetWithTopology() throws 
Exception {
 new HashSet(), 0, policy2, null);
 System.out.println(Arrays.asList(targets));
 Assert.assertEquals(3, targets.length);
+if (namenode != null) {
+  namenode.stop();
+}

Review comment:
   Thanks @ayushtkn  for your review,  have just updated the code




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 690773)
Time Spent: 1h 20m  (was: 1h 10m)

> Fix test cases fail in TestBlockStoragePolicy
> -
>
> Key: HDFS-16345
> URL: https://issues.apache.org/jira/browse/HDFS-16345
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 3.3.1
>Reporter: guophilipse
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> test class ``TestBlockStoragePolicy` ` fail frequently for the 
> `BindException`, it block all normal source code build. we can improve it.
> [ERROR] Tests run: 26, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
> 49.295 s <<< FAILURE! - in org.apache.hadoop.hdfs.TestBlockStoragePolicy 
> [ERROR] 
> testChooseTargetWithTopology(org.apache.hadoop.hdfs.TestBlockStoragePolicy) 
> Time elapsed: 0.551 s <<< ERROR! java.net.BindException: Problem binding to 
> [localhost:43947] java.net.BindException: Address already in use; For more 
> details see: http://wiki.apache.org/hadoop/BindException at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at 
> org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:931) at 
> org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:827) at 
> org.apache.hadoop.ipc.Server.bind(Server.java:657) at 
> org.apache.hadoop.ipc.Server$Listener.(Server.java:1352) at 
> org.apache.hadoop.ipc.Server.(Server.java:3252) at 
> org.apache.hadoop.ipc.RPC$Server.(RPC.java:1062) at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2$Server.(ProtobufRpcEngine2.java:468)
>  at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2.getServer(ProtobufRpcEngine2.java:371)
>  at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:853) at 
> org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.(NameNodeRpcServer.java:466)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:860)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:766) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:1017) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:992) 
> at 
> org.apache.hadoop.hdfs.TestBlockStoragePolicy.testChooseTargetWithTopology(TestBlockStoragePolicy.java:1275)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498) at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
>  at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>  at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
>  at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>  at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at 
> org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
>  at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at 

[jira] [Work logged] (HDFS-16345) Fix test cases fail in TestBlockStoragePolicy

2021-12-03 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16345?focusedWorklogId=690461=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-690461
 ]

ASF GitHub Bot logged work on HDFS-16345:
-

Author: ASF GitHub Bot
Created on: 04/Dec/21 07:36
Start Date: 04/Dec/21 07:36
Worklog Time Spent: 10m 
  Work Description: ayushtkn commented on a change in pull request #3696:
URL: https://github.com/apache/hadoop/pull/3696#discussion_r762397861



##
File path: 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockStoragePolicy.java
##
@@ -1291,6 +1291,9 @@ public void testChooseTargetWithTopology() throws 
Exception {
 new HashSet(), 0, policy2, null);
 System.out.println(Arrays.asList(targets));
 Assert.assertEquals(3, targets.length);
+if (namenode != null) {
+  namenode.stop();
+}

Review comment:
   This should be in a finally block. eg:
   Namenode namenode = new Namenode(conf)
try {
Do Something
   } finally {
 if (namenode != null) {
 namenode.stop();
   }
   
   The reason being, in case the test fails after creation of namenode, in that 
case if it isn't in the finally block the stop command won't be executed.
   
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 690461)
Time Spent: 1h 10m  (was: 1h)

> Fix test cases fail in TestBlockStoragePolicy
> -
>
> Key: HDFS-16345
> URL: https://issues.apache.org/jira/browse/HDFS-16345
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 3.3.1
>Reporter: guophilipse
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> test class ``TestBlockStoragePolicy` ` fail frequently for the 
> `BindException`, it block all normal source code build. we can improve it.
> [ERROR] Tests run: 26, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
> 49.295 s <<< FAILURE! - in org.apache.hadoop.hdfs.TestBlockStoragePolicy 
> [ERROR] 
> testChooseTargetWithTopology(org.apache.hadoop.hdfs.TestBlockStoragePolicy) 
> Time elapsed: 0.551 s <<< ERROR! java.net.BindException: Problem binding to 
> [localhost:43947] java.net.BindException: Address already in use; For more 
> details see: http://wiki.apache.org/hadoop/BindException at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at 
> org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:931) at 
> org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:827) at 
> org.apache.hadoop.ipc.Server.bind(Server.java:657) at 
> org.apache.hadoop.ipc.Server$Listener.(Server.java:1352) at 
> org.apache.hadoop.ipc.Server.(Server.java:3252) at 
> org.apache.hadoop.ipc.RPC$Server.(RPC.java:1062) at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2$Server.(ProtobufRpcEngine2.java:468)
>  at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2.getServer(ProtobufRpcEngine2.java:371)
>  at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:853) at 
> org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.(NameNodeRpcServer.java:466)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:860)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:766) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:1017) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:992) 
> at 
> org.apache.hadoop.hdfs.TestBlockStoragePolicy.testChooseTargetWithTopology(TestBlockStoragePolicy.java:1275)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498) at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
>  at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>  at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
>  at 
> 

[jira] [Work logged] (HDFS-16345) Fix test cases fail in TestBlockStoragePolicy

2021-11-24 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16345?focusedWorklogId=685684=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-685684
 ]

ASF GitHub Bot logged work on HDFS-16345:
-

Author: ASF GitHub Bot
Created on: 24/Nov/21 08:04
Start Date: 24/Nov/21 08:04
Worklog Time Spent: 10m 
  Work Description: GuoPhilipse edited a comment on pull request #3696:
URL: https://github.com/apache/hadoop/pull/3696#issuecomment-976220112


   cc @aajisaka @ayushtkn 
   here are several PR tests fail for BindException of  
`TestBlockStoragePolicy` class.
   
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3705/1/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
   
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3684/4/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
   
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3661/4/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
   
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3714/1/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
   
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3713/2/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 685684)
Time Spent: 1h  (was: 50m)

> Fix test cases fail in TestBlockStoragePolicy
> -
>
> Key: HDFS-16345
> URL: https://issues.apache.org/jira/browse/HDFS-16345
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 3.3.1
>Reporter: guo
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> test class ``TestBlockStoragePolicy` ` fail frequently for the 
> `BindException`, it block all normal source code build. we can improve it.
> [ERROR] Tests run: 26, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
> 49.295 s <<< FAILURE! - in org.apache.hadoop.hdfs.TestBlockStoragePolicy 
> [ERROR] 
> testChooseTargetWithTopology(org.apache.hadoop.hdfs.TestBlockStoragePolicy) 
> Time elapsed: 0.551 s <<< ERROR! java.net.BindException: Problem binding to 
> [localhost:43947] java.net.BindException: Address already in use; For more 
> details see: http://wiki.apache.org/hadoop/BindException at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at 
> org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:931) at 
> org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:827) at 
> org.apache.hadoop.ipc.Server.bind(Server.java:657) at 
> org.apache.hadoop.ipc.Server$Listener.(Server.java:1352) at 
> org.apache.hadoop.ipc.Server.(Server.java:3252) at 
> org.apache.hadoop.ipc.RPC$Server.(RPC.java:1062) at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2$Server.(ProtobufRpcEngine2.java:468)
>  at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2.getServer(ProtobufRpcEngine2.java:371)
>  at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:853) at 
> org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.(NameNodeRpcServer.java:466)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:860)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:766) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:1017) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:992) 
> at 
> org.apache.hadoop.hdfs.TestBlockStoragePolicy.testChooseTargetWithTopology(TestBlockStoragePolicy.java:1275)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498) at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
>  at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>  at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
>  at 
> 

[jira] [Work logged] (HDFS-16345) Fix test cases fail in TestBlockStoragePolicy

2021-11-23 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16345?focusedWorklogId=685586=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-685586
 ]

ASF GitHub Bot logged work on HDFS-16345:
-

Author: ASF GitHub Bot
Created on: 24/Nov/21 02:33
Start Date: 24/Nov/21 02:33
Worklog Time Spent: 10m 
  Work Description: GuoPhilipse edited a comment on pull request #3696:
URL: https://github.com/apache/hadoop/pull/3696#issuecomment-976220112


   cc @aajisaka @ayushtkn 
   here are several PR tests fail for BindException of  
`TestBlockStoragePolicy` class.
   
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3705/1/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
   
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3684/4/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
   
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3661/4/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
   
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3714/1/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 685586)
Time Spent: 50m  (was: 40m)

> Fix test cases fail in TestBlockStoragePolicy
> -
>
> Key: HDFS-16345
> URL: https://issues.apache.org/jira/browse/HDFS-16345
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 3.3.1
>Reporter: guo
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 50m
>  Remaining Estimate: 0h
>
> test class ``TestBlockStoragePolicy` ` fail frequently for the 
> `BindException`, it block all normal source code build. we can improve it.
> [ERROR] Tests run: 26, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
> 49.295 s <<< FAILURE! - in org.apache.hadoop.hdfs.TestBlockStoragePolicy 
> [ERROR] 
> testChooseTargetWithTopology(org.apache.hadoop.hdfs.TestBlockStoragePolicy) 
> Time elapsed: 0.551 s <<< ERROR! java.net.BindException: Problem binding to 
> [localhost:43947] java.net.BindException: Address already in use; For more 
> details see: http://wiki.apache.org/hadoop/BindException at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at 
> org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:931) at 
> org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:827) at 
> org.apache.hadoop.ipc.Server.bind(Server.java:657) at 
> org.apache.hadoop.ipc.Server$Listener.(Server.java:1352) at 
> org.apache.hadoop.ipc.Server.(Server.java:3252) at 
> org.apache.hadoop.ipc.RPC$Server.(RPC.java:1062) at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2$Server.(ProtobufRpcEngine2.java:468)
>  at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2.getServer(ProtobufRpcEngine2.java:371)
>  at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:853) at 
> org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.(NameNodeRpcServer.java:466)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:860)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:766) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:1017) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:992) 
> at 
> org.apache.hadoop.hdfs.TestBlockStoragePolicy.testChooseTargetWithTopology(TestBlockStoragePolicy.java:1275)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498) at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
>  at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>  at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
>  at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>  at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at 
> 

[jira] [Work logged] (HDFS-16345) Fix test cases fail in TestBlockStoragePolicy

2021-11-22 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16345?focusedWorklogId=685091=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-685091
 ]

ASF GitHub Bot logged work on HDFS-16345:
-

Author: ASF GitHub Bot
Created on: 23/Nov/21 07:24
Start Date: 23/Nov/21 07:24
Worklog Time Spent: 10m 
  Work Description: GuoPhilipse commented on pull request #3696:
URL: https://github.com/apache/hadoop/pull/3696#issuecomment-976220112


   cc @aajisaka @ayushtkn 
   here are several PR tests fail for BindException of  
`TestBlockStoragePolicy` class.
   
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3705/1/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
   
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3684/4/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
   
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3661/4/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 685091)
Time Spent: 40m  (was: 0.5h)

> Fix test cases fail in TestBlockStoragePolicy
> -
>
> Key: HDFS-16345
> URL: https://issues.apache.org/jira/browse/HDFS-16345
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: build
>Affects Versions: 3.3.1
>Reporter: guo
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> test class ``TestBlockStoragePolicy` ` fail frequently for the 
> `BindException`, it block all normal source code build. we can improve it.
> [ERROR] Tests run: 26, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
> 49.295 s <<< FAILURE! - in org.apache.hadoop.hdfs.TestBlockStoragePolicy 
> [ERROR] 
> testChooseTargetWithTopology(org.apache.hadoop.hdfs.TestBlockStoragePolicy) 
> Time elapsed: 0.551 s <<< ERROR! java.net.BindException: Problem binding to 
> [localhost:43947] java.net.BindException: Address already in use; For more 
> details see: http://wiki.apache.org/hadoop/BindException at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at 
> org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:931) at 
> org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:827) at 
> org.apache.hadoop.ipc.Server.bind(Server.java:657) at 
> org.apache.hadoop.ipc.Server$Listener.(Server.java:1352) at 
> org.apache.hadoop.ipc.Server.(Server.java:3252) at 
> org.apache.hadoop.ipc.RPC$Server.(RPC.java:1062) at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2$Server.(ProtobufRpcEngine2.java:468)
>  at 
> org.apache.hadoop.ipc.ProtobufRpcEngine2.getServer(ProtobufRpcEngine2.java:371)
>  at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:853) at 
> org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.(NameNodeRpcServer.java:466)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:860)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:766) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:1017) 
> at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:992) 
> at 
> org.apache.hadoop.hdfs.TestBlockStoragePolicy.testChooseTargetWithTopology(TestBlockStoragePolicy.java:1275)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498) at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
>  at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>  at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
>  at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>  at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at 
> org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
>  at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at 
> 

[jira] [Work logged] (HDFS-16345) Fix test cases fail in TestBlockStoragePolicy

2021-11-21 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16345?focusedWorklogId=684478=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-684478
 ]

ASF GitHub Bot logged work on HDFS-16345:
-

Author: ASF GitHub Bot
Created on: 21/Nov/21 23:13
Start Date: 21/Nov/21 23:13
Worklog Time Spent: 10m 
  Work Description: hadoop-yetus commented on pull request #3696:
URL: https://github.com/apache/hadoop/pull/3696#issuecomment-974915941


   :confetti_ball: **+1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime |  Logfile | Comment |
   |::|--:|:|::|:---:|
   | +0 :ok: |  reexec  |   0m 36s |  |  Docker mode activated.  |
    _ Prechecks _ |
   | +1 :green_heart: |  dupname  |   0m  0s |  |  No case conflicting files 
found.  |
   | +0 :ok: |  codespell  |   0m  0s |  |  codespell was not available.  |
   | +1 :green_heart: |  @author  |   0m  0s |  |  The patch does not contain 
any @author tags.  |
   | +1 :green_heart: |  test4tests  |   0m  0s |  |  The patch appears to 
include 1 new or modified test files.  |
    _ trunk Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |  32m 14s |  |  trunk passed  |
   | +1 :green_heart: |  compile  |   1m 23s |  |  trunk passed with JDK 
Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04  |
   | +1 :green_heart: |  compile  |   1m 17s |  |  trunk passed with JDK 
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10  |
   | +1 :green_heart: |  checkstyle  |   1m  1s |  |  trunk passed  |
   | +1 :green_heart: |  mvnsite  |   1m 29s |  |  trunk passed  |
   | +1 :green_heart: |  javadoc  |   0m 59s |  |  trunk passed with JDK 
Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04  |
   | +1 :green_heart: |  javadoc  |   1m 27s |  |  trunk passed with JDK 
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10  |
   | +1 :green_heart: |  spotbugs  |   3m 14s |  |  trunk passed  |
   | +1 :green_heart: |  shadedclient  |  22m 13s |  |  branch has no errors 
when building and testing our client artifacts.  |
    _ Patch Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |   1m 15s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   1m 17s |  |  the patch passed with JDK 
Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04  |
   | +1 :green_heart: |  javac  |   1m 17s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   1m 12s |  |  the patch passed with JDK 
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10  |
   | +1 :green_heart: |  javac  |   1m 12s |  |  the patch passed  |
   | +1 :green_heart: |  blanks  |   0m  0s |  |  The patch has no blanks 
issues.  |
   | +1 :green_heart: |  checkstyle  |   0m 52s |  |  the patch passed  |
   | +1 :green_heart: |  mvnsite  |   1m 15s |  |  the patch passed  |
   | +1 :green_heart: |  javadoc  |   0m 50s |  |  the patch passed with JDK 
Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04  |
   | +1 :green_heart: |  javadoc  |   1m 23s |  |  the patch passed with JDK 
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10  |
   | +1 :green_heart: |  spotbugs  |   3m 11s |  |  the patch passed  |
   | +1 :green_heart: |  shadedclient  |  21m 53s |  |  patch has no errors 
when building and testing our client artifacts.  |
    _ Other Tests _ |
   | +1 :green_heart: |  unit  | 225m 26s |  |  hadoop-hdfs in the patch 
passed.  |
   | +1 :green_heart: |  asflicense  |   0m 47s |  |  The patch does not 
generate ASF License warnings.  |
   |  |   | 322m 53s |  |  |
   
   
   | Subsystem | Report/Notes |
   |--:|:-|
   | Docker | ClientAPI=1.41 ServerAPI=1.41 base: 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3696/1/artifact/out/Dockerfile
 |
   | GITHUB PR | https://github.com/apache/hadoop/pull/3696 |
   | Optional Tests | dupname asflicense compile javac javadoc mvninstall 
mvnsite unit shadedclient spotbugs checkstyle codespell |
   | uname | Linux a3a1f7994608 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 
11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/bin/hadoop.sh |
   | git revision | trunk / 2c092dbc5ab6258e340f67cc116a570fb1c9eb6e |
   | Default Java | Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10 |
   | Multi-JDK versions | 
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04 
/usr/lib/jvm/java-8-openjdk-amd64:Private 
Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10 |
   |  Test Results | 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3696/1/testReport/ |
   | Max. process+thread count | 3594 (vs. ulimit of 5500) |
   | modules | C: hadoop-hdfs-project/hadoop-hdfs U: 
hadoop-hdfs-project/hadoop-hdfs |
   | Console output | 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3696/1/console |
   | versions | git=2.25.1 maven=3.6.3 spotbugs=4.2.2 |
   | Powered by | Apache Yetus 0.14.0-SNAPSHOT https://yetus.apache.org |
   
   
   This message 

[jira] [Work logged] (HDFS-16345) Fix test cases fail in TestBlockStoragePolicy

2021-11-21 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16345?focusedWorklogId=684436=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-684436
 ]

ASF GitHub Bot logged work on HDFS-16345:
-

Author: ASF GitHub Bot
Created on: 21/Nov/21 19:41
Start Date: 21/Nov/21 19:41
Worklog Time Spent: 10m 
  Work Description: GuoPhilipse opened a new pull request #3696:
URL: https://github.com/apache/hadoop/pull/3696


   test class ``TestBlockStoragePolicy` ` fail frequently for the 
`BindException`, it block all normal source code build. we can improve it.
   
   [ERROR] Tests run: 26, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
49.295 s <<< FAILURE! - in org.apache.hadoop.hdfs.TestBlockStoragePolicy 
[ERROR] 
testChooseTargetWithTopology(org.apache.hadoop.hdfs.TestBlockStoragePolicy) 
Time elapsed: 0.551 s <<< ERROR! java.net.BindException: Problem binding to 
[localhost:43947] java.net.BindException: Address already in use; For more 
details see: http://wiki.apache.org/hadoop/BindException at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
 at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at 
org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:931) at 
org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:827) at 
org.apache.hadoop.ipc.Server.bind(Server.java:657) at 
org.apache.hadoop.ipc.Server$Listener.(Server.java:1352) at 
org.apache.hadoop.ipc.Server.(Server.java:3252) at 
org.apache.hadoop.ipc.RPC$Server.(RPC.java:1062) at 
org.apache.hadoop.ipc.ProtobufRpcEngine2$Server.(ProtobufRpcEngine2.java:468)
 at 
org.apache.hadoop.ipc.ProtobufRpcEngine2.getServer(ProtobufRpcEngine2.java:371) 
at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:853) at 
org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.(NameNodeRpcServer.java:466)
 at 
org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:860)
 at 
org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:766) 
at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:1017) 
at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:992) at 
org.apache.hadoop.hdfs.TestBlockStoragePolicy.testChooseTargetWithTopology(TestBlockStoragePolicy.java:1275)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498) at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
 at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
 at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
 at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
 at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at 
org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
 at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
 at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.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(JUnit4Provider.java:365)
 at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
 at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
 at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) 
at 
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
 at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
 at 
org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) 
Caused by: java.net.BindException: Address already in use at 
sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:461) at 
sun.nio.ch.Net.bind(Net.java:453) at 

[jira] [Work logged] (HDFS-16345) Fix test cases fail in TestBlockStoragePolicy

2021-11-21 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16345?focusedWorklogId=684337=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-684337
 ]

ASF GitHub Bot logged work on HDFS-16345:
-

Author: ASF GitHub Bot
Created on: 21/Nov/21 17:49
Start Date: 21/Nov/21 17:49
Worklog Time Spent: 10m 
  Work Description: GuoPhilipse opened a new pull request #3696:
URL: https://github.com/apache/hadoop/pull/3696


   test class ``TestBlockStoragePolicy` ` fail frequently for the 
`BindException`, it block all normal source code build. we can improve it.
   
   [ERROR] Tests run: 26, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
49.295 s <<< FAILURE! - in org.apache.hadoop.hdfs.TestBlockStoragePolicy 
[ERROR] 
testChooseTargetWithTopology(org.apache.hadoop.hdfs.TestBlockStoragePolicy) 
Time elapsed: 0.551 s <<< ERROR! java.net.BindException: Problem binding to 
[localhost:43947] java.net.BindException: Address already in use; For more 
details see: http://wiki.apache.org/hadoop/BindException at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
 at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at 
org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:931) at 
org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:827) at 
org.apache.hadoop.ipc.Server.bind(Server.java:657) at 
org.apache.hadoop.ipc.Server$Listener.(Server.java:1352) at 
org.apache.hadoop.ipc.Server.(Server.java:3252) at 
org.apache.hadoop.ipc.RPC$Server.(RPC.java:1062) at 
org.apache.hadoop.ipc.ProtobufRpcEngine2$Server.(ProtobufRpcEngine2.java:468)
 at 
org.apache.hadoop.ipc.ProtobufRpcEngine2.getServer(ProtobufRpcEngine2.java:371) 
at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:853) at 
org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.(NameNodeRpcServer.java:466)
 at 
org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:860)
 at 
org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:766) 
at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:1017) 
at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:992) at 
org.apache.hadoop.hdfs.TestBlockStoragePolicy.testChooseTargetWithTopology(TestBlockStoragePolicy.java:1275)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498) at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
 at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
 at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
 at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
 at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at 
org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
 at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
 at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.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(JUnit4Provider.java:365)
 at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
 at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
 at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) 
at 
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
 at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
 at 
org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) 
Caused by: java.net.BindException: Address already in use at 
sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:461) at 
sun.nio.ch.Net.bind(Net.java:453) at