Add current_application_duration_ms to cluster state download stats in node stats API#20922
Add current_application_duration_ms to cluster state download stats in node stats API#20922Ayushiarya246 wants to merge 1 commit intoopensearch-project:mainfrom
Conversation
PR Reviewer Guide 🔍(Review updated until commit ec210dc)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to ec210dc Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 0e968dc
Suggestions up to commit 3c881d2
Suggestions up to commit f081389
Suggestions up to commit dd9e6d6
Suggestions up to commit 4d82611
|
|
Persistent review updated to latest commit 18c1649 |
|
❌ Gradle check result for 18c1649: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit 4868dfc |
|
❌ Gradle check result for 4868dfc: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit 4d82611 |
|
❌ Gradle check result for 4d82611: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit dd9e6d6 |
|
❌ Gradle check result for dd9e6d6: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit f081389 |
|
❌ Gradle check result for f081389: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit 3c881d2 |
|
❌ Gradle check result for 3c881d2: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit 0e968dc |
|
❌ Gradle check result for 0e968dc: null Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
| stats.add(remoteClusterStateService.getFullDownloadStats()); | ||
| stats.add(remoteClusterStateService.getDiffDownloadStats()); | ||
| long durationMs = clusterApplier.getCurrentApplicationDurationMs(); | ||
| PersistedStateStats fullDownloadStats = remoteClusterStateService.getFullDownloadStats(); |
There was a problem hiding this comment.
Can these stats be directly created inside the remote Cluster state Service like the other stats?
…n node stats API; add UT and IT for test coverage Signed-off-by: Ayushi Arya <ayuaryak@amazon.com>
|
Persistent review updated to latest commit ec210dc |
|
❌ Gradle check result for ec210dc: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Description
This PR adds a new metric current_application_duration_ms to the cluster state download stats exposed via the Node Stats API (_nodes/stats/discovery).
Related Issues
Resolves #20527
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.