Skip to content

[FLINK-37698] Rename fromSchedulerNg to fromWithinExecutionGraph #26482

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

beliefer
Copy link
Contributor

@beliefer beliefer commented Apr 18, 2025

What is the purpose of the change

This PR aims to rename fromSchedulerNg to fromWithinExecutionGraph.
The Java doc tells me the meaning of fromSchedulerNg, please refer

* @param fromSchedulerNg Indicating whether the failure is from the SchedulerNg. It should be

But I found the behavior of the caller of processFail is inconsistent with the comments for fromSchedulerNg.
Please see:

As the Java doc said, we should pass false in DefaultExecutionGraph.
So I rename fromSchedulerNg to fromWithinExecutionGraph and make the behavior is consistent with the Java doc.

Brief change log

Rename fromSchedulerNg to fromWithinExecutionGraph.

Verifying this change

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

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
  • The serializers: (no)
  • The runtime per-record code paths (performance sensitive): (no)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
  • The S3 file system connector: (no)

Documentation

  • Does this pull request introduce a new feature? (no)

@flinkbot
Copy link
Collaborator

flinkbot commented Apr 18, 2025

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@beliefer
Copy link
Contributor Author

@flinkbot run azure

@beliefer
Copy link
Contributor Author

@zhuzhurk
Copy link
Contributor

The fromSchedulerNg parameter was introduced to flag whether failure handling originated from the Flink scheduler itself. This flag eliminates redundant failure notifications to the scheduler (e.g., via notifySchedulerNgAboutInternalTaskFailure(...)), as the scheduler already initiates the process. Therefore, retaining the current parameter name is logically consistent.

@beliefer
Copy link
Contributor Author

The fromSchedulerNg parameter was introduced to flag whether failure handling originated from the Flink scheduler itself. This flag eliminates redundant failure notifications to the scheduler (e.g., via notifySchedulerNgAboutInternalTaskFailure(...)), as the scheduler already initiates the process. Therefore, retaining the current parameter name is logically consistent.

I know the original meaning. Could you take a look at the description?

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.

3 participants