Skip to content
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

Avoid extra buffer to prepend frame size #3560

Merged
merged 9 commits into from
Nov 1, 2022
Merged

Conversation

merlimat
Copy link
Contributor

Motivation

As described in #3559, we should avoid the extra buffer allocation just for prepending the 4 bytes frame size

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eolivelli
Copy link
Contributor

please take a look to tests

@@ -481,12 +482,14 @@ public ReferenceCounted retain(int increment) {

@Override
public ReferenceCounted touch() {
return data.touch();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When using the leak checker, this was causing the ReadResponse to get converted into an instrumented buffer, and the serialization was completely skipped.

@hangc0276
Copy link
Contributor

@merlimat Would you please take a look at those failed tests?

@merlimat merlimat merged commit 02be9d2 into apache:master Nov 1, 2022
@merlimat merlimat deleted the frame-size branch November 1, 2022 04:05
yaalsn pushed a commit to yaalsn/bookkeeper that referenced this pull request Jan 30, 2023
* Avoid extra buffer to prepend frame size

* Fixed checkstyle

* Fixed touch methods on ReadResponse

* Fixed frame size for protobuf requests

* Removed unwanted changes

* Fixed AuthResponse in v2 protocol

* Fixed test
hangc0276 pushed a commit that referenced this pull request Feb 13, 2023
* Avoid extra buffer to prepend frame size

* Fixed checkstyle

* Fixed touch methods on ReadResponse

* Fixed frame size for protobuf requests

* Removed unwanted changes

* Fixed AuthResponse in v2 protocol

* Fixed test

(cherry picked from commit 02be9d2)
zymap pushed a commit that referenced this pull request Feb 16, 2023
* Avoid extra buffer to prepend frame size

* Fixed checkstyle

* Fixed touch methods on ReadResponse

* Fixed frame size for protobuf requests

* Removed unwanted changes

* Fixed AuthResponse in v2 protocol

* Fixed test

(cherry picked from commit 02be9d2)
nicoloboschi pushed a commit to datastax/bookkeeper that referenced this pull request Mar 13, 2023
* Avoid extra buffer to prepend frame size

* Fixed checkstyle

* Fixed touch methods on ReadResponse

* Fixed frame size for protobuf requests

* Removed unwanted changes

* Fixed AuthResponse in v2 protocol

* Fixed test

(cherry picked from commit 02be9d2)
(cherry picked from commit 5037159)
nicoloboschi pushed a commit to datastax/bookkeeper that referenced this pull request Mar 13, 2023
* Avoid extra buffer to prepend frame size

* Fixed checkstyle

* Fixed touch methods on ReadResponse

* Fixed frame size for protobuf requests

* Removed unwanted changes

* Fixed AuthResponse in v2 protocol

* Fixed test

(cherry picked from commit 02be9d2)
(cherry picked from commit 5037159)
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
* Avoid extra buffer to prepend frame size

* Fixed checkstyle

* Fixed touch methods on ReadResponse

* Fixed frame size for protobuf requests

* Removed unwanted changes

* Fixed AuthResponse in v2 protocol

* Fixed test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants