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

fix docker mysql ci not stable #1710

Merged
merged 8 commits into from
Dec 27, 2021
Merged

fix docker mysql ci not stable #1710

merged 8 commits into from
Dec 27, 2021

Conversation

javeme
Copy link
Contributor

@javeme javeme commented Dec 27, 2021

fix #1672
Change-Id: I8795ddcd9598829375801a06eb539634197fc3e4

Change-Id: I8795ddcd9598829375801a06eb539634197fc3e4
@codecov
Copy link

codecov bot commented Dec 27, 2021

Codecov Report

Merging #1710 (cfe8f19) into master (b6abf96) will increase coverage by 17.41%.
The diff coverage is 40.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             master    #1710       +/-   ##
=============================================
+ Coverage     49.53%   66.95%   +17.41%     
- Complexity     5350     7104     +1754     
=============================================
  Files           423      423               
  Lines         35488    35528       +40     
  Branches       4948     4944        -4     
=============================================
+ Hits          17580    23787     +6207     
+ Misses        15975     9349     -6626     
- Partials       1933     2392      +459     
Impacted Files Coverage Δ
...u/hugegraph/backend/store/hbase/HbaseSessions.java 58.68% <0.00%> (+0.56%) ⬆️
...aidu/hugegraph/backend/store/mysql/MysqlStore.java 80.20% <0.00%> (-1.53%) ⬇️
...aidu/hugegraph/backend/store/hbase/HbaseStore.java 71.86% <25.00%> (+0.92%) ⬆️
...u/hugegraph/backend/store/mysql/MysqlSessions.java 67.79% <66.66%> (-0.45%) ⬇️
.../backend/store/cassandra/CassandraSessionPool.java 57.14% <100.00%> (ø)
...du/hugegraph/backend/store/mysql/MysqlOptions.java 96.15% <100.00%> (+0.50%) ⬆️
...aidu/hugegraph/backend/store/mysql/MysqlTable.java 81.59% <100.00%> (ø)
.../hugegraph/backend/store/rocksdb/RocksDBStore.java 65.39% <100.00%> (ø)
...ph/backend/store/rocksdb/RocksDBStoreProvider.java 31.57% <0.00%> (-68.43%) ⬇️
...ph/backend/store/AbstractBackendStoreProvider.java 79.78% <0.00%> (-1.54%) ⬇️
... and 249 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b6abf96...cfe8f19. Read the comment docs.

Change-Id: I58f39aeb3194d2afb7f79809b3f4fcffe4d9ca98
@javeme
Copy link
Contributor Author

javeme commented Dec 27, 2021

mysql ci error

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.baidu.hugegraph.core.CoreTestSuite
2021-12-27 07:41:40 [main] [WARN] c.b.h.c.HugeConfig - The config option 'jdbc.sslmode' is redundant, please ensure it has been registered
2021-12-27 07:41:40 [main] [WARN] c.b.h.c.HugeConfig - The config option 'expired.delete_batch' is redundant, please ensure it has been registered
2021-12-27 07:41:40 [main] [WARN] c.b.h.c.HugeConfig - The config option 'test.tinkerpop.filter' is redundant, please ensure it has been registered
2021-12-27 07:41:40 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Failed to open database 'hugegraph', try to init database later
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.HugeGraph - Graph 'hugegraph' has been cleared
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Failed to open database 'hugegraph', try to init database later
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/hugegraph?useSSL=false&characterEncoding=utf-8&rewriteBatchedStatements=true&useServerPrepStmts=false&autoReconnect=true&maxReconnects=10&initialTimeout=5'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/hugegraph?useSSL=false&characterEncoding=utf-8&rewriteBatchedStatements=true&useServerPrepStmts=false&autoReconnect=true&maxReconnects=10&initialTimeout=5'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/hugegraph?useSSL=false&characterEncoding=utf-8&rewriteBatchedStatements=true&useServerPrepStmts=false&autoReconnect=true&maxReconnects=10&initialTimeout=5'
2021-12-27 07:41:41 [main] [INFO] o.c.o.l.Uns - OHC using JNA OS native malloc/free
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/hugegraph?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=10000'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
2021-12-27 07:41:41 [main] [INFO] c.b.h.HugeGraph - Graph 'hugegraph' has been cleared
2021-12-27 07:41:41 [main] [INFO] c.b.h.HugeGraph - Close graph standardhugegraph[hugegraph]
2021-12-27 07:41:42 [main] [INFO] c.b.h.b.s.m.MysqlStore - Connect to the jdbc url: 'jdbc:mysql://127.0.0.1:3306/?useSSL=false&socketTimeout=1'
Error:  Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.828 s <<< FAILURE! - in com.baidu.hugegraph.core.CoreTestSuite
Error:  com.baidu.hugegraph.core.CoreTestSuite  Time elapsed: 3.823 s  <<< ERROR!
com.baidu.hugegraph.backend.BackendException: Failed to obtain table info
	at com.baidu.hugegraph.core.CoreTestSuite.init(CoreTestSuite.java:69)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: 
Communications link failure

The last packet successfully received from the server was 2 milliseconds ago.  The last packet sent successfully to the server was 1 milliseconds ago.
	at com.baidu.hugegraph.core.CoreTestSuite.init(CoreTestSuite.java:69)
Caused by: java.net.SocketTimeoutException: Read timed out
	at com.baidu.hugegraph.core.CoreTestSuite.init(CoreTestSuite.java:69)

2021-12-27 07:41:42 [hugegraph-shutdown] [INFO] c.b.h.HugeGraph - HugeGraph is shutting down
[INFO] 
[INFO] Results:
[INFO] 
Error:  Errors: 
Error:    CoreTestSuite.init:69 » Backend Failed to obtain table info
[INFO] 
Error:  Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO] 

Change-Id: I178514bc708c550925a316d75f8872d186cf27bd
Change-Id: I0982ac89b258a050fdfd90bb50cea06d1ad5559b
@javeme
Copy link
Contributor Author

javeme commented Dec 27, 2021

unit ci error:

Error:  Tests run: 390, Failures: 0, Errors: 1, Skipped: 1, Time elapsed: 636.568 s <<< FAILURE! - in com.baidu.hugegraph.unit.UnitTestSuite
Error:  testIntFixedSetBySegmentsConcurrent(com.baidu.hugegraph.unit.util.collection.IntSetTest)  Time elapsed: 0.024 s  <<< ERROR!
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.AssertionError: expected:<10000> but was:<9999>
	at com.baidu.hugegraph.unit.util.collection.IntSetTest.testIntSetConcurrent(IntSetTest.java:145)
	at com.baidu.hugegraph.unit.util.collection.IntSetTest.testIntFixedSetBySegmentsConcurrent(IntSetTest.java:78)
Caused by: java.util.concurrent.ExecutionException: java.lang.AssertionError: expected:<10000> but was:<9999>
	at com.baidu.hugegraph.unit.util.collection.IntSetTest.testIntSetConcurrent(IntSetTest.java:145)
	at com.baidu.hugegraph.unit.util.collection.IntSetTest.testIntFixedSetBySegmentsConcurrent(IntSetTest.java:78)
Caused by: java.lang.AssertionError: expected:<10000> but was:<9999>
	at com.baidu.hugegraph.unit.util.collection.IntSetTest.lambda$testIntSetConcurrent$6(IntSetTest.java:152)

2021-12-27 08:50:16 [hugegraph-shutdown] [INFO] c.b.h.HugeGraph - HugeGraph is shutting down
[INFO] 
[INFO] Results:
[INFO] 
Error:  Errors: 
Error:    IntSetTest.testIntFixedSetBySegmentsConcurrent:78->testIntSetConcurrent:145->BaseUnitTest.runWithThreads:70 » Runtime
[INFO] 
Error:  Tests run: 390, Failures: 0, Errors: 1, Skipped: 1

javeme and others added 3 commits December 27, 2021 17:13
Change-Id: I617e1c6745c3d5d48cf9fe0c1767f039bac2df96
Change-Id: Id197fd1010d8f30ca4c31946d7f56ae1d3915219
Co-authored-by: imbajin <0x00@imbajin.com>
Change-Id: Icea0b9637ff940d5a0312a9bef299fb799a2e7d5
coderzc
coderzc previously approved these changes Dec 27, 2021
@javeme
Copy link
Contributor Author

javeme commented Dec 27, 2021

mysql ci error

Error:  Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.31 s <<< FAILURE! - in com.baidu.hugegraph.core.CoreTestSuite
Error:  com.baidu.hugegraph.core.CoreTestSuite  Time elapsed: 2.309 s  <<< ERROR!
com.baidu.hugegraph.backend.BackendException: Failed to obtain database info
	at com.baidu.hugegraph.core.CoreTestSuite.init(CoreTestSuite.java:68)
Caused by: com.baidu.hugegraph.backend.BackendException: Failed to access jdbc:mysql://127.0.0.1:3306/?characterEncoding=utf-8&rewriteBatchedStatements=true&useServerPrepStmts=false&autoReconnect=false&maxReconnects=10&initialTimeout=5&socketTimeout=0&useSSL=false
	at com.baidu.hugegraph.core.CoreTestSuite.init(CoreTestSuite.java:68)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: 
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 com.baidu.hugegraph.core.CoreTestSuite.init(CoreTestSuite.java:68)
Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
	at com.baidu.hugegraph.core.CoreTestSuite.init(CoreTestSuite.java:68)

Change-Id: I4b283681f066ab8d11644172b86f89d782f98343
@javeme
Copy link
Contributor Author

javeme commented Dec 27, 2021

unit ci error:

Error:  Tests run: 390, Failures: 0, Errors: 1, Skipped: 1, Time elapsed: 736.396 s <<< FAILURE! - in com.baidu.hugegraph.unit.UnitTestSuite
Error:  testIntFixedSetBySegments(com.baidu.hugegraph.unit.util.collection.IntSetTest)  Time elapsed: 0.007 s  <<< ERROR!
java.lang.ArithmeticException: / by zero
	at com.baidu.hugegraph.unit.util.collection.IntSetTest.testIntSet(IntSetTest.java:86)
	at com.baidu.hugegraph.unit.util.collection.IntSetTest.testIntFixedSetBySegments(IntSetTest.java:57)

2021-12-27 11:59:11 [hugegraph-shutdown] [INFO] c.b.h.HugeGraph - HugeGraph is shutting down
[INFO] 
[INFO] Results:
[INFO] 
Error:  Errors: 
Error:    IntSetTest.testIntFixedSetBySegments:57->testIntSet:86 Arithmetic / by zero
[INFO] 
Error:  Tests run: 390, Failures: 0, Errors: 1, Skipped: 1

@javeme javeme merged commit 1d031c5 into master Dec 27, 2021
@javeme javeme deleted the mysql-docker-ci branch December 27, 2021 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants