-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[Fix-15937] Add tenantCode propagation to DynamicCommandUtils.createCommand #15956
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #15956 +/- ##
=========================================
Coverage 39.86% 39.86%
- Complexity 5060 5064 +4
=========================================
Files 1369 1369
Lines 45634 45635 +1
Branches 4869 4868 -1
=========================================
+ Hits 18192 18193 +1
Misses 25544 25544
Partials 1898 1898 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Fix DynamicCommandUtils.createCommand method by adding command.setTenantCode(processInstance.getTenantCode()) line. This ensures that the tenantCode is correctly propagated to all subtasks in DolphinScheduler's Dynamic tasks, addressing an issue where the tenantCode wasn't being passed to subtasks, resulting in null tenantCodes for subtask commands. Closes: apache#15937
|
Fix DynamicCommandUtils.createCommand method by adding command.setTenantCode(processInstance.getTenantCode()) line. This ensures that the tenantCode is correctly propagated to all subtasks in DolphinScheduler's Dynamic tasks, addressing an issue where the tenantCode wasn't being passed to subtasks, resulting in null tenantCodes for subtask commands. Closes: #15937
Purpose of the pull request
This pull request addresses the issue described in #15937 by ensuring proper propagation of the tenantCode to all subtasks in DolphinScheduler's Dynamic tasks.
Brief change log
Verify this pull request
This pull request is already covered by existing tests.