Bug #88567 Contribution by Facebook: Add zstd compression option for replication
Submitted: 20 Nov 2017 19:34 Modified: 6 Jul 2020 23:49
Reporter: FBContrib Admin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Connection Handling Severity:S3 (Non-critical)
Version:5.6 OS:Any
Assigned to: CPU Architecture:Any

[20 Nov 2017 19:34] FBContrib Admin
Description:
Background innformation provided by Facebook:
Abstract:

Repo: https://github.com/mysql/mysql-server

Patch on top of 5.6.35: https://github.com/mysql/mysql-server/tree/d61eb03ba1b8478d6cb09969ca6c38f330a93178

This diff adds a generic protocol option to modify the compression algorithm at connect time. This is done using the 'compression_lib' connection attribute, which when combined with the compress flag, will determine a new compression library for network compression. It is meant to be extendable to other compression libraries.

When a client wants to use compression, they can either set the compress flag as they do now, or use mysql_options to select a compression library from the given enums. Under the hood, this will set the compress flag and pass the library through to the server via a connection attribute.

How to repeat:
See description

Suggested fix:
See contribution code attached
[20 Nov 2017 19:34] FBContrib Admin
Add zstd compression option for replication 
(*) This code is contributed under the Facebook agreement

Contribution: fb_patch_12.txt (text/plain), 33.66 KiB.

[6 Jul 2020 23:47] Omer Barnir
This has been addressed by WL#12039 and WL#12475

Thanks to Facebook for the contribution