[BUG] Get tasks action does not refresh resource stats #8655
Labels
bug
Something isn't working
distributed framework
Search
Search query, autocomplete ...etc
v2.13.0
Issues and PRs related to version 2.13.0
v3.0.0
Issues and PRs related to version 3.0.0
Describe the bug
Task resource usage stats are currently refreshed in 2 places:
OpenSearch/server/src/main/java/org/opensearch/action/admin/cluster/node/tasks/list/TransportListTasksAction.java
Line 119 in 7dddb31
SearchBackpressureService
OpenSearch/server/src/main/java/org/opensearch/search/backpressure/SearchBackpressureService.java
Lines 175 to 176 in 7dddb31
However, this is not done in the get tasks action: https://github.com/opensearch-project/OpenSearch/blob/main/server/src/main/java/org/opensearch/action/admin/cluster/node/tasks/get/TransportGetTaskAction.java
This means that if search backpressure is disabled, a user will not see any updates to the resource stats when only calling the get tasks API.
Expected behavior
Get tasks API should also update task resource usage stats.
The text was updated successfully, but these errors were encountered: