-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fixed unexpected deletion of log files of other processes that led to OSError: [Errno 116] Stale file handle error on NFS volumes #8121
Conversation
… OSError: [Errno 116] Stale file handle error on NFS volumes
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe recent updates focus on standardizing the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (8)
- supervisord/server.conf (2 hunks)
- supervisord/utils.conf (3 hunks)
- supervisord/worker.analytics_reports.conf (2 hunks)
- supervisord/worker.annotation.conf (2 hunks)
- supervisord/worker.export.conf (2 hunks)
- supervisord/worker.import.conf (2 hunks)
- supervisord/worker.quality_reports.conf (2 hunks)
- supervisord/worker.webhooks.conf (2 hunks)
Files skipped from review due to trivial changes (5)
- supervisord/server.conf
- supervisord/worker.annotation.conf
- supervisord/worker.import.conf
- supervisord/worker.quality_reports.conf
- supervisord/worker.webhooks.conf
Additional comments not posted (15)
supervisord/worker.analytics_reports.conf (3)
18-18
: Good job on improving readability.The added space before the comment delimiter improves readability and consistency.
28-28
: Good addition for logging standard output.The
stdout_logfile
directive ensures that the standard output logs are captured in a specific file.
29-29
: Good addition for logging standard error.The
stderr_logfile
directive ensures that the standard error logs are captured in a specific file.supervisord/worker.export.conf (4)
18-18
: Good job on improving readability.The added space before the comment delimiter improves readability and consistency.
28-28
: Good addition for logging standard output.The
stdout_logfile
directive ensures that the standard output logs forrqworker-export
are captured in a specific file.
29-29
: Good addition for logging standard error.The
stderr_logfile
directive ensures that the standard error logs forrqworker-export
are captured in a specific file.
29-29
: Good addition for logging standard error.The
stderr_logfile
directive ensures that the standard error logs forrqworker-export
are captured in a specific file.supervisord/utils.conf (8)
18-18
: Good job on improving readability.The added space before the comment delimiter improves readability and consistency.
28-28
: Good addition for logging standard output.The
stdout_logfile
directive ensures that the standard output logs forrqscheduler
are captured in a specific file.
29-29
: Good addition for logging standard error.The
stderr_logfile
directive ensures that the standard error logs forrqscheduler
are captured in a specific file.
37-37
: Good addition for logging standard output.The
stdout_logfile
directive ensures that the standard output logs forrqworker-notifications
are captured in a specific file.
38-38
: Good addition for logging standard error.The
stderr_logfile
directive ensures that the standard error logs forrqworker-notifications
are captured in a specific file.
39-39
: Good addition for ensuring program reliability.The
autorestart=true
directive ensures that therqworker-notifications
program will automatically restart on unexpected termination.
49-49
: Good addition for logging standard output.The
stdout_logfile
directive ensures that the standard output logs forrqworker-cleaning
are captured in a specific file.
50-50
: Good addition for logging standard error.The
stderr_logfile
directive ensures that the standard error logs forrqworker-cleaning
are captured in a specific file.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #8121 +/- ##
===========================================
- Coverage 83.62% 83.39% -0.23%
===========================================
Files 383 389 +6
Lines 40502 41297 +795
Branches 3830 3858 +28
===========================================
+ Hits 33869 34441 +572
- Misses 6633 6856 +223
|
Please add a changelog entry. |
07438b8
to
f4def17
Compare
### Fixed | ||
|
||
- Fixed unexpected deletion of log files of other processes that led to OSError: | ||
\[Errno 116\] Stale file handle error on NFS volumes |
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.
Perhaps it's worth mentioning that the logs are now saved in a different directory? This could be an unexpected change for users.
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.
I added an extra entry to explain this.
|
Due the nocleanup option defaults to false and we use AUTO-generated names for backend process log files, this causes NFS4ERR_STALE to appear on NFS-mounted volumes
http://supervisord.org/configuration.html#:~:text=Introduced%3A%203.0-,nocleanup,-Prevent%20supervisord%20from
https://stackoverflow.com/questions/40262823/stale-file-handle-error-when-process-trying-read-the-file-that-other-process
Motivation and context
How has this been tested?
Checklist
develop
branch(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.
Summary by CodeRabbit
stdout_logfile
andstderr_logfile
directives for more effective logging and troubleshooting across multiple programs.