nacos icon indicating copy to clipboard operation
nacos copied to clipboard

使用内置数据库的集群模式启动3节点Nacos,批量删除配置,会导致ConfigCacheService下的CACHE不更新

Open ZrBac opened this issue 9 months ago • 3 comments

Describe the bug A clear and concise description of what the bug is. 使用内置数据库的集群模式启动3节点Nacos,批量删除配置,会导致ConfigCacheService下的CACHE不更新,只删除了底层数据,不会发布事件处理缓存 image

Expected behavior A clear and concise description of what you expected to happen.

Actually behavior A clear and concise description of what you actually to happen.

How to Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See errors

Desktop (please complete the following information):

  • OS: [e.g. Centos]
  • Version [e.g. nacos-server 1.3.1, nacos-client 1.3.1]
  • Module [e.g. naming/config]
  • SDK [e.g. original, spring-cloud-alibaba-nacos, dubbo]

Additional context Add any other context about the problem here.

ZrBac avatar May 07 '24 06:05 ZrBac

这个集群 + raft 的配置中心模式,为了提升整体的 tps,不需要走水平发布通知了,因为 raft 本身的舒服同步就包括了这一步走,因此这个 ConfigCacheService 本身的逻辑转移到了 raft 状态机当中去了

chuntaojun avatar May 10 '24 06:05 chuntaojun

这个集群 + raft 的配置中心模式,为了提升整体的 tps,不需要走水平发布通知了,因为 raft 本身的舒服同步就包括了这一步走,因此这个 ConfigCacheService 本身的逻辑转移到了 raft 状态机当中去了

实验过,k8s部署三个pod的集群,使用内置数据库,通过批量删除接口删除配置,服务还能通过缓存读到已删除的配置信息,但是通过接口已经查不到了,注释掉判断条件再试就没问题了

ZrBac avatar May 10 '24 06:05 ZrBac

EmbeddedConfigDumpApplyHook 这里针对批量删除的场景有bug, image

@ZrBac 你本地测试下,把这个问题修复掉是不是就好了,如果可以的话,提交个PR

shiyiyue1102 avatar May 10 '24 09:05 shiyiyue1102

EmbeddedConfigDumpApplyHook 这里针对批量删除的场景有bug, image

@ZrBac 你本地测试下,把这个问题修复掉是不是就好了,如果可以的话,提交个PR

已验证,确实为该bug导致

ZrBac avatar May 11 '24 01:05 ZrBac

EmbeddedConfigDumpApplyHook 这里针对批量删除的场景有bug, image @ZrBac 你本地测试下,把这个问题修复掉是不是就好了,如果可以的话,提交个PR

已验证,确实为该bug导致

ok,你是否可以提交一个pr修复下呢

shiyiyue1102 avatar May 11 '24 03:05 shiyiyue1102

EmbeddedConfigDumpApplyHook 这里针对批量删除的场景有bug, image @ZrBac 你本地测试下,把这个问题修复掉是不是就好了,如果可以的话,提交个PR

已验证,确实为该bug导致

ok,你是否可以提交一个pr修复下呢

已经提交了

ZrBac avatar May 11 '24 03:05 ZrBac

EmbeddedConfigDumpApplyHook 这里针对批量删除的场景有bug, image @ZrBac 你本地测试下,把这个问题修复掉是不是就好了,如果可以的话,提交个PR

已验证,确实为该bug导致

ok,你是否可以提交一个pr修复下呢

已经提交了

好的,那这个issue就关了

shiyiyue1102 avatar May 11 '24 05:05 shiyiyue1102