feat: 3.2.0

1. 优化组缓存的过期问题
2. 优化sql
This commit is contained in:
byteblogs168 2024-03-31 13:40:57 +08:00
parent 9cf223278a
commit 2aeb43cfd2
2 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,6 @@
</foreach>
) tt
SET rt.expire_at = tt.expire_at, rt.context_path = tt.context_path,
rt.context_path = tt.context_path
WHERE rt.host_id = tt.host_id and rt.host_ip = tt.host_ip
</update>
<select id="countActivePod"

View File

@ -122,6 +122,8 @@ public class ServerRegister extends AbstractRegister {
for (final ServerNode node : serverNodes) {
// 刷新全量本地缓存
CacheRegisterTable.addOrUpdate(node);
// 刷新过期时间
CacheConsumerGroup.addOrUpdate(node.getGroupName(), node.getNamespaceId());
}
}
} catch (Exception e) {