You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by GitBox <gi...@apache.org> on 2022/09/11 07:20:08 UTC
[GitHub] [incubator-streampark] 1996fanrui opened a new pull request, #1572: [Bug] Fix the bug about admin is missed when application is running
1996fanrui opened a new pull request, #1572:
URL: https://github.com/apache/incubator-streampark/pull/1572
### What problem does this PR solve?
Issue Number: close #1571
Problem Summary:
Fix the bug about admin is missed when application is running, and you can get detailed bug in #1571
### What is changed and how it works?
The root cause of this bug:
#### Why are other jobs normal and running job can show the admin?
`ApplicationMapper.page` will join userName and nickName from t_user table, so other jobs are normal.
Running job will return Application from `FlinkTrackingTask.TRACKING_MAP`.
#### Why does the `FlinkTrackingTask.TRACKING_MAP` miss the userName?
1. Get app by `getById` within `ApplicationServiceImpl#start`, it just include the fields within `t_flink_app` table.
2. `ApplicationServiceImpl#start -> FlinkTrackingTask.addTracking(application);` add this app to `FlinkTrackingTask.TRACKING_MAP`.
So the `FlinkTrackingTask.TRACKING_MAP` miss the userName for all apps.
#### Solution1
The `ApplicationMapper.page` get app from `FlinkTrackingTask.TRACKING_MAP`, it should `setNickName and setUserName`.
#### Solution2
`ApplicationServiceImpl#start` shouldn't call `getById` to get Application. it should join some fields from other tables.
#### Discussion
Currently, I choose solution1, it is easier than solution2, and don't need extra join.
But I have some concerns:
1. I don't know whether other code also getApplication from `FlinkTrackingTask.TRACKING_MAP`. If yes, solution2 is more strong. I haven't seen other callers yet.
2. For solution1, I just `setNickName and setUserName`, should other fields be set as well?
Please correct me, if there are any mistakes.
Feel free to ping committers for the review!
## Contribution Checklist
- Make sure that the pull request corresponds to a [GITHUB issue](https://github.com/apache/streampark/issues).
- Name the pull request in the form "[Feature] [component] Title of the pull request", where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
- Minor fixes should be named following this pattern: `[hotfix] [docs] Fix typo in README.md doc`.
## Purpose of this pull request
Fix the bug about admin is missed when application is running
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-streampark] wolfboys merged pull request #1572: [Bug] Fix the bug about the owner is missed when application is running
Posted by GitBox <gi...@apache.org>.
wolfboys merged PR #1572:
URL: https://github.com/apache/incubator-streampark/pull/1572
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org