-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[Entitlements] Instrumentation of NIO file channels #122816
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
Conversation
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
| } | ||
| } | ||
|
|
||
| static class DummyFileChannel extends FileChannel { |
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.
Wondering, that's a lot of code to just test close and it's not directly obvious what this is used for. Maybe add a comment or is it simpler in the end to create a channel via the entitled plugin?
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.
Wait, makes sense, I misread the test... we reject subclassing 👍
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.
lgtm if tests pass
💔 Backport failed
You can use sqren/backport to manually backport by running |
…122591) (#122986) * [Entitlements] Add check functions for NIO Files (#122591) * [Entitlements] Instrumentation of NIO file channels (#122816) * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <[email protected]>
and elastic#122591) (elastic#122986) * [Entitlements] Add check functions for NIO Files (elastic#122591) * [Entitlements] Instrumentation of NIO file channels (elastic#122816) * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <[email protected]>
Relates to ES-10795
Some minor overlap with #122591 and #122406, I will solve both during merges