Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14023

TestBalancerWithMultipleNameNodes#test1OutOf2BlockpoolsWithBlockPoolPolicy times out sometimes

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      While running the tests for HDFS-14021, it seems like the test times out:

      java.lang.Exception: test timed out after 600000 milliseconds
      	at java.lang.Thread.sleep(Native Method)
      	at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithMultipleNameNodes.sleep(TestBalancerWithMultipleNameNodes.java:353)
      	at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithMultipleNameNodes.wait(TestBalancerWithMultipleNameNodes.java:159)
      	at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithMultipleNameNodes.runBalancer(TestBalancerWithMultipleNameNodes.java:175)
      	at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithMultipleNameNodes.runTest(TestBalancerWithMultipleNameNodes.java:550)
      	at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithMultipleNameNodes.test1OutOf2BlockpoolsWithBlockPoolPolicy(TestBalancerWithMultipleNameNodes.java:621)
      	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:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
      

      Attachments

        Issue Links

          Activity

            elgoiri Íñigo Goiri added a comment -

            It looks like the test keeps waiting to get the proper space values but nothing happens:

            2018-10-24 04:55:55,462 [Listener at localhost/43557] WARN  balancer.Balancer (TestBalancerWithMultipleNameNodes.java:wait(161)) - WAIT i=4800, s=[3000, 1300]
            2018-10-24 04:56:05,483 [Listener at localhost/43557] WARN  balancer.Balancer (TestBalancerWithMultipleNameNodes.java:wait(161)) - WAIT i=4900, s=[3000, 1300]
            2018-10-24 04:56:15,501 [Listener at localhost/43557] WARN  balancer.Balancer (TestBalancerWithMultipleNameNodes.java:wait(161)) - WAIT i=5000, s=[3000, 1300]
            2018-10-24 04:56:25,519 [Listener at localhost/43557] WARN  balancer.Balancer (TestBalancerWithMultipleNameNodes.java:wait(161)) - WAIT i=5100, s=[3000, 1300]
            ...
            2018-10-24 04:57:45,615 [Listener at localhost/43557] WARN  balancer.Balancer (TestBalancerWithMultipleNameNodes.java:wait(161)) - WAIT i=5900, s=[3000, 1300]
            

            bharatviswa, it looks like you were the one introducing the test, do you mind taking a look?

            elgoiri Íñigo Goiri added a comment - It looks like the test keeps waiting to get the proper space values but nothing happens: 2018-10-24 04:55:55,462 [Listener at localhost/43557] WARN balancer.Balancer (TestBalancerWithMultipleNameNodes.java:wait(161)) - WAIT i=4800, s=[3000, 1300] 2018-10-24 04:56:05,483 [Listener at localhost/43557] WARN balancer.Balancer (TestBalancerWithMultipleNameNodes.java:wait(161)) - WAIT i=4900, s=[3000, 1300] 2018-10-24 04:56:15,501 [Listener at localhost/43557] WARN balancer.Balancer (TestBalancerWithMultipleNameNodes.java:wait(161)) - WAIT i=5000, s=[3000, 1300] 2018-10-24 04:56:25,519 [Listener at localhost/43557] WARN balancer.Balancer (TestBalancerWithMultipleNameNodes.java:wait(161)) - WAIT i=5100, s=[3000, 1300] ... 2018-10-24 04:57:45,615 [Listener at localhost/43557] WARN balancer.Balancer (TestBalancerWithMultipleNameNodes.java:wait(161)) - WAIT i=5900, s=[3000, 1300] bharatviswa , it looks like you were the one introducing the test, do you mind taking a look?

            People

              Unassigned Unassigned
              elgoiri Íñigo Goiri
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: