-
Notifications
You must be signed in to change notification settings - Fork 387
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
Log maintenance bug fix in the Flow Aggregator #2522
Conversation
@@ -15,6 +15,7 @@ | |||
package main | |||
|
|||
import ( | |||
"antrea.io/antrea/pkg/log" |
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.
sorry I missed this: this import is in the wrong group
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.
Yup, I also just realized it. Updated the patch.
Periodic deletion of log files is missing in the Flow Aggreegator. This logic periodically deletes extra files by making sure that max number of files to be 4. This will ensure that no disk space is wasted on the Kubernetes node running the Flow Aggregator. This logic was missed initially when the logging in the Flow Aggregator is added in the beginning adopting the same framework as the Antrea Agent and the Antrea Controller. Signed-off-by: Srikar Tati <stati@vmware.com>
d0eed33
to
0e7d786
Compare
Codecov Report
@@ Coverage Diff @@
## main #2522 +/- ##
=======================================
Coverage 59.89% 59.90%
=======================================
Files 284 284
Lines 22265 22265
=======================================
+ Hits 13335 13337 +2
+ Misses 7511 7508 -3
- Partials 1419 1420 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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
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
Please cherry-pick to 1.2
/skip-all |
Periodic deletion of log files is missing in the Flow Aggreegator.
This logic periodically deletes extra files by making sure that max
number of files to be 4. This will ensure that no disk space is wasted
on the Kubernetes node running the Flow Aggregator.
This logic was missed initially when the logging in the Flow Aggregator is
added in the beginning adopting the same framework as the Antrea Agent and the
Antrea Controller.
Signed-off-by: Srikar Tati stati@vmware.com