Purushottam Sinha created FLINK-41308:
-----------------------------------------

             Summary: Web dashboard: TaskManager Metrics "Netty Shuffle 
Buffers" Available/Total are always blank
                 Key: FLINK-41308
                 URL: https://issues.apache.org/jira/browse/FLINK-41308
             Project: Flink
          Issue Type: Bug
          Components: Runtime / Web Frontend
    Affects Versions: 2.0.0, 2.2.0, 2.3.0, 2.1.0
            Reporter: Purushottam Sinha


*Problem*
Since 2.0.0, the Available and Total cells in the TaskManager Metrics page's 
Netty Shuffle Buffers table are empty. Users can't see shuffle buffer counts in 
the UI.

*Evidence*
* {{task-manager-metrics.component.html:258,262}} reads 
{{metrics.memorySegmentsAvailable}} / {{memorySegmentsTotal}}. FLINK-36355 
removed both fields from {{TaskManagerMetricsInfo}}. REST now returns 
{{nettyShuffleMemorySegmentsAvailable}} / {{Used}} / {{Total}} instead.
* On master with a standalone cluster, {{GET /taskmanagers/<id>}} returns 
4096/4096 while both UI cells are blank.
* The tests didn't catch this because the spec mock still uses the old field 
names. FLINK-36355 removed the old fields from {{interfaces/task-manager.ts}} 
but didn't add the new ones.

*Proposed fix*
* Read {{nettyShuffleMemorySegmentsAvailable}} / 
{{nettyShuffleMemorySegmentsTotal}} in the template.
* Add both fields to the {{Metrics}} interface in 
{{interfaces/task-manager.ts}}.
* Update the spec mock and add a test that checks the rendered counts.

*Acceptance*
* The TM Metrics page shows the same Available/Total values as {{GET 
/taskmanagers/<id>}}.
* The new spec test fails without the template fix and passes with it.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to