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

Issue1297 part2 ordering mdelaylatest #1368

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

petersilva
Copy link
Contributor

This is another step towards addressing hard ordering constraints.

  • noticed that a file is created with a tmp name. when the subscriber wants to reflect the link, it fails because the tmp file is gone.
  • so first patch adds logic to fall-back to a normal file copy for that case.

The other commit is about the 30 second queue. We delay processing of all events
by 30 seconds so that multiple file re-writes get collapsed into a single overwrite. In
the case of mixed operations "mv/ln -s" etc... operations are done on the same file,
then order is important so dispatch the earlier event immediately, rather than
discarding the intermediate event.

If links are transient, they are no longer there when the link is
attempted, allow a recovery by falling through to an ordinary file
copy.
with an update to an ordinary file, each new content replaces the old
but sometimes there is a sequence of events, where order is necessary.
so dispatch the earlier event immediately, rather than discarding it.
Copy link

Test Results

239 tests   234 ✅  1m 34s ⏱️
  1 suites    1 💤
  1 files      4 ❌

For more details on these failures, see this check.

Results for commit 58eb63b.

@petersilva petersilva marked this pull request as ready for review January 10, 2025 16:02
@petersilva petersilva merged commit 039ece6 into development Jan 10, 2025
48 of 59 checks passed
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.

2 participants