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

patch to allow for delayed input on pipes (stdin) #155

Open
sivann opened this issue Feb 18, 2014 · 1 comment
Open

patch to allow for delayed input on pipes (stdin) #155

sivann opened this issue Feb 18, 2014 · 1 comment

Comments

@sivann
Copy link

sivann commented Feb 18, 2014

when trying to upload an sql dump from stdin, glacier-cmd always failed with "There is nothing to upload", because our DB is 6TB and pg_dump takes a bit to start.
This was solved by adding a timeout >0 to select:

in glacier/GlacierWrapper.py:

-        elif select.select([sys.stdin,],[],[],0.0)[0]:
+        elif select.select([sys.stdin,],[],[],2.0)[0]:

@nilp0inter
Copy link

I was trying to upload the output of an on-the-fly generated tar file and I was getting the same error. This patch worked for me too.

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

2 participants