Skip to content

Conversation

@RocMarshal
Copy link
Contributor

@RocMarshal RocMarshal commented Dec 1, 2025

What is the purpose of the change

  • [FLINK-38718][runtime] Display the number of tasks at slots level on the detailed TaskManager page.
  • [FLINK-38719][runtime] Display the number of tasks on the TaskManagers page.

Brief change log

  • [FLINK-38718][runtime] Display the number of tasks at slots level on the detailed TaskManager page.
  • [FLINK-38719][runtime] Display the number of tasks on the TaskManagers page.

Verifying this change

This change added tests and can be verified as follows:

  • org.apache.flink.runtime.resourcemanager.ResourceManagerTaskExecutorTest#testRequestTaskManagerDetailsInfo

  • integration test result:

cace31675f8afc5a2902e10db2ee4147 d0ccc5646f9d635453cc3fb4e5cebfa0 970b33d0baaf6ab121d3254f75327f93

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

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

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@RocMarshal
Copy link
Contributor Author

RocMarshal commented Dec 1, 2025

Hi, @ferenc-csaky Could you help take a look ? Thank you !

@flinkbot
Copy link
Collaborator

flinkbot commented Dec 1, 2025

CI report:

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

@RocMarshal RocMarshal force-pushed the FLINK-38717 branch 2 times, most recently from 7e0f3b2 to 05a7878 Compare December 2, 2025 04:15
@RocMarshal RocMarshal closed this Dec 3, 2025
@RocMarshal RocMarshal reopened this Dec 3, 2025
Copy link
Contributor

@ferenc-csaky ferenc-csaky left a comment

Choose a reason for hiding this comment

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

I think assignedTasks instead of numberOfTasks would cover better what this field is intended for.

I do not see why do we need to use LoadingWeight for this. It feels forced to me, and I maybe I miss something, but I also feel it complicates this change for nothing.

<th [nzSortFn]="sortHeartBeatFn" [nzWidth]="'160px'">Last Heartbeat</th>
<th [nzSortFn]="sortSlotsNumberFn" [nzWidth]="'90px'">All Slots</th>
<th [nzSortFn]="sortFreeSlotsFn" [nzWidth]="'100px'">Free Slots</th>
<th [nzSortFn]="sortTasksFn" [nzWidth]="'100px'">Tasks</th>
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd probably use Assigned Tasks as the table header too. Same for the other components.

Copy link
Contributor Author

@RocMarshal RocMarshal Dec 4, 2025

Choose a reason for hiding this comment

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

Thx! The suggested change would be done after a stable conclusion about the discussion.

@RocMarshal
Copy link
Contributor Author

RocMarshal commented Dec 4, 2025

I think assignedTasks instead of numberOfTasks would cover better what this field is intended for.

I do not see why do we need to use LoadingWeight for this. It feels forced to me, and I maybe I miss something, but I also feel it complicates this change for nothing.

Thank you @ferenc-csaky for the comments.

Pls let me have a try on clarifying it:

Initially, I did not use LoadingWeight when extending the SlotReport, and only included the numberOfTasks.

Why I switched to LoadingWeight:

  • It satisfies the current functional requirements, too.
  • One of the motivations behind introducing LoadingWeight is to provide a way to represent and potentially extend more slot-level load information.What I mean is: if we use LoadingWeight as the vehicle for reporting SlotReport data, then in the future, if we want to expose additional load-related information, we won’t need to change the load-related parameter passing chain anymore. The ResourceManager could simply retrieve the desired load metrics directly from LoadingWeight. In short, using an interface-driven approach gives us openness for future extensions. That said, I admit that, relative to the current functionality, this coding approach does violate the principle of minimal changes.

Both approaches are acceptable to me. If you believe that, for the current change, adhering to the minimal change principle should take priority, I'd be happy to revise the implementation accordingly.

@RocMarshal
Copy link
Contributor Author

Hi @ferenc-csaky May I know your next suggestions or opinion if you had the free time ?
Thank you very much !

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