-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expose Last Index Request Timestamp in Cat Indices API #18405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Expose Last Index Request Timestamp in Cat Indices API #18405
Conversation
4cffd55
to
3bfecce
Compare
❌ Gradle check result for 3bfecce: 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? |
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/admin/indices/stats/IndexStats.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/admin/indices/stats/ShardStats.java
Outdated
Show resolved
Hide resolved
server/src/internalClusterTest/java/org/opensearch/indices/stats/IndexStatsIT.java
Outdated
Show resolved
Hide resolved
server/src/internalClusterTest/java/org/opensearch/indices/stats/IndexStatsIT.java
Outdated
Show resolved
Hide resolved
❌ Gradle check result for 7678134: 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? |
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/admin/indices/stats/IndexStats.java
Outdated
Show resolved
Hide resolved
❌ Gradle check result for 5f0bca8: 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? |
❌ Gradle check result for 6b68e2a: 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? |
@andrross - Could you please kindly review once? |
server/src/main/java/org/opensearch/action/admin/indices/stats/ShardStats.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/admin/indices/stats/ShardStats.java
Outdated
Show resolved
Hide resolved
❌ Gradle check result for 6b68e2a: 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? |
218511e
to
a6c40f7
Compare
❌ Gradle check result for a6c40f7: 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? |
017298f
to
6a974cd
Compare
❌ Gradle check result for 6a974cd: 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? |
❌ Gradle check result for 8629442: 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? |
8629442
to
16e2d24
Compare
❌ Gradle check result for 16e2d24: 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? |
server/src/main/java/org/opensearch/index/shard/IndexingStats.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/shard/IndexingStats.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sriram Ganesh <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
897d357
to
ef4e1ba
Compare
❌ Gradle check result for ef4e1ba: 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? |
Signed-off-by: Sriram Ganesh <[email protected]>
❌ Gradle check result for 834a86f: 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? |
Signed-off-by: Sriram Ganesh <[email protected]>
❌ Gradle check result for 682e1c2: 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 enhances the _cat/indices API by adding two new columns to report the timestamp of the last index request processed for each index:
This mirrors the existing approach for creation.date and creation.date.string, providing both a machine-friendly and a human-friendly representation.
Details
GET _cat/indices?v&h=index,last_index_request_timestamp,last_index_request_timestamp.string
Manual Testing
Related Issues
Resolves #10766
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.