flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gyula Fora (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-3072) DbStateBackendTest
Date Tue, 24 Nov 2015 16:15:10 GMT

    [ https://issues.apache.org/jira/browse/FLINK-3072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15024751#comment-15024751
] 

Gyula Fora commented on FLINK-3072:
-----------------------------------

It seems like the derby server does not start properly by the @BeforeClass method by the time
the test methods start executing.

The problem seems to be that server.start() is an async call that spawns a new thread. So
I need to make sure to block in the setup method and wait for the server to start.

> DbStateBackendTest
> ------------------
>
>                 Key: FLINK-3072
>                 URL: https://issues.apache.org/jira/browse/FLINK-3072
>             Project: Flink
>          Issue Type: Bug
>          Components: Tests
>            Reporter: Matthias J. Sax
>            Assignee: Gyula Fora
>            Priority: Critical
>              Labels: test-stability
>
> https://s3.amazonaws.com/archive.travis-ci.org/jobs/92924255/log.txt
> {noformat}
> Tests run: 5, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 4.505 sec <<<
FAILURE! - in org.apache.flink.contrib.streaming.state.DbStateBackendTest
> testCompaction(org.apache.flink.contrib.streaming.state.DbStateBackendTest)  Time elapsed:
0.008 sec  <<< ERROR!
> java.sql.SQLNonTransientConnectionException: java.net.ConnectException : Error connecting
to server localhost on port 1,527 with message Connection refused.
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
> 	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
> 	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
> 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> 	at java.net.Socket.connect(Socket.java:579)
> 	at java.net.Socket.connect(Socket.java:528)
> 	at java.net.Socket.<init>(Socket.java:425)
> 	at java.net.Socket.<init>(Socket.java:208)
> 	at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:271)
> 	at org.apache.derby.client.net.OpenSocketAction.run(Unknown Source)
> 	at org.apache.derby.client.net.OpenSocketAction.run(Unknown Source)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at org.apache.derby.client.net.NetAgent.<init>(Unknown Source)
> 	at org.apache.derby.client.net.NetConnection.newAgent_(Unknown Source)
> 	at org.apache.derby.client.am.ClientConnection.<init>(Unknown Source)
> 	at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
> 	at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newNetConnection(Unknown
Source)
> 	at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:571)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:215)
> 	at org.apache.flink.contrib.streaming.state.ShardedConnection.<init>(ShardedConnection.java:45)
> 	at org.apache.flink.contrib.streaming.state.ShardedConnection.<init>(ShardedConnection.java:51)
> 	at org.apache.flink.contrib.streaming.state.DbBackendConfig.createShardedConnection(DbBackendConfig.java:325)
> 	at org.apache.flink.contrib.streaming.state.DbStateBackend.initializeForJob(DbStateBackend.java:197)
> 	at org.apache.flink.contrib.streaming.state.DbStateBackendTest.testCompaction(DbStateBackendTest.java:242)
> testSetupAndSerialization(org.apache.flink.contrib.streaming.state.DbStateBackendTest)
 Time elapsed: 0.004 sec  <<< ERROR!
> java.sql.SQLNonTransientConnectionException: java.net.ConnectException : Error connecting
to server localhost on port 1,527 with message Connection refused.
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
> 	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
> 	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
> 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> 	at java.net.Socket.connect(Socket.java:579)
> 	at java.net.Socket.connect(Socket.java:528)
> 	at java.net.Socket.<init>(Socket.java:425)
> 	at java.net.Socket.<init>(Socket.java:208)
> 	at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:271)
> 	at org.apache.derby.client.net.OpenSocketAction.run(Unknown Source)
> 	at org.apache.derby.client.net.OpenSocketAction.run(Unknown Source)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at org.apache.derby.client.net.NetAgent.<init>(Unknown Source)
> 	at org.apache.derby.client.net.NetConnection.newAgent_(Unknown Source)
> 	at org.apache.derby.client.am.ClientConnection.<init>(Unknown Source)
> 	at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
> 	at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newNetConnection(Unknown
Source)
> 	at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:571)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:215)
> 	at org.apache.flink.contrib.streaming.state.ShardedConnection.<init>(ShardedConnection.java:45)
> 	at org.apache.flink.contrib.streaming.state.ShardedConnection.<init>(ShardedConnection.java:51)
> 	at org.apache.flink.contrib.streaming.state.DbBackendConfig.createShardedConnection(DbBackendConfig.java:325)
> 	at org.apache.flink.contrib.streaming.state.DbStateBackend.initializeForJob(DbStateBackend.java:197)
> 	at org.apache.flink.contrib.streaming.state.DbStateBackendTest.testSetupAndSerialization(DbStateBackendTest.java:105)
> Results :
> Tests in error: 
>   DbStateBackendTest.testCompaction:242 » SQLNonTransientConnection java.net.Con...
>   DbStateBackendTest.testSetupAndSerialization:105 » SQLNonTransientConnection j...
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message