dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[enhancement] queueName should not be stored in the table t_ds_user, which can result in inconsistent data

Open oceanos opened this issue 6 years ago • 9 comments

Describe QueueName should not be stored in the table t_ds_user, which can result in inconsistent data. image

Reproduce

  1. Update queue's name
  2. Query Userlist
  3. The queue's old name is returned

Expected The new value should be returned

Version -[dev]

Improvement

  • QueueId should be stored.

oceanos avatar Mar 17 '20 03:03 oceanos

@xingchun-chen , please verify this problem

davidzollo avatar Mar 18 '20 03:03 davidzollo

The queue value of the userManage page has been updated, but the queue value of the t_ds_user table has not been updated   image image

Can anyone fix him! 

xingchun-chen avatar Mar 18 '20 04:03 xingchun-chen

+1

liwenhe1993 avatar Mar 18 '20 08:03 liwenhe1993

+1

glad to hear that you will fix ,haha

davidzollo avatar Mar 18 '20 08:03 davidzollo

@dailidong

+1

glad to hear that you will fix ,haha

When I prepare to solve this bug, I find that the queue value of the t_ds_user table has been updated.

1

2

3

4

liwenhe1993 avatar Mar 18 '20 14:03 liwenhe1993

current t_ds_user table queue field sotre the queue_name not the queue_value. In FetchTaskThread, user.queue store queue_name, but tenant.queue store queue_value, so the user.queue should convert queue_value.

tip: when create queue in ds, create queue api - guarantee that queue and queue_name are unique. if you change the queue_name in t_ds_queue, the queue field will be change related to user

Eights-Li avatar Mar 19 '20 03:03 Eights-Li

image image The reference should be uniform, this problem was inelegantly resolved on the branch dev.

oceanos avatar Mar 19 '20 12:03 oceanos

The current implementation is okay but just not elegant enough, maybe should enhancement

Eights-Li avatar Mar 20 '20 02:03 Eights-Li

In my opinion that queue_name should not be stored in the T_DS_USER table. queue_id should be stored instead

Lucaszlei avatar Apr 15 '21 08:04 Lucaszlei