update(engine)!: print stats to stderr #3333
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind cleanup
Any specific area of the project related to this PR?
/area engine
What this PR does / why we need it:
We have noticed a non-deterministic testing failure:
The problem here is that when you shut down Falco (or when the end of output is reached) there is a stat message that is written to stdout and is not synchronized with the Falco output queue. Example:
This means that this output can be intermixed with the regular Falco output. If you were expecting json you will find something else. There are more messages that are printed but those are on stderr. I have discussed this with @jasondellaluce , and we agree that it makes sense to put all of that to stderr.
This is however a breaking change in some ways, so if someone (e.g. @leogr ) can think of a reason why we shouldn't do it maybe we need to better synchronize this, although it is not as trivial.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: