-
Notifications
You must be signed in to change notification settings - Fork 717
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
Can't get large file #1003
Comments
Is this reproduce-able with 2.8.4 server? Does increasing the timeout help solve the problem and allow the test to pass above? Also how large is the asset and how far away (RTT) is the client application from the NATS system and the store asset? Thanks.. |
Hi, yeah, on 2.8.4 same situation I made fix, and it's working, but I'm not sure, mb my fix isn't correct |
#1005 - I'm not sure, mb it is not correct, but with fix it's working |
But for file with size 3gb+ not working anyway :( |
So for 3Gb+ your fix is not working regardless yes? What is RTT between your app and the asset? |
What in the example above is the context? Can you share the code that creates that? |
Yeah, for 3Gb+ is not working anyway, I'm getting lock What do you mean? (about RTT), I'm using single node nats with js (I can share test cfg) about ctx If I set ctx with my fix it's working (only for not big file size less than 3Gb)
|
Thanks If you set context timeout to say 60s does the 3Gb+ test complete? The reads are for individual reads from the pipe but the context spans the whole get operation I believe. |
No, 3Gb is not working anyway :( |
ok will take a look, thanks for the info and the report. |
Hmm ok. I added a large asset to the demo.nats.io. With a updated version of NATS cli I could download the asset which is over 3GB.
|
I can check to see if local things go too fast and you get a slow consumer possibly. Did you notice and logs from the server or disconnects in the app during the GET? |
Any updates from your side? I still have not looked at doing a test with server and client co-located. |
Wanted to ping here again and see if this issue is still present? |
@derekcollison im having the same problem this is the error i get |
Hey @nitzan-entro - we recently merged a PR which changes the read timeout to whatever you have configured in |
Thanks @piotrpio , do you know when this release will be out? |
Thanks @piotrpio, do you know when this release will be out? we've been waiting for some time now and this is currently a blocking problem for us. additionally the pr link u added is leading to the issue page not to a pr... |
The release will be out this week. Sorry about the link - it's this PR: #1531 |
Hello guys!
I have a problem, if I try to download large file from ObjectStore by nats.go lib, it's not working, because you have added a hardcode timeout
r.SetReadDeadline(time.Now().Add(2 * time.Second))
Platform:
linux/macos/std-docker
Steps or code to reproduce the issue:
Expected result:
getting file
Actual result:
getting error
The text was updated successfully, but these errors were encountered: