Christopher Tubbs created ZOOKEEPER-3987:
--------------------------------------------

             Summary: Build failures when running surefire tests concurrently 
due to bind address already in use
                 Key: ZOOKEEPER-3987
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3987
             Project: ZooKeeper
          Issue Type: Bug
          Components: tests
    Affects Versions: 3.7.0
            Reporter: Christopher Tubbs


It seems that many of the surefire/JUnit tests reuse the same bind address. 
This causes many tests to fail due to a bind address being already in use.

A recent run (using {{-Dsurefire-forkcount=2}} shows several tests that failed 
for this reason. These same tests do not fail when forkcount is 1 (and they 
don't always fail when the forkcount is higher... just sometimes, depending on 
timing):
{code}
[ERROR] Errors: 
[ERROR]   SaslAuthTest.testZKOperationsAfterClientSaslAuthFailure:172 » Timeout 
Failed t...
[ERROR]   
SnapshotDigestTest.testSnapshotDigest:86->reloadSnapshotAndCheckDigest:190 » 
Runtime
[ERROR]   
CloseSessionTxnTest.testCloseSessionTxnCompatile:44->testCloseSessionWithDifferentConfig:87->QuorumPeerTestBase.waitForOne:536
 » Runtime
[ERROR]   
QuorumPeerMainTest.testFailedTxnAsPartOfQuorumLoss:784->QuorumPeerTestBase.waitForOne:536
 » Runtime
[ERROR]   
ChrootAsyncTest.setUp:38->AsyncOpsTest.setUp:47->ClientBase.setUp:478->ClientBase.setUpWithServerId:503->ClientBase.startServer:519->ClientBase.createNewServerInstance:429
 » Bind
[ERROR]   
GetChildren2Test.setUp:42->ClientBase.setUp:478->ClientBase.setUpWithServerId:503->ClientBase.startServer:519->ClientBase.createNewServerInstance:429
 » Bind
[ERROR]   SaslKerberosAuthOverSSLTest.testAuth » Bind Address already in use
[ERROR]   
UnsupportedAddWatcherTest.setUp:105->ClientBase.setUp:478->ClientBase.setUpWithServerId:503->ClientBase.startServer:519->ClientBase.createNewServerInstance:429
 » Bind
[INFO] 
[ERROR] Tests run: 2846, Failures: 2, Errors: 8, Skipped: 4
{code}



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

Reply via email to