mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 13:08:29 +00:00
fcdcce3bba
This commit consolidates several abstractions on the shard level in ordinary classes not managed by the shard level guice injector. Several classes have been collapsed into IndexShard and IndexShardGatewayService was cleaned up to be more lightweight and self-contained. It has also been moved into the index.shard package and it's operation is renamed from recovery from "gateway" to recovery from "store" or "shard_store". Closes #11847
45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
[[cluster-pending]]
|
|
== Pending cluster tasks
|
|
|
|
The pending cluster tasks API returns a list of any cluster-level changes
|
|
(e.g. create index, update mapping, allocate or fail shard) which have not yet
|
|
been executed.
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
$ curl -XGET 'http://localhost:9200/_cluster/pending_tasks'
|
|
--------------------------------------------------
|
|
|
|
Usually this will return an empty list as cluster-level changes are usually
|
|
fast. However if there are tasks queued up, the output will look something
|
|
like this:
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
{
|
|
"tasks": [
|
|
{
|
|
"insert_order": 101,
|
|
"priority": "URGENT",
|
|
"source": "create-index [foo_9], cause [api]",
|
|
"time_in_queue_millis": 86,
|
|
"time_in_queue": "86ms"
|
|
},
|
|
{
|
|
"insert_order": 46,
|
|
"priority": "HIGH",
|
|
"source": "shard-started ([foo_2][1], node[tMTocMvQQgGCkj7QDHl3OA], [P], s[INITIALIZING]), reason [after recovery from shard_store]",
|
|
"time_in_queue_millis": 842,
|
|
"time_in_queue": "842ms"
|
|
},
|
|
{
|
|
"insert_order": 45,
|
|
"priority": "HIGH",
|
|
"source": "shard-started ([foo_2][0], node[tMTocMvQQgGCkj7QDHl3OA], [P], s[INITIALIZING]), reason [after recovery from shard_store]",
|
|
"time_in_queue_millis": 858,
|
|
"time_in_queue": "858ms"
|
|
}
|
|
]
|
|
}
|
|
--------------------------------------------------
|