-
Notifications
You must be signed in to change notification settings - Fork 963
Configure Netty allocator in bookie and client #1755
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
Conversation
0c796ee to
6444893
Compare
022505a to
806b409
Compare
|
@sijie rebased on master |
eolivelli
left a comment
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.
Looks good to me.
+1 very interesting and useful idea
Please create a task for documentation of this new feature, possibly blocker for 4.9 or just add the documentation in this patch.
|
run tls tests |
|
run bookkeeper-server tls tests |
ivankelly
left a comment
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.
Looks good. Minor comments.
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/Bookie.java
Outdated
Show resolved
Hide resolved
|
|
||
| static ByteBuf createExplicitLACEntry(long ledgerId, ByteBuf explicitLac) { | ||
| ByteBuf bb = PooledByteBufAllocator.DEFAULT.directBuffer(8 + 8 + 4 + explicitLac.capacity()); | ||
| private ByteBuf createExplicitLACEntry(long ledgerId, ByteBuf explicitLac) { |
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.
Unrelated to this patch, but we really shouldn't have serialization code in Bookie
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/BookKeeper.java
Outdated
Show resolved
Hide resolved
bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/PerChannelBookieClient.java
Show resolved
Hide resolved
bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/checksum/CRC32CDigestManager.java
Outdated
Show resolved
Hide resolved
…ecksum/CRC32CDigestManager.java Co-Authored-By: merlimat <mmerli@apache.org>
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/Bookie.java
Outdated
Show resolved
Hide resolved
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/Bookie.java
Outdated
Show resolved
Hide resolved
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/BookKeeper.java
Outdated
Show resolved
Hide resolved
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/BookKeeper.java
Outdated
Show resolved
Hide resolved
bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ServerConfiguration.java
Outdated
Show resolved
Hide resolved
bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ServerConfiguration.java
Outdated
Show resolved
Hide resolved
bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ServerConfiguration.java
Outdated
Show resolved
Hide resolved
bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ServerConfiguration.java
Outdated
Show resolved
Hide resolved
### Motivation * Upgrade to latest Netty version which brings in perf improvements and some new features (eg: netty/netty#8267) * Broke down the dependencies from `netty-all` into individual components, as discussed at #1755 (comment) Reviewers: Ivan Kelly <ivank@apache.org>, Enrico Olivelli <eolivelli@gmail.com>, Sijie Guo <sijie@apache.org> This closes #1784 from merlimat/netty-4.1.31
|
@sijie @ivankelly Addressed comments, PTAL again. |
ivankelly
left a comment
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.
ship it
bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ServerConfiguration.java
Outdated
Show resolved
Hide resolved
bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/BookieServer.java
Outdated
Show resolved
Hide resolved
0d9551c to
2dbbee3
Compare
e188c97 to
db83ce7
Compare
|
run integration tests |
|
run bookkeeper-server tls tests |
|
@merlimat it seems this PR requires rebase and there are some checkstyle issues needs to be fixed as well. |
1 similar comment
|
@merlimat it seems this PR requires rebase and there are some checkstyle issues needs to be fixed as well. |
|
run bookkeeper-server bookie tests |
Pull Request Test Coverage Report for Build 3657
💛 - Coveralls |
…ding the entry in ReadCache ### Motivation Original PR: #1755, It should be that this PR forgot to modify the memory application method. When the direct memory is insufficient, it does not fall back to the jvm memory, and the bookie hangs directly.   ### Changes Use `OutOfMemoryPolicy` when the direct memory is insufficient when reading the entry in `ReadCache`. Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Andrey Yegorov <None> This closes #2836 from wenbingshen/useOutOfMemoryPolicyInReadCache
…ding the entry in ReadCache ### Motivation Original PR: apache#1755, It should be that this PR forgot to modify the memory application method. When the direct memory is insufficient, it does not fall back to the jvm memory, and the bookie hangs directly.   ### Changes Use `OutOfMemoryPolicy` when the direct memory is insufficient when reading the entry in `ReadCache`. Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Andrey Yegorov <None> This closes apache#2836 from wenbingshen/useOutOfMemoryPolicyInReadCache
…ding the entry in ReadCache ### Motivation Original PR: apache#1755, It should be that this PR forgot to modify the memory application method. When the direct memory is insufficient, it does not fall back to the jvm memory, and the bookie hangs directly.   ### Changes Use `OutOfMemoryPolicy` when the direct memory is insufficient when reading the entry in `ReadCache`. Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Andrey Yegorov <None> This closes apache#2836 from wenbingshen/useOutOfMemoryPolicyInReadCache (cherry picked from commit f19544b)
…ding the entry in ReadCache ### Motivation Original PR: apache#1755, It should be that this PR forgot to modify the memory application method. When the direct memory is insufficient, it does not fall back to the jvm memory, and the bookie hangs directly.   ### Changes Use `OutOfMemoryPolicy` when the direct memory is insufficient when reading the entry in `ReadCache`. Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Andrey Yegorov <None> This closes apache#2836 from wenbingshen/useOutOfMemoryPolicyInReadCache
Motivation
This is based on #1754. Adding the code to configure and use the allocator wrapper in bookie and client.
(I'll rebase once the first PR is merged)