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.
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
Support sending IPFIX flow records for Antrea flow exporter #825
Support sending IPFIX flow records for Antrea flow exporter #825
Changes from all commits
1d9ab19
628ef8f
2cc62b4
9240e7e
7495f1e
1fea8a4
d3fafae
6abc0f8
52bb040
7eb03b5
a8ea1d5
090ef09
719f8e0
841469c
0ef571a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
you used an unbuffered channel, yet the code in the exporter looks like this:
I don't understand how that works. Won't the polling code block until the exporter ticker ticks?
As indicated below I don't think the ticker in the exporter is necessary, but the channel should probably be buffered to accommodate
o.config.FlowExportFrequency
signals, especially if you keep that ticker.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.
Yes, ticker is not needed anymore. Thanks for pointing it out.
@unbuffered channel: You are right. The initial poll cycles are messed up and behavior is not expected.
I removed the ticker and we can have unbuffered channel as we will not be waiting on bunch of signals simultaneously. Fixed this. Please take a look.