Skip to content

Avoid extra buffer to prepend frame size - #3560

Merged
merlimat merged 9 commits into
apache:masterfrom
merlimat:frame-size
Nov 1, 2022
Merged

merlimat merged 9 commits into
apache:masterfrom
merlimat:frame-size

Conversation

@merlimat

Copy link
Copy Markdown
Contributor

Motivation

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

@merlimat merlimat added this to the 4.16.0 milestone Oct 20, 2022
@merlimat merlimat self-assigned this Oct 20, 2022

@eolivelli eolivelli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@eolivelli

Copy link
Copy Markdown
Contributor

please take a look to tests


@Override
public ReferenceCounted touch() {
return data.touch();

Copy link
Copy Markdown
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
Copy Markdown
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-archive/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-archive/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