-
Notifications
You must be signed in to change notification settings - Fork 133
Proxy: compresssion support #1246
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
Merged
wprzytula
merged 19 commits into
scylladb:main
from
wprzytula:proxy-compresssion-support
May 7, 2025
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
a99c6ab
scylla_cql/frame: move flags to dedicated module
wprzytula 4b6f915
scylla_cql/frame: expose compression-related items
wprzytula fcc46e6
frame: impl FromStr for Compression
wprzytula 52aaa60
frame: impl DeserializableRequest for Startup
wprzytula b445086
proxy: make for_{request,response} methods const
wprzytula 6a14937
proxy: impl (Partial)Eq for {Request,Response}Frame
wprzytula 13dbedf
proxy: write_frame accepts slice instead of Bytes
wprzytula 0d56a20
proxy: unpub RequestFrame::write
wprzytula 96e62f6
proxy: fix some debug prints
wprzytula 1cbf170
proxy: don't use COMPRESSED flag in tests randomly
wprzytula a7ca83c
proxy: combat timing-based flakiness
wprzytula 3d5725c
proxy: introduce ReadFrameError
wprzytula d026fea
proxy: introduce compression abstractions
wprzytula 450958b
proxy: request_processor sets compression from STARTUP
wprzytula c9fa961
proxy: pass CompressionReader to frame reading fns
wprzytula 69085f0
proxy: decompress compressed incoming frames
wprzytula 66a2362
proxy: pass CompressionReader to frame writing fns
wprzytula 7b7eb11
proxy: compress outgoing frames if came compressed
wprzytula d3380a4
proxy: test various compression scenarios
wprzytula File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
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.
commit:
proxy: unpub RequestFrame::write
Isn't this a breaking change for
scylla-proxy
. Current version is0.0.4
, so the next time we release it, it should be bumped to0.1.0
, or am I missing something?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.
I'm not sure that
scylla-proxy
used to comply with semver. Anyway, releasing a new major makes perfect sense.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.
But why would we need
0.1.0
?0.0.5
is also a new major.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.
Oh, I wasn't that familiar with the semantics pre-1.0. So what's the difference between bumping the minor vs patch version in pre-1.0 crate?
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.
semver says:
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.
So it seems that it was just us that had the convention that in
0.y.z
,y
was the major andz
was the minor version number.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.
This is also incorrect. Official semver spec differs from the semver used in Cargo. See https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#default-requirements