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

[Bug] Loop when files are being actively written to and FSNotify triggers #57

Open
RomeSilvanus opened this issue Oct 8, 2021 · 0 comments
Labels
performance Strictly performance related
Milestone

Comments

@RomeSilvanus
Copy link

RomeSilvanus commented Oct 8, 2021

Should check for file activity or if file is open in another process before proceeding with add process

Error message:

2021/10/08 22:43:38 fsnotify event: "files/713.7z": WRITE
2021/10/08 22:43:38 Adding file from files/713.7z to /ipfs-sync/files/713.7z ...
2021/10/08 22:43:38 Generating file headers...
2021/10/08 22:43:38 Doing add request...
2021/10/08 22:43:38 File hash: bafkreih
2021/10/08 22:43:38 Removing existing file (if any)...
2021/10/08 22:43:38 Adding file to mfs path: /ipfs-sync/files/713.7z
2021/10/08 22:43:38 AddFile reply: bafkreih
2021/10/08 22:43:38 fsnotify event: "files/813.7z": WRITE
2021/10/08 22:43:38 Adding file from files/813.7z to /ipfs-sync/files/813.7z ...
2021/10/08 22:43:38 Generating file headers...
2021/10/08 22:43:38 Doing add request...
2021/10/08 22:43:38 File hash: bafkreih
2021/10/08 22:43:38 Removing existing file (if any)...
2021/10/08 22:43:38 Adding file to mfs path: /ipfs-sync/files/813.7z
2021/10/08 22:43:38 AddFile reply: bafkreih
2021/10/08 22:43:38 fsnotify event: "files/713.7z": WRITE
2021/10/08 22:43:38 Adding file from files/713.7z to /ipfs-sync/files/713.7z ...
2021/10/08 22:43:38 Generating file headers...
2021/10/08 22:43:38 Doing add request...
2021/10/08 22:43:38 File hash: bafkreihdw
2021/10/08 22:43:38 Removing existing file (if any)...
2021/10/08 22:43:38 Adding file to mfs path: /ipfs-sync/files/713.7z
2021/10/08 22:43:38 AddFile reply: bafkreih
2021/10/08 22:43:38 fsnotify event: "files/819.7z": WRITE
2021/10/08 22:43:38 Adding file from files/819.7z to /ipfs-sync/files/819.7z ...

@RomeSilvanus RomeSilvanus changed the title Loop when files are being actively written to and FSNotify triggers [Bug] Loop when files are being actively written to and FSNotify triggers Oct 8, 2021
@TheDiscordian TheDiscordian added the performance Strictly performance related label Oct 8, 2021
@TheDiscordian TheDiscordian added this to the v1.0.0 milestone Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Strictly performance related
Projects
None yet
Development

No branches or pull requests

2 participants