-
Notifications
You must be signed in to change notification settings - Fork 472
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
feat(layers/blocking): add blocking layer #2780
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
d18ef06
to
266689f
Compare
Hi @Xuanwo The sftp related tests failed, but I don't get it how this occurs, I did clone the |
cc @silver-ymz, do you have any ideas? |
266689f
to
2fbe8b5
Compare
It seems that the dropping of sftp client does some magical things.
|
Also cc @NobodyXu for some ideas. |
We can change it to only do that if a |
openssh-sftp-client v0.13.7 has released, which should fix this. |
Great! Thanks a lot! |
Hi @Xuanwo, the sftp problem and the |
For the |
ff8396c
to
a1152de
Compare
I have fixed the seek support for blocking reader at: #2799 |
a1152de
to
b3bf8df
Compare
Signed-off-by: yah01 <[email protected]>
…or-opendal into add-blocking-layer Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: yah01 <[email protected]>
e3a0a84
to
30e6451
Compare
Hi, @yah01, it's better not to do force push: OpenDAL always squash commits while merging so there is no need to do that. |
…or-opendal into add-blocking-layer Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: yah01 <[email protected]>
I'm guessing we can add following unit tests in blocking layer:
|
This seems not a blocker here, we can improve this in later PRs. |
https://github.com/openssh-rust/openssh-sftp-client/blob/main/src/handle.rs#L22C15-L59 Seems |
Signed-off-by: yah01 <[email protected]>
Signed-off-by: yah01 <[email protected]>
Hi @NobodyXu , could you release a new version of openssh-sftp-client? Then we can use it for this, I'm going to bump this directly in this PR to make sure it works |
@silver-ymz has released openssh-sftp-client v0.13.8 |
Signed-off-by: yah01 <[email protected]>
@NobodyXu, you are so awesome! |
Thank you, but @silver-ymz is the one who fixed the |
Fantastic! I'm thrilled to have @NobodyXu and @silver-ymz as part of our community! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the work!
- @yah01 for adding blocking layer.
- @NobodyXu & @silver-ymz for fixing sftp related issues.
We will need some benchmark for blocking layer's perf and make sure it works on different context. But this PR is already good enough to get merged. Let's rocks!
nextcloud failed for file locked, we should address it by add redis cache for it. Not related with this PR. |
Thanks for you guys @Xuanwo @silver-ymz @NobodyXu, it's impossible to get this work done well without your help! |
@yah01 amazing, couple of questions regarding this,
|
Yes, docs provided at
By adding blocking layers, services that only provide async API can have blocking API now.
This question is related to #2790. I expect to address them before next release. |
fix feat: Providing Blocking API support for HTTP based services like S3 #2678