OpenSearch/modules
Igor Motov c75ac319a6
Add ability to associate an ID with tasks (#27764)
Adds support for capturing the X-Opaque-Id header from a REST request and storing it's value in the tasks that this request started. It works for all user-initiated tasks (not only search).

Closes #23250

Usage:
```
$ curl -H "X-Opaque-Id: imotov" -H "foo:bar" "localhost:9200/_tasks?pretty&group_by=parents"
{
  "tasks" : {
    "7qrTVbiDQKiZfubUP7DPkg:6998" : {
      "node" : "7qrTVbiDQKiZfubUP7DPkg",
      "id" : 6998,
      "type" : "transport",
      "action" : "cluster:monitor/tasks/lists",
      "start_time_in_millis" : 1513029940042,
      "running_time_in_nanos" : 266794,
      "cancellable" : false,
      "headers" : {
        "X-Opaque-Id" : "imotov"
      },
      "children" : [
        {
          "node" : "V-PuCjPhRp2ryuEsNw6V1g",
          "id" : 6088,
          "type" : "netty",
          "action" : "cluster:monitor/tasks/lists[n]",
          "start_time_in_millis" : 1513029940043,
          "running_time_in_nanos" : 67785,
          "cancellable" : false,
          "parent_task_id" : "7qrTVbiDQKiZfubUP7DPkg:6998",
          "headers" : {
            "X-Opaque-Id" : "imotov"
          }
        },
        {
          "node" : "7qrTVbiDQKiZfubUP7DPkg",
          "id" : 6999,
          "type" : "direct",
          "action" : "cluster:monitor/tasks/lists[n]",
          "start_time_in_millis" : 1513029940043,
          "running_time_in_nanos" : 98754,
          "cancellable" : false,
          "parent_task_id" : "7qrTVbiDQKiZfubUP7DPkg:6998",
          "headers" : {
            "X-Opaque-Id" : "imotov"
          }
        }
      ]
    }
  }
}
```
2018-01-12 15:34:17 -05:00
..
aggs-matrix-stats Implement byte array reusage in `NioTransport` (#27696) 2017-12-08 10:39:30 -07:00
analysis-common Allow TrimFilter to be used in custom normalizers (#27758) 2017-12-18 14:27:03 +00:00
ingest-common Enable convert processor to support Long and Double. (#27957) 2018-01-03 11:27:55 +01:00
lang-expression Upgrade to Lucene 7.2.0. (#27910) 2017-12-20 14:17:40 +01:00
lang-mustache Added msearch api to high level client 2017-12-05 10:17:47 +01:00
lang-painless Painless: Add public member read/write access test. (#28156) 2018-01-09 15:06:51 -08:00
mapper-extras Upgrade beats templates that we use for bwc testing. (#27929) 2017-12-21 08:50:14 +01:00
parent-join Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
percolator test: ensure we endup with a single segment 2018-01-10 15:14:26 +01:00
rank-eval [Test] Fix scores for dcg in RankEvalRequestIT and RankEvalYamlIT 2018-01-03 17:24:10 +01:00
reindex Add ability to associate an ID with tasks (#27764) 2018-01-12 15:34:17 -05:00
repository-url Remove the single argument Environment constructor (#27235) 2017-11-04 13:25:09 +00:00
transport-netty4 Add ability to associate an ID with tasks (#27764) 2018-01-12 15:34:17 -05:00
tribe Remove Settings#getAsMap() (#26845) 2017-10-04 01:21:38 -06:00
build.gradle Build: Change `gradle run` to use zip distribution (#21001) 2016-10-18 11:48:58 -07:00