-
Notifications
You must be signed in to change notification settings - Fork 328
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
Invalidate compiled script cache when it is updated #2434
Comments
It can be done by calling |
Hi, I would like to try this one. Could you assign it to me? |
Have fun🚀 |
Hi @WenyXu, I plan to communicate via |
PTAL @waynexia |
It seems we need to design an RPC service to accept cache invalidation requests from the |
We still cannot ensure a correct result. The step |
In this context, what level of consistency are we expecting? |
Expect read-after-write like other insertion operations. |
My plan is to add a When If the read and write operations follow a read-after-write consistency, it ensures the latest data. The cost is that we have to read the Moreover, we no longer need to implement broadcasting in the Do you think this plan is feasible? |
This does override the need for broadcasting if we choose to implement this "strict" mode now Can you give a more detailed per-step plan of how you break this task down and plan to implement it? |
cc @discord9 |
Sure. I have made some changes to my plan because I found a new issue. After inserting a script, it cannot be executed through SQL in other Taking the UDF part into consideration, here is my plan:
Now, whether it is called through the HTTP API or SQL UDF, the latest script can be executed. |
Looks good to me! Let's take a step. |
A |
This is indeed a problem, and I overlooked this point. Both of them have some issues
I have browsed the documentation and found |
@xxxuuu Yes, I believe it's ok. |
I don't have much time on weekdays due to work, but I'm still dedicated to this issue. In fact, I have already completed the logical implementation of the functionality, but testing has not been done yet. I will be able to finish it this week :) |
What type of enhancement is this?
User experience, API
What does the enhancement do?
We have to invalidate other frontend's compiled python script cache when the script is updated in cluster mode.
We need an event broadcast mechanism to do it.
Implementation challenges
No response
The text was updated successfully, but these errors were encountered: