You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bisync fails when files are added during bisync operation #6841
Bisync fails when files are added during bisync operation. Typically, files are added to the Path1 source (GCS), causing Listing1 to include files not actually copied.
As a result, the final Path1 Listing does not match the Path2 Listing. Hence, the bisync is marked as "failed" and the succeeding runs fail as well.
Solution area
As we update files based on deltas, it makes sense to also update the Listing1 and Listing2 fileLists based on these deltas, instead of scanning the source and destination folders.
To do so, the copy operation needs to return the actual updates as well. Currently, fastCopy only returns the error details. By including the actual updates, we have the information to update the listing. Sadly, this information needs to propagate quite some layers and modules, from actual background transfers up to the bisync module.
I can confirm that this is still an issue, and (IMO) one of the most important to solve (but also one of the trickiest.)
Does this not sort itself out if you run bisync again?
No, and that's by design. The idea is that if Path1 and Path2 don't match at the end of a bisync run, then something went very wrong and we want to lock out future runs until the user can take a look.
My proposed solution is the approach I described here, which is similar to what the OP suggests.
In the meantime, my recommendation is to use --check-sync=false and periodically do an independent integrity check as described here.
Since this issue is a dupe of #5676, I propose that it should be closed in favor of that one.
Activity
ncw commentedon Mar 16, 2023
Does this not sort itself out if you run bisync again? That is what is supposed to happen I think.
bisync: bug fixes and new features including --create-empty-src-dirs …
nielash commentedon Aug 20, 2023
I can confirm that this is still an issue, and (IMO) one of the most important to solve (but also one of the trickiest.)
No, and that's by design. The idea is that if Path1 and Path2 don't match at the end of a bisync run, then something went very wrong and we want to lock out future runs until the user can take a look.
My proposed solution is the approach I described here, which is similar to what the OP suggests.
In the meantime, my recommendation is to use
--check-sync=falseand periodically do an independent integrity check as described here.Since this issue is a dupe of #5676, I propose that it should be closed in favor of that one.
nielash commentedon Sep 5, 2023
I'm closing this as a duplicate of #5676. Please subscribe to that ticket for further updates!