-
-
Notifications
You must be signed in to change notification settings - Fork 419
Workaround for st_atime_ns == 0 on Linux / zfs / Python 3.12.3 #2549
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
Conversation
|
||
# read times again and compare with original | ||
st = os.stat(self.file.filename) | ||
max_tries = 10 |
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.
Let's add a comment here explaining why this is necessary. This is so weird that we need to document it somehow.
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 would like to understand why it happens first.
Fixing the test is perhaps not enough...
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.
Agreed
It would help if the background details of why this PR is necessary and evidence (prior discussions, how to recreate the problem) were given in this PR (since there is apparently no Jira ticket). |
Still under investigation, but I had the problem running tests on my system. For now, not sure why it happens. I'll add details when I'll have some... My env is using ZFS and Python 3.12.3. Related discussion on https://matrix.to/#/#musicbrainz-picard-dev:chatbrainz.org |
Some theorising on the root cause as an unstructured braindump:
|
OpenZFS? Version? Linux distro and version? Kernel version? |
A few more ideas:
|
zfs-2.2.2-0ubuntu9.1
Linux Mint 22
|
Clearly an OpenZFS bug (likely related to truenas/zfs@f5f39b3 or similar) |
Looks like this specific bug was solved with zfs 2.2.3, see https://github.com/openzfs/zfs/releases/tag/zfs-2.2.3 . So if this specific fix was not backported to Ubuntu/Mint it likely is present there. |
Not that it makes much difference to Picard or even Python, but the issue on @zas' Mint instance is probably due to an incompatibility between openZFS 2.2.2 and a much more modern kernel 6.8 - the commit which introduced the bug was in late December 2023 to address a change in the 6.7 kernel that created issues with ctime/atime, and openZFS 2.2.2 was released before that at the beginning of Dec 2023. Obviously Github action runners will have different versions again. |
Summary
Problem
Solution
Action
Additional actions required: