-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
sentinel 1.8.6 持久化数据到nacos配置中心,修改规则刷新页面数据有延迟 #3372
Comments
数据保存完之后,又刷新获取,nacos数据有延迟的,可以修改成优先从内存获取。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
sentinel 1.8.6 数据持久化nacos,dashboard页面刷新还是修改之前的数据,再次刷新后正常
Type: bug report
Describe what happened
数据保存nacos后数据不实时刷新
Describe what you expected to happen
dashboard修改规则,刷新页面后实时更新修改后的内容
How to reproduce it (as minimally and precisely as possible)
实现DynamicRulePublisher<List>后重写: public void publish(String app, T rules) throws Exception {
AssertUtil.notEmpty(app, "app name cannot be empty");
if (rules == null) {
return;
}
}
FlowController 代码:
public Result<List> apiQueryMachineRules(@RequestParam String app) {
}
public Result apiUpdateFlowRule(@PathVariable("id") Long id,
@requestbody FlowRuleEntity entity) {
if (id == null || id <= 0) {
return Result.ofFail(-1, "Invalid id");
}
FlowRuleEntity oldEntity = repository.findById(id);
if (oldEntity == null) {
return Result.ofFail(-1, "id " + id + " does not exist");
}
if (entity == null) {
return Result.ofFail(-1, "invalid body");
}
}
页面操作修改刷新页面数据还是修改前的,强刷页面后正常显示
The text was updated successfully, but these errors were encountered: