-
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
feat: new BlockWriter implementation for block-as-file #355
feat: new BlockWriter implementation for block-as-file #355
Conversation
Signed-off-by: Atanas Atanasov <[email protected]>
…l remain Signed-off-by: Atanas Atanasov <[email protected]>
1e81bdb
to
2d82213
Compare
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Intermediate thoughts at 9fa5c10:
|
Signed-off-by: Atanas Atanasov <[email protected]>
… clean up approach Signed-off-by: Atanas Atanasov <[email protected]>
Update at 5c0a707:
|
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email 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.
A few areas that could be improved.
common/src/main/java/com/hedera/block/common/utils/Preconditions.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/hedera/block/server/persistence/PersistenceInjectionModule.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/hedera/block/server/persistence/PersistenceInjectionModule.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/hedera/block/server/persistence/PersistenceInjectionModule.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/hedera/block/server/persistence/storage/write/BlockAsFileWriter.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/hedera/block/server/persistence/storage/write/BlockAsFileWriter.java
Outdated
Show resolved
Hide resolved
...rc/main/java/com/hedera/block/server/persistence/storage/write/BlockAsFileWriterBuilder.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/hedera/block/server/persistence/storage/write/BlockWriter.java
Outdated
Show resolved
Hide resolved
@jsync-swirlds thanks for the review, I have missed a couple of places where I could clean up additionally, however at some places it looks like you were looking at older changes, files were amended before you have made your review. I have also included #319 here and will bring additional changes to the exception handling to clean that up as well. |
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
…rsistence Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
…ethods Signed-off-by: Atanas Atanasov <[email protected]>
… methods Signed-off-by: Atanas Atanasov <[email protected]>
… via static methods Signed-off-by: Atanas Atanasov <[email protected]>
… via static methods Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
server/src/main/java/com/hedera/block/server/persistence/storage/PersistenceStorageConfig.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/hedera/block/server/persistence/storage/PersistenceStorageConfig.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/hedera/block/server/persistence/storage/PersistenceStorageConfig.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/hedera/block/server/persistence/storage/PersistenceStorageConfig.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/hedera/block/server/persistence/storage/PersistenceStorageConfig.java
Show resolved
Hide resolved
...r/src/main/java/com/hedera/block/server/persistence/storage/read/BlockAsLocalFileReader.java
Show resolved
Hide resolved
...main/java/com/hedera/block/server/persistence/storage/path/BlockAsLocalFilePathResolver.java
Show resolved
Hide resolved
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email 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.
Really good job!!
.../main/java/com/hedera/block/server/persistence/storage/path/BlockAsLocalDirPathResolver.java
Show resolved
Hide resolved
...r/src/main/java/com/hedera/block/server/persistence/storage/read/BlockAsLocalFileReader.java
Show resolved
Hide resolved
...rc/main/java/com/hedera/block/server/persistence/storage/remove/BlockAsLocalFileRemover.java
Show resolved
Hide resolved
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #355 +/- ##
============================================
+ Coverage 97.77% 97.88% +0.11%
- Complexity 343 374 +31
============================================
Files 70 76 +6
Lines 1256 1323 +67
Branches 88 91 +3
============================================
+ Hits 1228 1295 +67
Misses 19 19
Partials 9 9
|
Description:
This PR aims to introduce the new
BlockAsFileWriter
with the initial goal to only be able to write blocks as file. In subsequent PRs this functionality will be improved and cleaned up. You can see #309 for more details on the full functionality that will be implemented.Related issue(s):
Fixes #281 #319 #348
Notes for reviewer:
TBD
Checklist
repairPermissionsForRetry
#348