apache / incubator-streampark

Make stream processing easier! Easy-to-use streaming application development framework and operation platform.
https://streampark.apache.org/
Apache License 2.0
3.91k stars 1.01k forks source link

[Bug] job cannot be displayed #2712

Closed xujiangfeng001 closed 1 year ago

xujiangfeng001 commented 1 year ago

Search before asking

Java Version

1.8

Scala Version

2.12.x

StreamPark Version

2.0.0

Flink Version

1.14.4

deploy mode

None

What happened

Background: Someone resigned from the company and the administrator deleted the streampark user. Impact: Tasks created by deleted users cannot be displayed in the application management interface.

Error Exception

nothing

Screenshots

No response

Are you willing to submit PR?

Code of Conduct

xujiangfeng001 commented 1 year ago

Hi maintainers, this issue was discovered during my use of streampark.For this situation, I have come up with the following solution:

  1. When deleting a user, determine whether the user has created a task, and if so, restrict the deletion of the user.
  2. Add the function of transferring the ownership of homework to designated users.

    I look forward to your valuable suggestions from the maintainers.

wolfboys commented 1 year ago

Thanks for your feedback. This is a bug and we need to discuss it. Currently, we need to address the following issues:

  1. Only super admin can delete users.
  2. Before deleting, we need to check if there are any jobs belongs to this user
  3. If any jobs belongs to this user, we need to transfer all jobs to another user before deleting it.
xujiangfeng001 commented 1 year ago

Thanks for your feedback. This is a bug and we need to discuss it. Currently, we need to address the following issues:

  1. Only super admin can delete users.
  2. Before deleting, we need to check if there are any jobs belongs to this user
  3. If any jobs belongs to this user, we need to transfer all jobs to another user before deleting it.

Hi @wolfboys ,thank you very much for your feedback. I will organize a meeting soon and invite developers to discuss this issue.

VampireAchao commented 1 year ago

please assign me

xujiangfeng001 commented 1 year ago

Hello everyone, after discussion, our solution for this issue is as follows: Requirement:

Detailed logic:

  1. The administrator cancels the user deletion function.
  2. When the user account is disabled, it cannot own resources (application and project ownership)
  3. Add resource transfer function to transfer disabled user resources to new users