-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
[FLINK-37440] Fix the bug that parallelism.default do not always adopts 1 as the default value. #26277
base: master
Are you sure you want to change the base?
[FLINK-37440] Fix the bug that parallelism.default do not always adopts 1 as the default value. #26277
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<table class="configuration table table-bordered"> | ||
<thead> | ||
<tr> | ||
<th class="text-left" style="width: 20%">Key</th> | ||
<th class="text-left" style="width: 15%">Default</th> | ||
<th class="text-left" style="width: 10%">Type</th> | ||
<th class="text-left" style="width: 55%">Description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td><h5>sink.committer.retries</h5></td> | ||
<td style="word-wrap: break-word;">10</td> | ||
<td>Integer</td> | ||
<td>The number of retries a Flink application attempts for committable operations (such as transactions) on retriable errors, as specified by the sink connector, before Flink fails and potentially restarts.</td> | ||
</tr> | ||
</tbody> | ||
</table> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -495,7 +495,6 @@ public boolean isCompatibleWith(@Nonnull Configuration configuration) { | |
@Override | ||
public PipelineExecutor getExecutor(@Nonnull Configuration configuration) { | ||
return (pipeline, config, classLoader) -> { | ||
final int parallelism = config.get(CoreOptions.DEFAULT_PARALLELISM); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line is not used at all. |
||
final JobGraph jobGraph = streamGraph.getJobGraph(); | ||
// The job graphs from different cases are generated from the same stream | ||
// graph, resulting in the same job ID, which can lead to exceptions. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -470,7 +470,8 @@ public static String[] mergeListsToArray(List<String> base, List<String> append) | |
ConfigOptions.key("parallelism.default") | ||
.intType() | ||
.defaultValue(1) | ||
.withDescription("Default parallelism for jobs."); | ||
.withDescription( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From the above link, we could check why CI is failed: After updating the description, the document should be updated together via running There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for the reminder. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are we removing .defaultValue(1) , as from your above description - it is never used? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, It used in most scenes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 to keep the default value as it's using in some scenes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would add an existing option[1] example here, it's
I think it's similar with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it. |
||
"Default parallelism for jobs. There are two special cases. In the first case, when creating a LocalStreamEnvironment without specifying parallelism.default, the number of processors available to the Java virtual machine will be used. In the second case, when creating mini cluster without specifying parallelism.default, the total number of slots in mini cluster will be used."); | ||
|
||
// ------------------------------------------------------------------------ | ||
// file systems | ||
|
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.
nits:
I see we have copied:
"committable operations (such as transactions)" I do t think this reads well. An operation can take part in a transaction - but is not a transaction
Flink fails -> don't we mean the Flink application / job fails.
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.
This change is generated by
mvn package -Dgenerate-config-docs -pl flink-docs -am -nsu -DskipTests -Pskip-webui-build
. I don't know the reason yet.