Repository navigation
Upgrade LightProto to 0.9.3 - #4904
Merged
merlimat merged 1 commit intoOct 14, 2026
Merged
Conversation
Bump lightproto-maven-plugin from 0.7.0 to 0.9.3. 0.9.3 is required rather than 0.9.2: from 0.9.0 to 0.9.2, closing the generated gRPC marshaller's stream emptied it even if it had not been read, which broke the stream-storage proxy that forwards that stream unchanged (streamnative/lightproto#54).
codelipenghui
approved these changes
Oct 14, 2026
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
0 open findings
What changed in this PR
Updates the build to use LightProto 0.9.3 for generated protocol / gRPC code, addressing known issues in earlier 0.9.x releases while gaining performance and correctness improvements.
Changes:
- Bumped
lightproto-maven-plugin.versionfrom0.7.0to0.9.3in the rootpom.xml.
| File | Description |
|---|---|
| pom.xml | Updates the LightProto Maven plugin version to 0.9.3 to pick up fixes/perf improvements described in the PR. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Copilot stopped reviewing on behalf of
StevenLuMT due to an error
October 14, 2026 11:35
merlimat
added a commit
that referenced
this pull request
Oct 17, 2026
(cherry picked from commit 094165f)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Descriptions of the changes in this PR:
Motivation
BookKeeper generates its protocol, metadata and stream-storage messages, and the stream-storage gRPC stubs, with LightProto 0.7.0. Since then LightProto has gained:
sun.misc.Unsafeon the hot path, which JDK 24+ penalizes on every call.clear()is O(1), and large messages are written in place.sint32values with |v| ≥ 2^30 were written past their computed size.true.UNRECOGNIZEDconstant.sun.misc.Unsafewarning when Netty itself doesn't use Unsafe.Changes
Bump
lightproto-maven-plugin.versionfrom 0.7.0 to 0.9.3. No source changes are needed:switchover a proto3 enum in stream storage has adefaultbranch, so the newUNRECOGNIZEDconstant compiles and falls into the existing error handling.bytesgetters, which since 0.9.0 are shared with the message.The version has to be 0.9.3 rather than 0.9.2. From 0.9.0 to 0.9.2, closing the stream returned by the generated gRPC marshaller emptied it, even if it had not been read yet:
ProxyHandlerRegistrywithIdentityInputStreamMarshaller) forwards that stream to the next hop unchanged, and grpc-java closes it as soon asonMessage()returns.TestStorageContainerStoreImplgot empty responses andProxyPingPongServiceTesthung.LightProto 0.9.3 keeps the stream readable until it has been read to the end (streamnative/lightproto#54).
Testing
mvn clean package -DskipTests -Ddistributedlogpasses.apache-rat:check checkstyle:check spotbugs:check spotless:checkpasses onbookkeeper-proto,bookkeeper-serverand the stream modules that generate LightProto code.bookkeeper-serverprotocol, metadata, cookie, DbLedgerStorage, auth andBookieInitializationTesttests pass (232).-DstreamTests(468): common, includingProxyPingPongServiceTest; proto; statelib; clients; storage, includingTestStorageContainerStoreImpl; and server. No Netty leak reports.