-
Notifications
You must be signed in to change notification settings - Fork 2
Solve issue #42 (AIOpsLab) #3
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
base: main
Are you sure you want to change the base?
Conversation
Change the setting of hotel-reservation application to use "standard" storageClass to provision PVs dynamically. In this way, when PVCs are deleted, PVs will be cleaned up automatically.
@HacksonClark Hi, Jackson. I have already changed the pvc setting for hotel-reservation and this works well. Do you need to review my changes? |
Good catch @ChuanweiQu! However, I think this may break a fault that relies on this behavior - |
@yinfangchen That's true, maybe we need a more creative solution. |
Okay. I will try to find another solution and see if it works. |
I've been thinking about this carefully. The source of exceptions that we can not control should only be the the call of agent (such as network issues or authority issues.) If exceptions happen in other parts of our code, that means we have bugs and we should fix the bugs to prevent exceptions instead of thinking about exit cleanly. So, the only situation we care about is when the exception happen during call of agent. In this way, it won't be hard to apply try catch statement. |
@ChuanweiQu That makes sense to me. There's only so much we can do about a user running Ctrl+C. |
@HacksonClark No, we can still use atexit to deal with the situation of ctrl+c. I'm just saying if users try to catch some exceptions and not exit, the function registered with atexit will not work. However, If we catch the expcetions first in our code, this will not be a problem. And as I mentioned above, the only source of exceptions should be the call of agents. |
@ChuanweiQu I see. This seems like a good approach. |
Change the setting of hotel-reservation application to use "standard" storageClass to provision PVs dynamically. In this way, when PVCs are deleted, PVs will be cleaned up automatically.