🔎 Open source distributed and RESTful search engine.
Go to file
Sorabh e44e890d88
Part 1: Support for cancel_after_timeinterval parameter in search and msearch request (#986) (#1085)
* Part 1: Support for cancel_after_timeinterval parameter in search and msearch request

This commit introduces the new request level parameter to configure the timeout interval after which
a search request will be cancelled. For msearch request the parameter is supported both at parent
request and at sub child search requests. If it is provided at parent level and child search request
doesn't have it then the parent level value is set at such child request. The parent level msearch
is not used to cancel the parent request as it may be tricky to come up with correct value in cases
when child search request can have different runtimes

TEST: Added test for ser/de with new parameter

Signed-off-by: Sorabh Hamirwasia <sohami.apache@gmail.com>

* Part 2: Support for cancel_after_timeinterval parameter in search and msearch request

This commit adds the handling of the new request level parameter and schedule cancellation task. It
also adds a cluster setting to set a global cancellation timeout for search request which will be
used in absence of request level timeout.

TEST: Added new tests in SearchCancellationIT
Signed-off-by: Sorabh Hamirwasia <sohami.apache@gmail.com>

* Address Review feedback for Part 1

Signed-off-by: Sorabh Hamirwasia <sohami.apache@gmail.com>

* Address review feedback for Part 2

Signed-off-by: Sorabh Hamirwasia <sohami.apache@gmail.com>

* Update CancellableTask to remove the cancelOnTimeout boolean flag

Signed-off-by: Sorabh Hamirwasia <sohami.apache@gmail.com>

* Replace search.cancellation.timeout cluster setting with search.enforce_server.timeout.cancellation to control if cluster level cancel_after_time_interval should take precedence over request level cancel_after_time_interval value

Signed-off-by: Sorabh Hamirwasia <sohami.apache@gmail.com>

* Removing the search.enforce_server.timeout.cancellation cluster setting and just keeping search.cancel_after_time_interval setting with request level parameter taking the precedence.

Signed-off-by: Sorabh Hamirwasia <sohami.apache@gmail.com>

Co-authored-by: Sorabh Hamirwasia <hsorabh@amazon.com>

Co-authored-by: Sorabh Hamirwasia <hsorabh@amazon.com>
2021-08-12 13:52:28 -04:00
.ci Version bump for 1.1 release (#772) (#892) 2021-06-28 12:57:03 -05:00
.github Update issue template with multiple labels (#668) (#749) 2021-05-20 15:55:56 -07:00
.idea [Rename] Replace more instances of Elasticsearch with OpenSearch. (#432) 2021-03-21 20:56:34 -05:00
benchmarks Make allocation decisions at node level first for pending task optimi… (#534) (#739) 2021-05-20 14:02:18 -07:00
buildSrc Cleanup TESTING and DEVELOPER_GUIDE markdowns (#946) (#954) 2021-07-13 14:13:26 -05:00
client Rank feature - unknown field linear (#983) (#1025) 2021-07-30 15:17:47 -04:00
dev-tools Add script to perform signoff check between commits (#152) 2021-03-13 10:36:15 -06:00
distribution Replace Elasticsearch docs links in scripts (#994) (#1001) 2021-07-23 14:21:31 -07:00
gradle Rename the distribution used in test clusters. (#603) 2021-04-22 14:21:32 -07:00
libs Fix resource leak issues suggested by Amazon CodeGuru (#816) (#859) 2021-06-22 10:19:01 -07:00
licenses Remove the Elastic license file, all checks for this license and the license REST APIs. (#12) 2021-03-13 10:36:07 -06:00
modules Rank feature - unknown field linear (#983) (#1025) 2021-07-30 15:17:47 -04:00
plugins update external library 'pdfbox' version to 2.0.24 to reduce vulnerability (#883) (#886) 2021-06-25 16:04:28 -07:00
qa Cleanup TESTING and DEVELOPER_GUIDE markdowns (#946) (#954) 2021-07-13 14:13:26 -05:00
rest-api-spec [BUG] Fix cat.health test failures in pre 1.0.0 mixed cluster test (#928) (#935) 2021-07-02 17:55:58 -05:00
server Part 1: Support for cancel_after_timeinterval parameter in search and msearch request (#986) (#1085) 2021-08-12 13:52:28 -04:00
test Part 1: Support for cancel_after_timeinterval parameter in search and msearch request (#986) (#1085) 2021-08-12 13:52:28 -04:00
.dir-locals.el Go back to 140 column limit in .dir-locals.el 2017-04-14 08:50:53 -06:00
.editorconfig Remove default indent from .editorconfig (#49183) 2019-11-18 08:05:53 +00:00
.gitattributes Converted all .asciidoc to .md. (#658) 2021-05-06 20:12:49 +00:00
.gitignore [Rename] Replace more instances of Elasticsearch with OpenSearch. (#432) 2021-03-21 20:56:34 -05:00
ADMINS.md Updated READMEs on releasing, maintaining, admins and security. (#853) (#950) 2021-07-12 15:06:20 -05:00
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT.md 2021-03-13 10:36:16 -06:00
CONTRIBUTING.md Cleanup TESTING and DEVELOPER_GUIDE markdowns (#946) (#954) 2021-07-13 14:13:26 -05:00
DEVELOPER_GUIDE.md Cleanup TESTING and DEVELOPER_GUIDE markdowns (#946) (#954) 2021-07-13 14:13:26 -05:00
Jenkinsfile Update CI workflow to work on new infra (#123) 2021-03-13 10:36:15 -06:00
LICENSE.txt Update LICENSE.txt 2021-03-22 09:25:46 -05:00
MAINTAINERS.md Updated READMEs on releasing, maintaining, admins and security. (#853) (#950) 2021-07-12 15:06:20 -05:00
NOTICE.txt [TEST] Fix failing distro tests for linux packages (#569) (#733) 2021-05-20 17:11:03 -04:00
README.md Updated READMEs on releasing, maintaining, admins and security. (#853) (#950) 2021-07-12 15:06:20 -05:00
RELEASING.md Updated READMEs on releasing, maintaining, admins and security. (#853) (#950) 2021-07-12 15:06:20 -05:00
SECURITY.md Updated READMEs on releasing, maintaining, admins and security. (#853) (#950) 2021-07-12 15:06:20 -05:00
TESTING.md Cleanup TESTING and DEVELOPER_GUIDE markdowns (#946) (#954) 2021-07-13 14:13:26 -05:00
Vagrantfile [TEST] Fix failing distro tests for linux packages (#569) (#733) 2021-05-20 17:11:03 -04:00
build.gradle Add Snapshot maven repository (#941) 2021-07-07 11:00:05 -07:00
gradle.properties Speed ups to test suite and precommit tasks. (#580) 2021-04-20 09:02:45 -05:00
gradlew Update gradle wrapper to 6.6 (#59909) (#60949) 2020-08-11 11:03:19 +02:00
gradlew.bat Update gradle wrapper to 6.6 (#59909) (#60949) 2020-08-11 11:03:19 +02:00
settings.gradle Revert "Initial boilerplate for implementing the upgrade cli." 2021-05-26 11:54:59 -07:00

README.md

OpenSearch

Welcome!

OpenSearch is a community-driven, open source fork of Elasticsearch and Kibana following the licence change in early 2021. We're looking to sustain (and evolve!) a search and analytics suite for the multitude of businesses who are dependent on the rights granted by the original, Apache v2.0 License.

Project Resources

Code of Conduct

This project has adopted the Amazon Open Source Code of Conduct. For more information see the Code of Conduct FAQ, or contact opensource-codeofconduct@amazon.com with any additional questions or comments.

License

This project is licensed under the Apache v2.0 License.

Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.