-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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: bump badger to v4 #40939
feat: bump badger to v4 #40939
Conversation
bump badger to current major version drop ristretto replace directive as the glog dependency was removed upstream
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
For context, there seems to be no breaking changes in this migration: https://github.com/dgraph-io/badger/releases/tag/v4.0.0. |
@kruskall Could you remove the replace on |
@blakerouse that's true but unfortunately google.golang.org/grpc is still pulling in glog :( |
@kruskall Really? I could have sworn when I looked at the glog dependency it was only being used because of badger v3. |
We also pull in |
https://github.com/grpc/grpc-go/blob/941102b7811f4431de807b36d1caee9f2ff5f614/go.mod#L9 :( I guess this is safe because we're lucky nobody imports the Thanks for the review! 🙇 |
This is fun 🙂 |
In case people bump into this and are concerned: github v4.3.0 tag (https://github.com/dgraph-io/badger/releases/tag/v4.3.0) points at dgraph-io/badger@02d7531
The diff between the two commits looks safe: dgraph-io/badger@2725dc8...02d7531 I'll revert to v4.2.0 in any case, rewriting tags is concerning and should never be attempted with go modules and immutable versions. |
* feat: bump badger to v4 bump badger to current major version drop ristretto replace directive as the glog dependency was removed upstream * lint: fix linter issues * feat: drop glog replace directive * feat: downgrade to badger v4.2.0 as the latest version was tampered * lint: update notice file * look at what they made me do :( (cherry picked from commit 4fb90ac)
* feat: bump badger to v4 bump badger to current major version drop ristretto replace directive as the glog dependency was removed upstream * lint: fix linter issues * feat: drop glog replace directive * feat: downgrade to badger v4.2.0 as the latest version was tampered * lint: update notice file * look at what they made me do :( (cherry picked from commit 4fb90ac) Co-authored-by: kruskall <[email protected]>
Is the team aware of the implication of upgrading badger across a major version? According to badger README,
I see that beats use badger for a persistent cache. If this cache lives across version upgrade without proper handling, there may be a problem. |
@carsonip badger/v4 has no on-disk changes so it can be upgraded safely with no issues - dgraph-io/badger@v3.2103.5...v4.0.0#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4edR10 |
Thanks, sorry I missed that statement. |
Proposed commit message
bump badger to current major version
drop ristretto replace directive as the glog dependency was removed upstream
See dgraph-io/ristretto#350
bonus point for dropping other unused indirect dependencies
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Disruptive User Impact
Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs