Skip to content
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

[Bug]should not set clusterId for application from appParam when update job #4076

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

xieyi888
Copy link
Contributor

What changes were proposed in this pull request

Issue Number: close #4075

Brief change log

for org.apache.streampark.console.core.service.application.impl.ApplicationManageServiceImpl#update,

  1. should not set clusterId for application from appParam
  2. should set flinkClusterId for YARN_SESSION mode

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.
no

This change is already covered by existing tests, such as (please describe tests).
no

This change added tests and can be verified as follows:
Manually verified the change by testing locally

Does this pull request potentially affect one of the following parts

  • Dependencies (does it add or upgrade a dependency): (yes / no)

@xieyi888 xieyi888 changed the title fix update job clusterId is null [Bug]should not set clusterId for application from appParam when update job Sep 20, 2024
@@ -527,7 +527,6 @@ public boolean update(Application appParam) {
application.setDynamicProperties(appParam.getDynamicProperties());
application.setResolveOrder(appParam.getResolveOrder());
application.setExecutionMode(appParam.getExecutionMode());
application.setClusterId(appParam.getClusterId());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job.

Copy link

sonarcloud bot commented Sep 23, 2024

@wolfboys wolfboys merged commit 0b01e5a into apache:dev Sep 23, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] update running job, will set job clusterId to null, leading to Streampark cannot get status for the job
2 participants