-
Notifications
You must be signed in to change notification settings - Fork 27
On Node removing remove related keys from QueryCache (#81) #270
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
On Node removing remove related keys from QueryCache (#81) #270
Conversation
Hello @SergeiPavlov, Can you reproduce this on current master? Can you open an issue for this with small [Test] method which shows the problem? This should be applicable to 6.0 and 7.0 too so it should be resolved in 6.0. As I understand this is not a regular case, personally I would expect nodes to be with same settings. If I'm right then I would offer a StorageNodeManager.Remove(string nodeID, bool clearQueryCache = false) method. |
When you offered a united cache for all nodes, I thought about having nodes which would store their portion of QueryCache so instead of one giant cache we would have a number of smaller caches. This would allow to release resources on node removal but in this case all re-added nodes would start working with cold query cache which is drawback. |
I hardly have to write DO tests. The case was detected in real app and fixed by this code. |
Well, I'm pretty sure that I understood the problem, but would be nice to have real example to exclude any misunderstanding, I'll try to reproduce it. How often does such scenario happen? Was I right about rareness of this case? |
I made some changes for this issue for 6.0 branch since it is affected too (PR #296), the changes contain test cases, you can take a look. After merge I'll merge it to 7.0 and then to master with required changes. |
The scenario is not typical. This is the steps:
due to using old schema name The error was not rare in such a scenario |
Let me put it this way.
|
|
@SergeiPavlov, the changes from 6.0 with StorageNodeManager.Remove(string nodeId, bool clearQueryCache = false) option were merged to 7.0 and then to master (with required changes for newer code). I can close this PR without merge, right? |
Yes. I'm cloning it |
Replaced by bb21e6f |
This bug appears in following scenareo:
Domain.StorageNodeManager.RemoveNode()