haohao0103 opened a new issue, #2576: URL: https://github.com/apache/incubator-hugegraph/issues/2576
### Bug Type (问题类型) other exception / error (其他异常报错) ### Before submit - [X] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 [FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents) ### Environment (环境信息) - Server Version: 1.5.0 (Apache Release Version) - Backend: RocksDB 5 nodes, SSD Fix the cache invalidation issue of partition->leader shard in the clientcache. Set the initialization flag to false after resetting the cache, allowing reinitialization; If the cache misses, the cache is updated with the results of the query from the PD. The main reason for the problem is that when the leader changes in the PD cluster, the cache is cleared, but the correct metadata is not put into the cache after the query, and the cache flag remains true and the initialization operation is not executed again ### Expected & Actual behavior (期望与实际表现) `---ts=2024-04-29 14:07:03;thread_name=grizzly-http-server-25;id=86;is_daemon=false;priority=5;TCCL=jdk.internal.loader.ClassLoaders$AppClassLoader@9e89d68 `---[2.22586ms] org.apache.hugegraph.store.client.NodeTxExecutor:doAction() +---[0.02% 4.44E-4ms ] org.apache.hugegraph.store.term.HgTriple:getZ() #238 +---[0.02% 4.64E-4ms ] org.apache.hugegraph.store.term.HgTriple:getX() #239 +---[0.03% min=2.99E-4ms,max=3.36E-4ms,total=6.35E-4ms,count=2] org.apache.hugegraph.store.term.HgTriple:getY() #239 `---[99.69% 2.218854ms ] org.apache.hugegraph.store.client.NodeTxSessionProxy:doAction() #239 ### Vertex/Edge example (问题点 / 边数据举例) _No response_ ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构) _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
