-
Notifications
You must be signed in to change notification settings - Fork 521
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
improve raft module and test #1721
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1721 +/- ##
============================================
+ Coverage 66.55% 70.83% +4.27%
+ Complexity 7085 970 -6115
============================================
Files 423 443 +20
Lines 35598 37664 +2066
Branches 4959 5358 +399
============================================
+ Hits 23692 26679 +2987
+ Misses 9505 8297 -1208
- Partials 2401 2688 +287
Continue to review full report at Codecov.
|
6e2c2b5
to
de7aebb
Compare
Operations on followers may lead to inconsistent data status? error when truncate 2022-01-04 17:49:15 [store-backend-executor33] [ERROR] c.b.h.b.s.r.StoreStateMachine - Failed to execute backend command: SNAPSHOT
java.lang.IllegalStateException: Can't apply command for all store at one time
at com.google.common.base.Preconditions.checkState(Preconditions.java:531) ~[guava-25.1-jre.jar:?]
at com.baidu.hugegraph.util.E.checkState(E.java:68) ~[hugegraph-common-2.0.1.jar:2.0.1.0]
at com.baidu.hugegraph.backend.store.raft.StoreStateMachine.applyCommand(StoreStateMachine.java:166) ~[hugegraph-core-0.12.0.jar:0.12.0.0]
at com.baidu.hugegraph.backend.store.raft.StoreStateMachine.lambda$onApply$1(StoreStateMachine.java:136) ~[hugegraph-core-0.12.0.jar:0.12.0.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_111]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_111]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_111]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_111]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111] |
Change-Id: I016d3fcc4ab50614afdf452e7c9691ee3cc3c70b
Change-Id: I44e0e3c3cb44b806bd87b2216a339673f26d3166
Change-Id: I319928fc5f26838f7ade8f21a57f955eeca7a6d6
Change-Id: Ib2a87081f7411d4ebfaaef2f8fff0140bb4d3dc0
Change-Id: I65fbed8e18d9b04393aa26f5008397cc9b9fc065
Change-Id: I95913fb9c4a2384492bd8a81c1d94e905dd344e6
Change-Id: I0e9628c26566d019edecc22c8114a0cc9bdeee5b
raft test error: Error: Tests run: 52, Failures: 3, Errors: 32, Skipped: 0, Time elapsed: 84.22 s <<< FAILURE! - in com.baidu.hugegraph.api.ApiTestSuite
Error: testAppend(com.baidu.hugegraph.api.IndexLabelApiTest) Time elapsed: 0.137 s <<< FAILURE!
java.lang.AssertionError: Response with status 400 and content {"exception":"class com.baidu.hugegraph.exception.ExistedException","message":"The index label 'personByAge' has existed","cause":""} expected:<202> but was:<400>
at com.baidu.hugegraph.api.IndexLabelApiTest.testAppend(IndexLabelApiTest.java:66)
Error: testAppend(com.baidu.hugegraph.api.IndexLabelApiTest) Time elapsed: 0.138 s <<< ERROR!
com.baidu.hugegraph.HugeException: Failed to list indexlabels
Error: testCreate(com.baidu.hugegraph.api.IndexLabelApiTest) Time elapsed: 0.034 s <<< FAILURE!
java.lang.AssertionError: Response with status 400 and content {"exception":"class com.baidu.hugegraph.exception.ExistedException","message":"The index label 'personByAge' has existed","cause":""} expected:<202> but was:<400>
at com.baidu.hugegraph.api.IndexLabelApiTest.testCreate(IndexLabelApiTest.java:52)
Error: testCreate(com.baidu.hugegraph.api.IndexLabelApiTest) Time elapsed: 0.034 s <<< ERROR!
com.baidu.hugegraph.HugeException: Failed to list indexlabels Error: Tests run: 49, Failures: 0, Errors: 29, Skipped: 0, Time elapsed: 119.686 s <<< FAILURE! - in com.baidu.hugegraph.api.ApiTestSuite
Error: com.baidu.hugegraph.api.SchemaApiTest Time elapsed: 9.08 s <<< ERROR!
com.baidu.hugegraph.HugeException: Failed to list indexlabels
Error: com.baidu.hugegraph.api.VertexApiTest Time elapsed: 9.124 s <<< ERROR!
com.baidu.hugegraph.HugeException: Failed to list indexlabels
Error: com.baidu.hugegraph.api.EdgeApiTest Time elapsed: 9.169 s <<< ERROR!
com.baidu.hugegraph.HugeException: Failed to list indexlabels
Error: com.baidu.hugegraph.api.TaskApiTest Time elapsed: 9.214 s <<< ERROR!
com.baidu.hugegraph.HugeException: Failed to list indexlabels |
Change-Id: Ibcdef0f33c9c1127908cc9bfdba5f4fd7f1e309a
Change-Id: Iecce2bd9482a136b85cdca9f01615a701fcf1af9
This reverts commit c5fb178.
Change-Id: I8b9cfd1d10c350273dbde9416f3c3439620e44c3
Change-Id: Ie314bbb51091f6cb8191d06d356397ae56bde885
Change-Id: I3e6ca5f24e38eeb9c8b318e996a0697de30b3a1c
how to upload multiple report files to codecov: |
Change-Id: I43421d7d5a2285d81968bbdd258364d9018c7b21
+ "\"gremlin\":\"hugegraph.backendStoreFeatures()" | ||
+ " .supportsSharedStorage();\"," |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider keep them in one line maybe (same as older like line 70, friendly to read)
+ " if (!hugegraph.backendStoreFeatures()" | ||
+ " .supportsSharedStorage())" | ||
+ " return;" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge to one line maybe?
+ "\"bindings\":{}," | ||
+ "\"language\":\"gremlin-groovy\"," | ||
+ "\"aliases\":{\"g\":\"__g_hugegraph\"}}"; | ||
assertResponseStatus(200, client().post(path, body)); | ||
|
||
body = "{" | ||
+ "\"gremlin\":\"hugegraph.serverStarted(" | ||
+ "IdGenerator.of('server1'), NodeRole.MASTER)\"," | ||
+ " IdGenerator.of('server1'), NodeRole.MASTER)\"," |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
* improve raft moddule * add raft-server test * set safe_read=true and use_snapshot=false * fix leader not wait for apply-task * add auth support to raft-tools.sh * don't clear non-shared-storage backend * set task timer interval from 3s to 1s * improve CachedSchemaTransaction * improve update schema status * remove truncate from project test * fix codecov: api test report not been uploaded * improve task cancel() test with cancelled status Change-Id: I016d3fcc4ab50614afdf452e7c9691ee3cc3c70b
implement #1384