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

[Improvement-15701][flink_task] supported variables of flink tasks #15708

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

bajiaolong
Copy link
Contributor

@bajiaolong bajiaolong commented Mar 13, 2024

close #15701

  1. Exclude guava information from guava-retrying dependencies,Unable to download 'com.google.guava:guava-parent:pom:31.1.0.redhat-00001 'during packaging, this version of this library does not exist at all

  2. Delete TaskExecutionContext definedParams member variable in this class, which has not been set,and modify other calls with this reference to prepareParamsMap

  3. Modify the getProperties in the Abstract Yarn Task subclass to prepareParamsMap

Purpose of the pull request

does not take effect when flink uses parameter variables

Brief change log

  • 1.Exclude guava information from guava-retrying dependencies,Unable to download 'com.google.guava:guava-parent:pom:31.1.0.redhat-00001 'during packaging, this version of this library does not exist at all

    1. Delete TaskExecutionContext definedParams member variable in this class, which has not been set,and modify other calls with this reference to prepareParamsMap
    1. Modify the getProperties in the Abstract Yarn Task subclass to prepareParamsMap

Verify this pull request

This pull request is code cleanup without any test coverage.

@SbloodyS SbloodyS added first time contributor First-time contributor improvement make more easy to user or prompt friendly 3.3.0 labels Mar 14, 2024
@SbloodyS SbloodyS added this to the 3.3.0 milestone Mar 14, 2024
@@ -67,7 +68,7 @@ public void before() throws Exception {
// "\",\"type\":\"VARCHAR\",\"value\":\"127.0.0.1:8080\"}]");
Map<String, String> gloabParams =
Collections.singletonMap(PigeonTask.KEY_POOL_VAR_PIGEON_HOST, "127.0.0.1:8080");
Mockito.when(taskExecutionContext.getDefinedParams()).thenReturn(gloabParams);
Mockito.when(ParameterUtils.convert(taskExecutionContext.getPrepareParamsMap())).thenReturn(gloabParams);
Copy link
Contributor

Choose a reason for hiding this comment

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

please fix the CI error

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Modified Complete

@bajiaolong
Copy link
Contributor Author

@SbloodyS Can this milestone be put in 3.2.2? Although this is an optimization item, it is also a bug. I will deal with it quickly.

@bajiaolong bajiaolong requested a review from rickchengx March 14, 2024 03:03
@SbloodyS
Copy link
Member

@SbloodyS Can this milestone be put in 3.2.2? Although this is an optimization item, it is also a bug. I will deal with it quickly.

It's more like a feature instead of bug. Minor version updates do not include features.

@bajiaolong
Copy link
Contributor Author

@SbloodyS Can this milestone be put in 3.2.2? Although this is an optimization item, it is also a bug. I will deal with it quickly.

It's more like a feature instead of bug. Minor version updates do not include features.

received, I want to know when the next version will be released and what are the Law?

@codecov-commenter
Copy link

codecov-commenter commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 22.22222% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 39.11%. Comparing base (0419543) to head (2779828).

❗ Current head 2779828 differs from pull request most recent head 1fe4274. Consider uploading reports for the commit 1fe4274 to get more accurate results

Files Patch % Lines
.../dolphinscheduler/plugin/task/flink/FileUtils.java 0.00% 5 Missing ⚠️
...inscheduler/plugin/task/flink/FlinkStreamTask.java 0.00% 1 Missing ⚠️
.../dolphinscheduler/plugin/task/flink/FlinkTask.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev   #15708      +/-   ##
============================================
- Coverage     39.11%   39.11%   -0.01%     
+ Complexity     4887     4886       -1     
============================================
  Files          1326     1326              
  Lines         45206    45209       +3     
  Branches       4818     4818              
============================================
  Hits          17683    17683              
- Misses        25635    25637       +2     
- Partials       1888     1889       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SbloodyS
Copy link
Member

SbloodyS commented Mar 14, 2024

received, I want to know when the next version will be released and what are the Law?

There is currently no release plan for version 3.3.0. For version rules, you can take a look at https://dev.to/ndrohith/xyz-of-versioning-47op. @bajiaolong

@bajiaolong
Copy link
Contributor Author

received, I want to know when the next version will be released and what are the Law?

There is currently no release plan for version 3.3.0. For version rules, you can take a look at https://dev.to/ndrohith/xyz-of-versioning-47op. @bajiaolong

ths

* definedParams
* // todo: we need to rename definedParams, prepareParamsMap, paramsMap, this is confusing
*/
private Map<String, String> definedParams;
Copy link
Member

Choose a reason for hiding this comment

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

hi @bajiaolong definedParams Is this parameter only used for Flink type tasks?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hi @bajiaolong definedParams Is this parameter only used for Flink type tasks?

In addition to flink, there are also MapReduce and Pigeon tasks in use. But this parameter seems to have no effect, because I didn't see the task place setting it. The Pigeon task has test cases, so I revised them together.

Comment on lines 640 to 645
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
Copy link
Member

Choose a reason for hiding this comment

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

I'm not quite sure about the scope of this impact. cc @ruanwenjun

Copy link

sonarqubecloud bot commented Apr 3, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
20.0% Coverage on New Code (required ≥ 60%)

See analysis details on SonarCloud

Copy link

github-actions bot commented Aug 2, 2024

This pull request has been automatically marked as stale because it has not had recent activity for 120 days. It will be closed in 7 days if no further activity occurs.

@bajiaolong bajiaolong reopened this Aug 2, 2024
@bajiaolong bajiaolong requested a review from Gallardot as a code owner August 2, 2024 02:13
@github-actions github-actions bot removed the Stale label Aug 3, 2024
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.3.0 backend first time contributor First-time contributor improvement make more easy to user or prompt friendly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement][flink_task] supported variables of flink tasks
5 participants