Closed jasondellaluce closed 2 years ago
NOTE: these changes make the SDK more resilient, and is compatible with the changes proposed in https://github.com/falcosecurity/libs/pull/168.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jasondellaluce, leogr
The full list of commands accepted by this bot can be found here.
The pull request process is described here
LGTM label has been added.
Signed-off-by: Jason Dellaluce jasondellaluce@gmail.com
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area plugin-sdk
What this PR does / why we need it:
In some edge cases,
extract.StopAsync
can could be invoked withoutextract.StartAsync
being invoked first, which is semantically wrong (it also leads to a panic). This PR fixes this by setting up theextract.StopAsync
callback only afterextract.StartAsync
is effectively invoked.Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?: