-
Notifications
You must be signed in to change notification settings - Fork 524
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 #14427
base: main
Are you sure you want to change the base?
feat: bump badger to v4 #14427
Conversation
use a separate folder for badgerv4 DB and drop old data
This pull request does not have a backport label. Could you fix it @kruskall? 🙏
|
|
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.
Can you add some tests for the new behavior?
badger will write to the vlog only if the entry is greater than ValueThreshold. Update the test to use a larger span to write to the vlog
Change in behaviour:
|
@@ -117,6 +119,24 @@ func newTailSamplingProcessor(args beater.ServerParams) (*sampling.Processor, er | |||
return nil, fmt.Errorf("failed to create Elasticsearch client for tail-sampling: %w", err) | |||
} | |||
|
|||
oldStorageDir := paths.Resolve(paths.Data, oldTailSamplingStorageDir) | |||
if entries, err := os.ReadDir(oldStorageDir); err == nil { |
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.
Do we want to log the error if the syscall to open a directory has failed here? i.e. specifically checking for err != nil && err != io.EOF
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.
Can you add a changelog entry? This seems like the kind of change that needs a changelog entry.
This pull request is now in conflicts. Could you fix it @kruskall? 🙏
|
Motivation/summary
badger v2 is ancient
use a separate folder for badgerv4 DB and drop old data
Checklist
For functional changes, consider:
How to test these changes
Related issues
Closes #11546