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

Refactor the lifecycle control of flink application mode -dosubmit #2994

Merged
merged 22 commits into from
Sep 7, 2023
Merged

Refactor the lifecycle control of flink application mode -dosubmit #2994

merged 22 commits into from
Sep 7, 2023

Conversation

caicancai
Copy link
Member

@caicancai caicancai commented Aug 29, 2023

What changes were proposed in this pull request

Issue Number: close #xxx

Brief change log

Verifying this change

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

(or)

This change is already covered by existing tests, such as (please describe tests).
KubernetesNativeApplicationClient.doSubmit 适配到 FlinkOperator. deployApplicationJob;

(or)

This change added tests and can be verified as follows:

Does this pull request potentially affect one of the following parts

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

@github-actions github-actions bot added the FLINK label Aug 29, 2023
…f_Flink_application-mode_' into Refactor_the_lifecycle_control_of_Flink_application-mode_
@github-actions github-actions bot added the BUILD label Aug 29, 2023
@caicancai
Copy link
Member Author

cc @Al-assad

Copy link
Member

@Al-assad Al-assad left a comment

Choose a reason for hiding this comment

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

It looks like this part of the code doesn't actually call FlinkOperator.deployApplicationJob, which calls V2, and the actual runtime logic is still V1's job submission code

// clusterClient = clusterDescriptor
// .deployApplicationCluster(clusterSpecification, applicationConfig)
// .getClusterClient
FlinkK8sOperator.deployApplicationJob(submitRequest.id, spec)
Copy link
Member

Choose a reason for hiding this comment

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

FlinkK8sOperator.deployApplicationJob is an IO strucuture, need to invoke .runIO to run it actually.

Copy link
Member Author

Choose a reason for hiding this comment

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

@Al-assad This module calls deployApplicationJob api and reports an error

Copy link
Member Author

@caicancai caicancai Aug 30, 2023

Choose a reason for hiding this comment

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

@Al-assad At present, it seems that the client module will throw an exception when calling the FlinkK8sOperator.deployApplication Job(submit Request.id, spec) API.

@@ -62,14 +67,16 @@ object KubernetesNativeApplicationClient extends KubernetesNativeClientTrait {
var clusterDescriptor: KubernetesClusterDescriptor = null
Copy link
Member

Choose a reason for hiding this comment

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

remove this code

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Copy link
Member Author

Choose a reason for hiding this comment

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

@Al-assad Hello, thank you for your review, I think this piece is deleted again when the code is finished

@caicancai
Copy link
Member Author

cc @wolfboys

@caicancai
Copy link
Member Author

cc @Al-assad

@caicancai
Copy link
Member Author

cc @Al-assad

@caicancai
Copy link
Member Author

@Al-assad The response returns some null values ​​for the time being, and it will be improved after discussing with people in the community

@caicancai
Copy link
Member Author

cc @Al-assad

Copy link
Member

@Al-assad Al-assad left a comment

Choose a reason for hiding this comment

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

It seems that there are still some issues, I will submit a correction PR later.

@Al-assad Al-assad merged commit 8ff30e3 into apache:dev Sep 7, 2023
4 of 6 checks passed
@caicancai caicancai deleted the Refactor_the_lifecycle_control_of_Flink_application-mode_ branch September 11, 2023 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants