-
Notifications
You must be signed in to change notification settings - Fork 3
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
refactor: 00029 refactor demo to lmax disruptor and 00055 persistence design doc #41
Conversation
552c9b9
to
582cfae
Compare
6e392a8
to
e1c8b21
Compare
fe67e8e
to
b9ca958
Compare
1860e91
to
67a942e
Compare
9d1a28b
to
3dd03b6
Compare
714cad6
to
217188f
Compare
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.
LGTM, only thing that I would add is a Diagram on the design doc, so is easier to understand the ring buffer and the interactions between the classes.
Leaved some nits.
server/src/main/java/com/hedera/block/server/BlockStreamService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/hedera/block/server/BlockStreamService.java
Outdated
Show resolved
Hide resolved
server/src/test/java/com/hedera/block/server/consumer/ConsumerStreamResponseObserverTest.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/hedera/block/server/ServiceStatusImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/hedera/block/server/mediator/LiveStreamMediatorImpl.java
Outdated
Show resolved
Hide resolved
8f52ae3
to
2111430
Compare
2111430
to
be78459
Compare
be78459
to
4890c77
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #41 +/- ##
==============================================
+ Coverage 70.00% 100.00% +30.00%
- Complexity 33 110 +77
==============================================
Files 10 19 +9
Lines 170 420 +250
Branches 6 23 +17
==============================================
+ Hits 119 420 +301
+ Misses 47 0 -47
+ Partials 4 0 -4
|
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.
LGTM
d305d33
to
fdd0f5c
Compare
- Integration with LMAX Disruptor RingBuffer - Changed toy types to align with names and relationships like hedera-protobufs - Boosted unit test coverage to 100% for most packages - Adjusted Docker container to run as the hedera user rather than root - Changed the consumer bidirection stream to server streaming - Added exception handling when reading and writing to storage - Refactored getBlock to singleBlock to align with hedera-protobufs rpc service definition and types - Separated ReadBlock and WriteBlock - Added RemoveBlock to handle removal of partially written Blocks when an exception is thrown - Adjusted producer and consumer scripts to work with new types - Added metrics to report: live block items counted, blocks persisted, single blocks retrieved and current subscribers Signed-off-by: Matt Peterson <[email protected]>
fdd0f5c
to
b40101b
Compare
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.
LGTM
Description:
hedera-protobufs
bidirection stream
toserver streaming
hedera-protobufs
rpc service definition and typesRelated issue(s):
Fixes #29, #55
Notes for reviewer:
Checklist