Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug][Audit] Unit tests error when executing mvn test command #2960

Closed
1 of 2 tasks
healchow opened this issue Mar 7, 2022 · 0 comments · Fixed by #3085
Closed
1 of 2 tasks

[Bug][Audit] Unit tests error when executing mvn test command #2960

healchow opened this issue Mar 7, 2022 · 0 comments · Fixed by #3085
Assignees
Labels
component/audit type/bug Something is wrong
Milestone

Comments

@healchow
Copy link
Member

healchow commented Mar 7, 2022

What happened

Error msg:

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174) ~[mysql-connector-java-8.0.20.jar:8.0.20]
	...
	at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2801) ~[druid-1.2.6.jar:1.2.6]
Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.GeneratedConstructorAccessor28.newInstance(Unknown Source) ~[na:na]
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_292]
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_292]
	...
	at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:826) ~[mysql-connector-java-8.0.20.jar:8.0.20]
	... 14 common frames omitted
Caused by: java.net.ConnectException: Connection refused (Connection refused)
	at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_292]
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[na:1.8.0_292]
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_292]
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_292]
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_292]
	at java.net.Socket.connect(Socket.java:607) ~[na:1.8.0_292]
	at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:155) ~[mysql-connector-java-8.0.20.jar:8.0.20]
	at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:65) ~[mysql-connector-java-8.0.20.jar:8.0.20]
	... 17 common frames omitted

2022-03-07 04:19:14.100 ERROR 3470 --- [reate-688197093] com.alibaba.druid.pool.DruidDataSource   : create connection SQLException, url: jdbc:mysql://127.0.0.1:3306/apache_inlong_audit?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2b8&rewriteBatchedStatements=true&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL, errorCode 0, state 08S01

com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

And another error log:

2022-03-07 04:19:15.551 ERROR 3470 --- [           main] o.a.i.a.service.AuditMsgConsumerServer   : createConsumer has topic persistent://public/default/inlong-audit, subName inlong-audit-subscription, err {}

org.apache.pulsar.client.api.PulsarClientException: java.util.concurrent.ExecutionException: org.apache.pulsar.client.api.PulsarClientException: java.util.concurrent.CompletionException: org.apache.pulsar.shade.io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection refused: /127.0.0.1:6650
	at org.apache.pulsar.client.api.PulsarClientException.unwrap(PulsarClientException.java:1027) ~[pulsar-client-api-2.8.1.jar:2.8.1]
	at org.apache.pulsar.client.impl.ConsumerBuilderImpl.subscribe(ConsumerBuilderImpl.java:97) ~[pulsar-client-2.8.1.jar:2.8.1]
	at org.apache.inlong.audit.service.AuditMsgConsumerServer.createConsumer(AuditMsgConsumerServer.java:159) [classes/:na]
	at org.apache.inlong.audit.service.AuditMsgConsumerServer.updateConcurrentConsumer(AuditMsgConsumerServer.java:103) [classes/:na]
	at org.apache.inlong.audit.service.AuditMsgConsumerServer.afterPropertiesSet(AuditMsgConsumerServer.java:76) [classes/:an]

Caused by: org.apache.pulsar.client.api.PulsarClientException: java.util.concurrent.CompletionException: org.apache.pulsar.shade.io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection refused: /127.0.0.1:6650
	at org.apache.pulsar.client.impl.ConnectionPool.lambda$createConnection$9(ConnectionPool.java:216) ~[pulsar-client-2.8.1.jar:2.8.1]

[INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ audit-sdk ---
[INFO] Surefire report directory: /home/runner/work/incubator-inlong/incubator-inlong/inlong-audit/audit-sdk/target/surefire-reports
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running TestSuite
Configuring TestNG with: TestNG60Configurator
Error: ] [ERROR] No test suite found. Nothing to run
Usage: <main class> [options] The XML suite files to run
  Options:
    ...

Configuring TestNG with: TestNG60Configurator
[main] ERROR org.apache.inlong.audit.util.Config - String index out of range: -1
[main] ERROR org.apache.inlong.audit.util.Config - String index out of range: -1

What you expected to happen

See the log trace: https://github.com/apache/incubator-inlong/runs/5443067099?check_suite_focus=true

How to reproduce

Just execute the mvn test command.

Environment

No response

InLong version

master

InLong Component

InLong Audit

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

@healchow healchow added type/bug Something is wrong component/audit labels Mar 7, 2022
@healchow healchow added this to the 1.1.0 milestone Mar 7, 2022
@healchow healchow self-assigned this Mar 12, 2022
@healchow healchow changed the title [Bug][Audit] Unit tests error when execute mvn test command [Bug][Audit] Unit tests error when executing mvn test command Mar 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/audit type/bug Something is wrong
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant