BP-47 (task7): DbLedgerStorage add direct entry logger support#3366
Conversation
|
rerun failure checks |
1 similar comment
|
rerun failure checks |
|
rerun failure checks |
dlg99
left a comment
There was a problem hiding this comment.
Overall LGTM.
Please use PlatformDependent.estimateMaxDirectMemory instead of PlatformDependent.maxDirectMemory, for context see discussion on linked PR
| private static final int DEFAULT_READ_AHEAD_CACHE_BATCH_SIZE = 100; | ||
|
|
||
| private static final long DEFAULT_DIRECT_IO_TOTAL_WRITEBUFFER_SIZE_MB = | ||
| (long) (0.125 * PlatformDependent.maxDirectMemory()) |
There was a problem hiding this comment.
PlatformDependent.estimateMaxDirectMemory()
See #2989
9a34b10 to
ff139a5
Compare
|
rerun failure checks |
|
Ping @merlimat @eolivelli @ivankelly @Vanlightly Please help take a look, thanks a lot. |
eolivelli
left a comment
There was a problem hiding this comment.
Overall it looks good.
I left a small comment, but important, for the test
| @Before | ||
| public void setup() throws Exception { | ||
| super.setup(); | ||
| conf.setProperty("dbStorage_directIOEntryLogger", true); |
There was a problem hiding this comment.
Is it possible to add some assertions in the tests about the fact that we really loaded this implementation?
The tests may pass because we aren't using the new implementation
|
rerun failure checks |
3 similar comments
|
rerun failure checks |
|
rerun failure checks |
|
rerun failure checks |
Motivation
Task 7 of BP-47, DbLedgerStorage add direct entry logger support.
This is the last Pr of BP-47
Modification
Add parameter
dbStorage_directIOEntryLoggerto control whether use direct entrylogger for DbLedgerStorage or not. Default value is false.Others
The commit is made by @ivankelly . This is the sub-task of #2932 , which was pushed out by @mauricebarnum. However, this PR contains too many changes and the number of code lines reaches 8K+, and it is hard to review. According to your suggestion #2932 (comment), and after communicating with @mauricebarnum, we are planning to divide the PR into 6 PRs, Please refer to #2943 (comment).
However, @mauricebarnum doesn't have enough time to deal with those issues, and we desperately need this feature. After communicating with @mauricebarnum and @merlimat , I help to work on dividing the PRs and pushing them out. We are hoping to contain this feature in BookKeeper 4.16.0