Skip to content

Add a snapshot test module to delay shard aggregations (#62082)#62359

Merged
jimczi merged 1 commit intoelastic:7.xfrom
jimczi:test-modules/delayed-aggs-backport
Sep 15, 2020
Merged

Add a snapshot test module to delay shard aggregations (#62082)#62359
jimczi merged 1 commit intoelastic:7.xfrom
jimczi:test-modules/delayed-aggs-backport

Conversation

@jimczi
Copy link
Copy Markdown
Contributor

@jimczi jimczi commented Sep 15, 2020

Backport of #62082

This change adds an aggregation that can be used to delay the
query phase execution on shards with a configurable time:

{
    "aggs": {
        "delay": {
            "shard_delay": {
                "value": "30s"
            },
            "aggs": {
                "host": {
                    "terms": {
                        "field": "hostname"
                    }
                }
            }
        }
    }
}

This test module is built on top of elastic#61954 so the aggregation will be available only within
snapshots since this module is not meant to be used in production.

Closes elastic#54159
@jimczi jimczi merged commit 4eea602 into elastic:7.x Sep 15, 2020
@jimczi jimczi deleted the test-modules/delayed-aggs-backport branch September 15, 2020 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant