-
Notifications
You must be signed in to change notification settings - Fork 478
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: remove_via can delete files concurrently #1495
Conversation
Please ignore the macos's build, I will fix this today. |
I have no idea how to solve the Memcached test that failed. Could you give me some advice? |
I got it: /// Delete a key and don't wait for response.
pub async fn delete<K: Display>(&mut self, key: K) -> Result<(), Error> {
let header = format!("delete {} noreply\r\n", key);
self.io.write_all(header.as_bytes()).await?;
self.io.flush().await?;
Ok(())
} Seems |
I have reported it to upstream. vavrusa/memcache-async#24 |
As there has been no response from memcache-async and its logic is not too complex, I would rather maintain the memcache transport ourselves. Are you willing to port the code from memcache-async to opendal (under MIT license, keep the original license file)? |
Ok. So should I copy the file and the license file to opendal? And where should I put these codes? |
Tracked at #1542 |
d4651d3
to
b725103
Compare
Hi there, if the key is not found, OpenDAL should return an Ok response |
It seems other problems. And I can't reproduce this problem on my machine. My memcached's version is 1.6.14, and I run |
To modify the memcached version utilized during testing, please change I think it's worth testing against version 1.6.14, we are finding a memcached's bug? 😱 |
Signed-off-by: Wenyu Huang <huangwenyuu@outlook.com>
Notwithstanding the version of memcached, I will investigate it in detail later. |
Signed-off-by: Xuanwo <github@xuanwo.io>
Hi, I fixed this issue by remove the <25 set 110d7750-d750-4acd-a795-16cff427e44a/46582dda-fb8b-4763-9e3b-a784820459ff/98 0 0 13 noreply
>25 NOREPLY STORED
<25 version
>25 VERSION 1.6.18
<25 set 110d7750-d750-4acd-a795-16cff427e44a/46582dda-fb8b-4763-9e3b-a784820459ff/99 0 0 13 noreply
<26 ... <------- 99 didn't got a STORED yet
<26 delete 110d7750-d750-4acd-a795-16cff427e44a/46582dda-fb8b-4763-9e3b-a784820459ff/99
>26 NOT_FOUND <----------- but the delete op is sent
>25 NOREPLY STORED <--------- 99 is store here! |
Signed-off-by: Xuanwo <github@xuanwo.io>
Thanks a lot! |
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
Delete files concurrently with limit in remove_via.
issue: #1396