-
Notifications
You must be signed in to change notification settings - Fork 525
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
[orchdaemon]: Fixed sairedis record file rotation #2299
Conversation
Signed-off-by: Bryan Crossland bryan.crossland@target.com
@kcudnik , can you review this? |
Pipeline fixes are still broken: @kcudnik @prsunny The errors that are happing on this PR are not related to the code change it makes. The failure are related to problems in the master branch already or problems in the build pipeline.
How do you want me to proceed so this PR can be merged? |
Please take a look at this PR too: sonic-net/sonic-sairedis#1058 |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@bacrossland Build has passed. Could you add UT for your change? |
Thank you @Blueve. I will get that unit test added. |
/easycla |
/azp run coverage.Azure.sonic-swss.amd64 |
No pipelines are associated with this pull request. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@kcudnik The UT coverage for this repo might not accurate now and most PR are not having UT. Do you think we can merge this PR wo/ UT? |
no, please add corresponding tests to fix code coverage, we dont want to skip this, threshold must be met |
@kcudnik I'm setting aside time next week to fix this PR and get the testing in. |
sure, lets fix this this week |
Merged in master. |
/azp run |
Commenter does not have sufficient privileges for PR 2299 in repo sonic-net/sonic-swss |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
The LGTM analysis is failing on this. It's coming from swss-common:
|
Test vstest is failing on this. Timeout of p2mp_tunnel:
Also here. Assertion failed on removing ipv6 link:
|
Pulled in latest commits that have fixes for missing libyang |
@bacrossland can you raise a separate PR for 202205 branch? This change cannot be cherry-picked to 202205 branch cleanly. |
This commit could not be cleanly cherry-picked to 202012. Please submit another PR. |
Sure. I'll put those in later tonight or tomorrow morning. |
PR 202205 Release: #2480 |
@qiluo-msft 202012 is going to take more work as that release is missing things I relied on for the unit tests I put in master. I have to rework my unit tests to make it work for that old release. I could also just put in a PR without the unit tests but that would be less desirable. |
PR 202012 Release: #2481 |
* [orchdaemon]: Fixed sairedis record file rotation * What I did Fix sonic-net/sonic-buildimage#8162 Moved sairedis record file rotation logic out of flush() to fix issue. Why I did it Sairedis record file was not releasing the file handle on rotation. This is because the file handle release was inside the flush() which was only being called if a select timeout was triggered. Moved the logic to its own function which is called in the start() loop. How I verified it Ran a script to fill log and verified that rotation was happening correctly. Signed-off-by: Bryan Crossland bryan.crossland@target.com
202012 branch PR merged: #2481 |
What I did
Fix Azure/sonic-buildimage#8162
Moved sairedis record file rotation logic out of flush() to fix issue.
Why I did it
Sairedis record file was not releasing the file handle on rotation. This is because the file handle release was inside the flush() which was only being called if a select timeout was triggered. Moved the logic to its own function which is called in the start() loop.
How I verified it
Ran a script to fill log and verified that rotation was happening correctly.
Signed-off-by: Bryan Crossland bryan.crossland@target.com