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

feat(zstd): replace datadog's zstd with Klauspost's zstd #1709

Merged
merged 1 commit into from Jun 8, 2021

Conversation

NamanJain8
Copy link
Contributor

@NamanJain8 NamanJain8 commented Jun 1, 2021

  • Remove Datadog's ZSTD that requires CGO
  • Make Klauspost's ZSTD as default

Related PRs: #1383 #1706


This change is Reviewable

@NamanJain8 NamanJain8 marked this pull request as draft June 1, 2021 11:45
@NamanJain8 NamanJain8 marked this pull request as ready for review June 1, 2021 14:33
Copy link
Contributor

@jarifibrahim jarifibrahim left a comment

Choose a reason for hiding this comment

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

LGTM. Please do basic sanity testing so that we know old data compressed by Datadog/zstd works after this change as well.

@NamanJain8 NamanJain8 merged commit 275264c into master Jun 8, 2021
@NamanJain8 NamanJain8 deleted the naman/zstd-nogco branch June 8, 2021 06:08
NamanJain8 added a commit that referenced this pull request Jul 2, 2021
Remove Datadog's ZSTD that requires CGO
Make Klauspost's ZSTD as default

(cherry picked from commit 275264c)
NamanJain8 pushed a commit that referenced this pull request Aug 25, 2021
…std (#1736)

Backports the changes from #1706 and #1709 to the v2 branch of badger.

For context, https://github.com/caddyserver/caddy uses https://github.com/smallstep/certificates which uses https://github.com/smallstep/nosql which uses badger.

See smallstep/nosql#12 for the discussion. It's not currently viable for smallstep to upgrade from v2 to v3 of badger, so it would be nice to backport this zstd change to the v2 branch to remove the implicit (yet optional) CGO dependency on Caddy.

I targeted the release/v2.2007 branch, I couldn't really see a more relevant branch to target, so I hope that's okay.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants