-
Notifications
You must be signed in to change notification settings - Fork 528
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: update to badger v4 #11344
feat: update to badger v4 #11344
Conversation
This pull request does not have a backport label. Could you fix it @kruskall? 🙏
NOTE: |
@@ -573,87 +573,6 @@ func TestStorageMonitoring(t *testing.T) { | |||
assert.NotZero(t, metrics.Ints, "sampling.storage.value_log_size") | |||
} | |||
|
|||
func TestStorageGC(t *testing.T) { |
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.
For reviewers: this will fail because the meaning of vlog files changed, see dgraph-io/badger#1555
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.
Thinking about this again, I'm not sure we should just remove the test. GC is still needed, it's just that how it works has changed. Can we instead update the test?
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.
Looks good!
IIUC this would be a breaking change as the data format has changed, so old files wouldn't be able to be loaded. Is that correct? If so then we should list it in the changelog. Also, have you confirmed the behaviour when upgrading from an older apm-server version?
This pull request is now in conflicts. Could you fix it @kruskall? 🙏
|
This is what happened when trying to load a directory on the previous version:
I don't think the migration procedure is feasible. Could we change the directory path ? e.g. |
This pull request is now in conflicts. Could you fix it @kruskall? 🙏
|
That sounds good. The alternative would be to automatically delete the old data, but I think it would be better to leave it there and give the user an option to manually backup/restore. OTOH that would mean the old data will be left behind forever. Maybe we could check the modification time of files in the |
Sorry for the late reply!
Good idea! Updated! |
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.
Thanks for the updates @kruskall. Looks good overall, my main concern now is the removed test.
@@ -5,6 +5,7 @@ https://github.com/elastic/apm-server/compare/8.10\...main[View commits] | |||
|
|||
[float] | |||
==== Breaking Changes | |||
- Update badger to v4 {pull}11344[11344] |
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.
We should mention why it's breaking - what the implications are for users.
@@ -573,87 +573,6 @@ func TestStorageMonitoring(t *testing.T) { | |||
assert.NotZero(t, metrics.Ints, "sampling.storage.value_log_size") | |||
} | |||
|
|||
func TestStorageGC(t *testing.T) { |
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.
Thinking about this again, I'm not sure we should just remove the test. GC is still needed, it's just that how it works has changed. Can we instead update the test?
Co-authored-by: Andrew Wilkins <[email protected]>
I'll close this in the interest of time and open an issue that we can schedule. Sorry, I underestimated the amount of work needed for this 🙇 |
Motivation/summary
badger v2 is severely out of date and newer versions have important performance improvements
Checklist
- [ ] Update package changelog.yml (only if changes toapmpackage
have been made)- [ ] Documentation has been updatedFor functional changes, consider:
How to test these changes
Related issues