-
Notifications
You must be signed in to change notification settings - Fork 527
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
curvefs/client: cancel the warm-up task in the warm-up queue #2019
Comments
anybody want do it? |
Hello, Can I try this one? |
Okay, thanks for contributing to curve. |
you can take a look: |
Thanks for your suggestions. |
@Cyber-SiKu Hi, It seems that #2234 is still under construction, so maybe I need to wait until you done, then I will implement this feature based on your code. After viewing the related code(mainly the modified version), I roughly know how to implement this and let me give you a quick idea here so that you can correct me timely. In your code(the modified version), the |
heroes see alike. |
@Tom-CaoZH 2234 has been merged, can you continue? |
@Tom-CaoZH Are you still interested in this issue? |
@Cyber-SiKu Yes, but unfortunately, I have to finish my paper first as it is due on 3.30. I have been pretty busy lately , before the paper, I just finished my final exam, so I didn't have enough time to work on the project these days. But I believe I can come back as I finish the paper. |
ok |
Hello @Cyber-SiKu , I have returned and reviewed the latest code. I have some ideas to implement it. Firstly, I plan to implement |
Thanks for your work, mainly want to ask if you are still continuing or have any difficulties. |
@Cyber-SiKu Yes, I am still continuing, I am almost done. I am a bit confused about what kind of tests I need to write in |
Also, I want to ask when I implement |
Add a warm-up task (and then block the warm-up task), and then delete and recycle resources normally. |
The warm-up task takes the inode that initiated the warm-up task as the primary key, and all resources (including thread pools and other resources) that match the primary key need to be deleted. If you only delete the corresponding thread pool, other resources will be resolved by the scanning thread and generate a new thread pool. |
|
我可以试试吗 |
yep |
hello,can I change the issue? |
I am interested in this task, please assign it to me, thanks. @Cyber-SiKu |
@xzt1590 What are you trying to change? |
welcome |
ping @Xinlong-Chen @Tom-CaoZH What progress has been made in solving this issue? |
be busy with ospp task, will do it in this month~ |
How does the "overwrite method of adding the warmup task" enable us to block the thread pool? Take a test case for a warmup file cancellation operation as an example: |
I am just giving an example, blocking is to ensure that the task is still there when it is canceled. |
@Cyber-SiKu I am not quite sure how to apply the mock function to the testing (in terms of ensuring that the task is still in the thread pool). Update here is my application link: https://ask.opencurve.io/t/topic/168 |
@ken90242 Got it. |
Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)
cancel the warm-up task in the warm-up queue
Describe the solution you'd like (描述你期望的解决方法)
Before we are ready to access the file, we can pre-load the data locally
Iterate over all files and download all s3 objects according to the chunk information in the inode
all warm-up task is store in the warmUpTasks_ queue which is the member of class FuseClient, so if we had received the cmd to cancel the tash, we can remove it
The text was updated successfully, but these errors were encountered: