Skip to content

NSFS | remove previous version external attribute #8351

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

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

nadavMiz
Copy link
Contributor

@nadavMiz nadavMiz commented Sep 11, 2024

Explain the changes

currently we have external attribute to denote the previous version. it is an optimization to not look for the latest version for promoting the previous version after deleting the latest version. However this is not well maintain and can be wrong on certain concurrency scenarios such as putting multiple objects with the same key at the same time. this can cause that the wrong version is being promoted. so for now remove the previous version external attribute. we should consider returning this xattr in the future if this optimization is necessary.

Issues: Fixed #xxx / Gap #xxx

Testing Instructions:

  • Doc added/updated
  • Tests added
  • [ ]

@nadavMiz nadavMiz requested a review from romayalon September 11, 2024 11:58
@nadavMiz nadavMiz force-pushed the remove-prev-attribute branch 4 times, most recently from f4304c1 to ba47b08 Compare September 17, 2024 08:14
@nadavMiz nadavMiz requested a review from shirady September 17, 2024 09:46
Copy link
Contributor

@shirady shirady left a comment

Choose a reason for hiding this comment

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

LGTM

@shirady
Copy link
Contributor

shirady commented Sep 17, 2024

@nadavMiz could you please add in the PR description the details that you mentioned in the Weekly meeting about the motivation and the reasons for this change? (concurrency issues that it might create so we will have it documented)

@nadavMiz nadavMiz force-pushed the remove-prev-attribute branch from ba47b08 to 6ffaa8a Compare September 18, 2024 12:07
@nadavMiz nadavMiz merged commit 57cd502 into noobaa:master Sep 18, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants