alibaba / alibaba/Sentinel

New operation becames override after dashboard restart in use dynamic datasource like nacos

Open
#2,434 0 comments 0 reactions 0 assignees View on GitHub
area/dashboard
Dominant language
Java
Stars
23.1k
Forks
8.1k
PR merge metrics
No merged PRs in 30d

Description

## Issue Description

Type: *bug report*

### Describe what happened (or what feature you want)

New operation becames override after dashboard restart in use dynamic datasource like nacos.

### Describe what you expected to happen

Add new rule, not override.

### How to reproduce it (as minimally and precisely as possible)

1. use nacos for datasource
2. add some flow rules
3. restart dashboard
4. add new rule

### Tell us your environment

sentinel-1.8.2

nacos-1.2.1

### Anything else we need to know?

After dashboard restart ids reset to 0, after query all rules because old rules has id, ids remain 0.

![屏幕截图 2021-10-30 214321](https://user-images.githubusercontent.com/4100065/139535250-99c000e5-14f7-4480-a4a4-e212712cb01e.png)

![屏幕截图 2021-10-30 214347](https://user-images.githubusercontent.com/4100065/139535255-80305243-e2e4-4ab0-93ce-c6572c7fcd3f.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with Sentinel 1.8.2 and Nacos 1.2.1 using the listed four-step flow, then inspect the dashboard's dynamic datasource integration and rule ID handling after restart. Done means adding a new flow rule preserves the existing rules instead of overriding one.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.