-
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
filestream: fix 'requires pointer' error #33956
filestream: fix 'requires pointer' error #33956
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
This commit fixes the 'requires pointer' error log issued by filestream when a file being harvested is renamed. Filebeat already recovers from this error by using the file indentifier from the prospector instead of the metadata, so the log message is downgraded to warn and contains more details about what happened.
7b7ddbe
to
22319bd
Compare
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
This pull request is now in conflicts. Could you fix it? 🙏
|
This pull request is now in conflicts. Could you fix it? 🙏
|
04f469f
to
2b9a935
Compare
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 new tests!
Folks, I'll take a little longer to merge this PR. I'm not completely happy with my tests, I'm questioning whether I'm just testing a pointer is passed on that method call or I'm testing the correct behaviour/changes in the registry. I might be going a bit too deep in the rabbit hole here 😅 |
1acc9be
to
cc21c51
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
/test |
This commit fixes the 'requires pointer' error log issued by filestream when a file being harvested is renamed. Filebeat already recovers from this error by using the file identifier from the prospector instead of the metadata, so the log message is downgraded to warn and contains more details about what happened. (cherry picked from commit 2263f3e)
This commit fixes the 'requires pointer' error log issued by filestream when a file being harvested is renamed. Filebeat already recovers from this error by using the file identifier from the prospector instead of the metadata, so the log message is downgraded to warn and contains more details about what happened. (cherry picked from commit 2263f3e)
This commit fixes the 'requires pointer' error log issued by filestream when a file being harvested is renamed. Filebeat already recovers from this error by using the file identifier from the prospector instead of the metadata, so the log message is downgraded to warn and contains more details about what happened. (cherry picked from commit 2263f3e) Co-authored-by: Tiago Queiroz <[email protected]>
) This commit fixes the 'requires pointer' error log issued by filestream when a file being harvested is renamed. Filebeat already recovers from this error by using the file identifier from the prospector instead of the metadata, so the log message is downgraded to warn and contains more details about what happened. (cherry picked from commit 2263f3e) Co-authored-by: Tiago Queiroz <[email protected]> Co-authored-by: Denis <[email protected]>
This commit fixes the 'requires pointer' error log issued by filestream when a file being harvested is renamed. Filebeat already recovers from this error by using the file identifier from the prospector instead of the metadata, so the log message is downgraded to warn and contains more details about what happened.
What does this PR do?
This PR fixes the 'requires pointer' error log issued by filestream when a file being harvested is renamed.
Filebeat already recovers from this error by using the file indentifier from the prospector instead of the metadata, so the log message is downgraded to warn and contains more details about what happened.
Why is it important?
It fixes a bug and removes a log error that was somehow misleading.
Checklist
- [ ] I have commented my code, particularly in hard-to-understand areas- [ ] I have made corresponding change to the default configuration filesCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.## Author's ChecklistHow to test this PR locally
## Related issues## Use cases## Screenshots## Logs