Skip to content
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

NAS-131296 / 25.04 / fix modify time for HA debug archives #14549

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yocalebo
Copy link
Contributor

The standby debug is downloaded via REST over the heartbeat and put into an io.BytesIO object. This bytes object doesn't store file metadata like mtime. To remedy the situation, simply update the mtime attribute after we add it to a TarInfo object before writing it to the parent archive. Without these changes, the mtime is empty which gets interpreted in many different ways depending on the OS that is interpreting the archive file.

This has been a long standing issue.

@bugclerk bugclerk changed the title fix modify time for HA debug archives NAS-131296 / 25.04 / fix modify time for HA debug archives Sep 20, 2024
@bugclerk
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants