-
Notifications
You must be signed in to change notification settings - Fork 503
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
Initially implement distributed consistency with jraft #1020
Conversation
hugegraph-core/src/main/java/com/baidu/hugegraph/StandardHugeGraph.java
Outdated
Show resolved
Hide resolved
...raph-core/src/main/java/com/baidu/hugegraph/backend/store/raft/BackendStoreStateMachine.java
Outdated
Show resolved
Hide resolved
...raph-core/src/main/java/com/baidu/hugegraph/backend/store/raft/RaftBackendStoreProvider.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/raft/RaftNode.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/raft/RaftNode.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/raft/RaftNode.java
Outdated
Show resolved
Hide resolved
this.readIndexExecutor = this.initReadIndexExecutor(); | ||
} | ||
|
||
public HugeConfig config() { |
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.
set protected
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.
use public keep the same with others
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/raft/RaftSharedComponent.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/raft/RaftSharedComponent.java
Outdated
Show resolved
Hide resolved
...raph-core/src/main/java/com/baidu/hugegraph/backend/store/raft/BackendStoreStateMachine.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #1020 +/- ##
============================================
+ Coverage 60.35% 64.01% +3.65%
- Complexity 4709 5521 +812
============================================
Files 331 347 +16
Lines 26997 28520 +1523
Branches 3865 4028 +163
============================================
+ Hits 16295 18257 +1962
+ Misses 8915 8461 -454
- Partials 1787 1802 +15
Continue to review full report at Codecov.
|
8699a72
to
59e815e
Compare
@@ -592,6 +603,16 @@ public boolean hasChanges() { | |||
return this.batch.count() > 0; | |||
} | |||
|
|||
@Override | |||
public String dataPath() { | |||
return dataPath; |
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.
this.dataPath
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.
Here is in StdSession class, it's a inner class
|
||
@Override | ||
public String walPath() { | ||
return walPath; |
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.
ditto
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.
Here is in StdSession class, it's a inner class
} else { | ||
// Follower need deserializeMutation data | ||
ByteBuffer buffer = iter.getData(); | ||
command = StoreCommand.fromBytes(buffer.array()); |
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.
address history comments
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.
handled
c1c7c58
to
8f8a33c
Compare
6d6f2c2
to
131e422
Compare
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/raft/RaftBackendStore.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/raft/RaftBackendStore.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/raft/StoreStateMachine.java
Show resolved
Hide resolved
98b173b
to
ce3684c
Compare
f0909d8
to
0baf272
Compare
4724a72
to
8f213e9
Compare
Change-Id: I75671444d48a2851b4d1ad0de8975853dd1f900f
Change-Id: I037a3011e63008082f48c1c907e4a36ab48328ce
Change-Id: Iabcb4b4f91a72e231145a5c1605ceb4b55820491
Change-Id: Ie1a55f2fed10ead56e067f7b158275e62a3f0d37
Change-Id: I77287d80d78dcdb37dfbddbb9fee980cf5789d91
Change-Id: I4c8e936389a39da8cab04d89b8818960937473d7
Change-Id: I43f61fad49b3c42b3fe145d45d6135386af5cb59
Change-Id: I19f99e43b06b0382be04b7b05a61da5c123477c4
Check connection failed for address: xxx, maybe write overflow! Change-Id: I5bce82d1020ee2adb5b9baf28abbc4d68989ef56
61ebaf3
to
a69b047
Compare
Change-Id: Ibaf3f3726e299dd9e51f6b763308abc799870a15
Change-Id: I5bdec682ec35daead67cbcf92477b0d761d31610
Change-Id: I49b5a6c48053ae0f5a5ebb0dfeb1651da9f155ea
Change-Id: Ibc5e08488b7eda0049eb57fe68a4e124873e35a3
Change-Id: I75671444d48a2851b4d1ad0de8975853dd1f900f