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

dont reuse etag for folders marked explicitly unscanned #41327

Merged
merged 4 commits into from Jan 31, 2024

Conversation

icewind1991
Copy link
Member

@icewind1991 icewind1991 commented Nov 7, 2023

Speculated issue:

  • An external smb storage is setup where the folder mtime doesn't change when new files get created
  • files_external:notify is running marking the parent folder of any created file with a size of -1
  • the background scanner triggers for the parent folder, finding the new file
  • because the mtime of the folder didn't change, the old etag for the parent folder is reused
  • the sync client doesn't pickup the change because the etag of the parent folder didn't change.

A use case that might trigger this is an external smb storage where the underlying fs doesn't change folder mtime as we expect but "files_external:notify" is being used to process external file changes.

I was able to reproduce this with manual touching to "unchange" the folder mtime a few times but then something changed and I can't anymore...

@solracsf solracsf added this to the Nextcloud 28 milestone Nov 21, 2023
@blizzz blizzz mentioned this pull request Nov 22, 2023
5 tasks
@icewind1991 icewind1991 force-pushed the dont-reuse-metadata-unscanned branch 3 times, most recently from 4a8173c to d9aa466 Compare November 22, 2023 15:39
@blizzz blizzz modified the milestones: Nextcloud 28, Nextcloud 29 Nov 23, 2023
@icewind1991
Copy link
Member Author

Fix confirmed working by customer

@icewind1991 icewind1991 marked this pull request as ready for review December 4, 2023 15:40
@icewind1991 icewind1991 requested review from come-nc, a team, Fenn-CS and sorbaugh and removed request for a team December 4, 2023 15:40
@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Dec 4, 2023
@icewind1991
Copy link
Member Author

/backport to stable27

@icewind1991
Copy link
Member Author

/backport to stable26

@come-nc
Copy link
Contributor

come-nc commented Dec 5, 2023

@icewind1991 backport to stable28 as well no?

Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
…ning

Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991
Copy link
Member Author

/backport to stable28

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

Successfully merging this pull request may close these issues.

None yet

5 participants