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

--open_files_during_discovery issues (open blocks/hangs while directory browsing?) #102

Closed
ldemailly opened this issue Nov 25, 2015 · 0 comments

Comments

@ldemailly
Copy link
Contributor

check that it works well - @uddipta reported open hanging / let's get repro steps and a fix

wdt --open_files_during_discovery -destination ::1 -directory /usr -transfer_id=wdt

doesn't seem to hang (but it does expectedly run out of fds)

ps: also: when doing
$ wdt --skip_writes --transfer_id=wdt --run_as_daemon &
$ wdt --open_files_during_discovery -destination ::1 -directory /usr

1124 20:51:05.263090 2099960 ByteSource.h:51] Failed to close file lib64/libdb-4.7.so: Bad file descriptor [9]
E1124 20:51:05.263135 2099960 ByteSource.h:51] Failed to close file lib64/libdb-4.3.so: Bad file descriptor [9]
E1124 20:51:05.263149 2099960 ByteSource.h:51] Failed to close file lib64/libasound.so.2.0.0: Bad file descriptor [9]
E1124 20:51:05.263203 2099960 ByteSource.h:51] Failed to close file lib64/libglib-2.0.so.0.2800.8: Bad file descriptor [9]
E1124 20:51:05.263211 2099960 ByteSource.h:51] Failed to close file lib64/libgio-2.0.so.0.2800.8: Bad file descriptor [9]

ldemailly referenced this issue Dec 4, 2015
Summary: Couple of minor but important bugs in open files while discovering mode

Reviewed By: ldemailly

Differential Revision: D2711631

fb-gh-sync-id: 5adc0fe92a8d5e1d3f045700d8cc40a0e825aa21
ldemailly added a commit that referenced this issue Dec 7, 2015
Summary:
new command line options - read url/secret from stdin, option to fork

you can now do stuff like :

(ssh localhost wdt -fork -start_port 0 -directory /tmp/dst1; ls *.h ) | wdt -manifest - -

which runs the receiver and outputs the url to stdout, then detaches so
the next command can run (output the .h list) and the sender reads both from
stdin !

fixes #102

Reviewed By: nikunjy

Differential Revision: D2726117

fb-gh-sync-id: 2c6c71b5b8cdc7819835eaaaf4a30d6ebf2a3124
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

No branches or pull requests

1 participant