Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-8716

TombstoneDUnitTests fail with a BindException creating a cache server on the default port

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tests
    • Labels:
      None

      Description

      The test should be changed to do a wildcard bind (setPort(0)).

      org.apache.geode.internal.cache.versions.TombstoneDUnitTest > testGetOldestTombstoneNonReplicate FAILED
          org.apache.geode.test.dunit.RMIException: While invoking org.apache.geode.internal.cache.versions.TombstoneDUnitTest$$Lambda$46/1195148372.run in VM 1 running on Host e45ce8a4541a with 4 VMs
              at org.apache.geode.test.dunit.VM.executeMethodOnObject(VM.java:623)
              at org.apache.geode.test.dunit.VM.invoke(VM.java:447)
              at org.apache.geode.internal.cache.versions.TombstoneDUnitTest.testGetOldestTombstoneNonReplicate(TombstoneDUnitTest.java:223)
      
              Caused by:
              java.net.BindException: Failed to create server socket on 172.17.0.20[40404]
                  at org.apache.geode.distributed.internal.tcpserver.ClusterSocketCreatorImpl.createServerSocket(ClusterSocketCreatorImpl.java:75)
                  at org.apache.geode.internal.net.SCClusterSocketCreator.createServerSocket(SCClusterSocketCreator.java:55)
                  at org.apache.geode.internal.net.SocketCreator.createServerSocket(SocketCreator.java:726)
                  at org.apache.geode.internal.cache.tier.sockets.AcceptorImpl.<init>(AcceptorImpl.java:574)
                  at org.apache.geode.internal.cache.tier.sockets.AcceptorBuilder.create(AcceptorBuilder.java:303)
                  at org.apache.geode.internal.cache.CacheServerImpl.createAcceptor(CacheServerImpl.java:427)
                  at org.apache.geode.internal.cache.CacheServerImpl.start(CacheServerImpl.java:384)
                  at org.apache.geode.internal.cache.versions.TombstoneDUnitTest.lambda$testGetOldestTombstoneNonReplicate$bb17a952$1(TombstoneDUnitTest.java:225)
      
                  Caused by:
                  java.net.BindException: Address already in use (Bind failed)
                      at java.net.PlainSocketImpl.socketBind(Native Method)
                      at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
                      at java.net.ServerSocket.bind(ServerSocket.java:390)
                      at org.apache.geode.distributed.internal.tcpserver.ClusterSocketCreatorImpl.createServerSocket(ClusterSocketCreatorImpl.java:72)
                      ... 7 more
      
      org.apache.geode.internal.cache.versions.TombstoneDUnitTest > testGetOldestTombstoneTimeNonReplicate FAILED
          org.apache.geode.test.dunit.RMIException: While invoking org.apache.geode.internal.cache.versions.TombstoneDUnitTest$$Lambda$52/1794955615.run in VM 1 running on Host e45ce8a4541a with 4 VMs
              at org.apache.geode.test.dunit.VM.executeMethodOnObject(VM.java:623)
              at org.apache.geode.test.dunit.VM.invoke(VM.java:447)
              at org.apache.geode.internal.cache.versions.TombstoneDUnitTest.testGetOldestTombstoneTimeNonReplicate(TombstoneDUnitTest.java:151)
      
              Caused by:
              java.net.BindException: Failed to create server socket on 172.17.0.20[40404]
                  at org.apache.geode.distributed.internal.tcpserver.ClusterSocketCreatorImpl.createServerSocket(ClusterSocketCreatorImpl.java:75)
                  at org.apache.geode.internal.net.SCClusterSocketCreator.createServerSocket(SCClusterSocketCreator.java:55)
                  at org.apache.geode.internal.net.SocketCreator.createServerSocket(SocketCreator.java:726)
                  at org.apache.geode.internal.cache.tier.sockets.AcceptorImpl.<init>(AcceptorImpl.java:574)
                  at org.apache.geode.internal.cache.tier.sockets.AcceptorBuilder.create(AcceptorBuilder.java:303)
                  at org.apache.geode.internal.cache.CacheServerImpl.createAcceptor(CacheServerImpl.java:427)
                  at org.apache.geode.internal.cache.CacheServerImpl.start(CacheServerImpl.java:384)
                  at org.apache.geode.internal.cache.versions.TombstoneDUnitTest.lambda$testGetOldestTombstoneTimeNonReplicate$bb17a952$1(TombstoneDUnitTest.java:153)
      
                  Caused by:
                  java.net.BindException: Address already in use (Bind failed)
                      at java.net.PlainSocketImpl.socketBind(Native Method)
                      at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
                      at java.net.ServerSocket.bind(ServerSocket.java:390)
                      at org.apache.geode.distributed.internal.tcpserver.ClusterSocketCreatorImpl.createServerSocket(ClusterSocketCreatorImpl.java:72)
                      ... 7 more
      

      https://concourse.apachegeode-ci.info/teams/main/pipelines/apache-develop-main/jobs/DistributedTestOpenJDK8/builds/623

        Attachments

          Activity

            People

            • Assignee:
              mhansonp Mark Hanson
              Reporter:
              bschuchardt Bruce J Schuchardt

              Dates

              • Created:
                Updated:

                Issue deployment