Skip to content

Conversation

huwh
Copy link
Contributor

@huwh huwh commented Oct 10, 2025

What is the purpose of the change

SlotReport should only report the current slot usage, while numberSlots is an attribute of the TaskManager and should not be included in the SlotReport.

Brief change log

  • Pass numberSlots via WorkerRegistration instead of SlotReport

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)
  • The S3 file system connector: (no)

Documentation

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

…d of SlotReport

SlotReport should only report the current slot usage, while numberSlots is
an attribute of the TaskManager and should not be included in the SlotReport.
@flinkbot
Copy link
Collaborator

flinkbot commented Oct 10, 2025

CI report:

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

@davidradl
Copy link
Contributor

@huwh I am reading the Jira and see the issue was SlotReport of the registered taskmanager did not meet expectations.
I am wondering where it gets the expectations from in the code so I can understand how this change fixes it.

I see the tests add an extra parameter taskExecutorRegistration.getNumberSlots() to ensure they compile. Is there a way to add a unit test that will test the reported scenario for which this fix is addressing.

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