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

Fix some oopsies in the unix properties PR #1818

Merged
merged 2 commits into from
Jun 9, 2022

Conversation

adreed-msft
Copy link
Member

  1. We didn't clone the metadata map when we were going to modify it for individual blobs, meaning we'd encounter data races, and incorrect properties would be written
  2. The incorrect seconds value was used for CTime, leading to an invalid value for UnixNano.

if unixSIP, ok := s.sip.(IUNIXPropertyBearingSourceInfoProvider); ok {
// Clone the metadata before we write to it, we shouldn't be writing to the same metadata as every other blob.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any unit tests or e2e tests that we could write up for this scenario you think that could have caught this?

Copy link
Member Author

@adreed-msft adreed-msft Jun 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was my intent to produce some e2e tests after I finish the symlink work that would test the entire scenario.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adreed-msft we need to do the same for pageBlob too.

@zezha-msft zezha-msft added this to the xdm-integration milestone Jun 2, 2022
@zezha-msft zezha-msft merged commit a56e3eb into dev Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants