Skip to content

[hotfix] Rename loadJarFile to checkJarFile #26427

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 9, 2025

What is the purpose of the change

This PR aims to rename loadJarFile to checkJarFile.
The reason is loadJarFile just checking if the jar file is valid and is not related to load.

Brief change log

Rename loadJarFile to checkJarFile.

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 9, 2025

CI report:

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

@@ -440,7 +440,7 @@ private static String getEntryPointClassNameFromJar(URL jarFile)
}

@Nullable
private static URL loadJarFile(File jar) throws ProgramInvocationException {
private static URL checkJarFile(File jar) throws ProgramInvocationException {
Copy link
Contributor

Choose a reason for hiding this comment

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

I see on line 453 an existing call to checkJarFile(jarFileUrl); So the method is now recursive, when before the fix it was not . Am I missing something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I know it. I think the overriding method is not a problem.

@beliefer
Copy link
Contributor Author

@flinkbot run azure

@beliefer beliefer force-pushed the rename-loadJarFile branch from 3ae7123 to 69eb1a0 Compare April 10, 2025 10:30
@beliefer
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants