Skip to content

[FLINK-39755][tests] RuntimeOpenRestAPIDocsCompletenessITCase fails for jdk 21+#28253

Merged
snuyanzin merged 1 commit into
apache:masterfrom
snuyanzin:flink39755
May 26, 2026
Merged

[FLINK-39755][tests] RuntimeOpenRestAPIDocsCompletenessITCase fails for jdk 21+#28253
snuyanzin merged 1 commit into
apache:masterfrom
snuyanzin:flink39755

Conversation

@snuyanzin
Copy link
Copy Markdown
Contributor

@snuyanzin snuyanzin commented May 25, 2026

What is the purpose of the change

The reason is that starting java 21 there is SequenceCollection which brings last and first methods
On the other side ConfigurationInfo and JobRescalesHistory extend ArrayList
as a result in case of java 21 or java 25 it fails as (in case of java 11, 17 it is green)

May 25 21:18:01 21:18:01.920 [ERROR]   RuntimeOpenRestAPIDocsCompletenessITCase.testRuntimeRestApiDocsUpToDate:73 [Committed `rest_v1_dispatcher.yml` file is out of date. Please regenerate docs under `flink-docs` module based on `README.md`.] 
May 25 21:18:01 Path:
May 25 21:18:01   /__w/1/s/docs/static/generated/rest_v1_dispatcher.yml
May 25 21:18:01 and path:
May 25 21:18:01   /tmp/junit-2445394591213322851/rest_v1_dispatcher.yml
May 25 21:18:01 do not have same content:
May 25 21:18:01 
May 25 21:18:01 Missing content at line 90:
May 25 21:18:01   ["                properties:",
May 25 21:18:01    "                  first:",
May 25 21:18:01    "                    $ref: "#/components/schemas/ConfigurationInfoEntry"",
May 25 21:18:01    "                  last:",
May 25 21:18:01    "                    $ref: "#/components/schemas/ConfigurationInfoEntry""]
May 25 21:18:01 
May 25 21:18:01 Missing content at line 409:
May 25 21:18:01   ["                properties:",
May 25 21:18:01    "                  first:",
May 25 21:18:01    "                    $ref: "#/components/schemas/ConfigurationInfoEntry"",
May 25 21:18:01    "                  last:",
May 25 21:18:01    "                    $ref: "#/components/schemas/ConfigurationInfoEntry""]
May 25 21:18:01 

Brief change log

ConfigurationInfo and JobRescalesHistory

Verifying this change

java 21

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)
  • If yes, how is the feature documented? (not applicable )

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

@snuyanzin
Copy link
Copy Markdown
Contributor Author

@RocMarshal would be great if you take a look since you were the one who contributed to JobRescalesHistory

@snuyanzin snuyanzin requested a review from RocMarshal May 25, 2026 22:04
@flinkbot
Copy link
Copy Markdown
Collaborator

flinkbot commented May 25, 2026

CI report:

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

Copy link
Copy Markdown
Contributor

@RocMarshal RocMarshal left a comment

Choose a reason for hiding this comment

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

Thanks @snuyanzin for the catch and fix!

LGTM +1

@snuyanzin
Copy link
Copy Markdown
Contributor Author

thanks for taking a look

@snuyanzin snuyanzin merged commit 0b1da64 into apache:master May 26, 2026
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