Commit Graph

54984 Commits

Author SHA1 Message Date
Vacha 7422e22088
Upgrading netty version to 4.1.69.Final (#1363) (#1383)
Signed-off-by: Vacha <vachshah@amazon.com>
2021-10-18 22:05:33 -04:00
Vacha ceef1bf494
Upgrade hadoop dependencies for hdfs plugin (#1335) (#1373)
* Upgrade hadoop dependencies for hdfs plugin

Signed-off-by: Vacha <vachshah@amazon.com>

* Fixing gradle check failures

Signed-off-by: Vacha <vachshah@amazon.com>

* Upgrading htrace-core4 to 4.1.0

Signed-off-by: Vacha <vachshah@amazon.com>
2021-10-17 15:52:29 -04:00
Sai 15e9f13762
Changes to support retrieval of operations from translog based on specified range (#1257)
Backport changes to support retrieval of operations from translog based on specified range

Signed-off-by: Sai Kumar <karanas@amazon.com>
2021-09-26 00:02:29 -05:00
Sai eba365c5f7
[Backport] Support for translog pruning based on retention leases (#1038) (#1256)
Support for translog pruning based on retention leases; including deprecations for
refactoring to ccr plugin in the future.

Co-authored-by: Nicholas Walter Knize <nknize@apache.org>
Signed-off-by: Sai Kumar <karanas@amazon.com>
2021-09-25 23:53:32 -05:00
Xue Zhou 2183c7ce82
fix gradle check fail due to renameing -min in #1094 (#1289) (#1291)
Signed-off-by: Xue Zhou <xuezhou@amazon.com>
2021-09-24 23:03:45 -05:00
Daniel Doubrovkine (dB.) 86ce37f48a
Rename artifact produced by the build to include -min (#1251) (#1271)
Signed-off-by: Xue Zhou <xuezhou@amazon.com>

Co-authored-by: Xue Zhou <85715413+xuezhou25@users.noreply.github.com>
2021-09-22 10:52:24 -04:00
Nick Knize c103465505
[Bug] Fix InstallPluginCommand to use proper key signatures (#1233) (#1235)
The public key has changed since the initial release. This commit fixes the
public key and uses the .sig files that are published to the artifacts site.

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
2021-09-13 11:55:24 -07:00
Andriy Redko d54e209e2e
Fix org.opensearch.index.reindex.ReindexRestClientSslTests#testClientSucceedsWithCertificateAuthorities - javax.net.ssl.SSLPeerUnverifiedException (#1212) (#1224)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
2021-09-10 11:49:33 -04:00
Rabi Panda f52755857d
Max scroll limit breach to throw a OpenSearchRejectedExecutionException (#1054) (#1231)
* Changes the Exception to throw a OpenSearchRejectedExecutionException on max scroll limit breach

Signed-off-by: Bukhtawar Khan bukhtawa@amazon.com

Co-authored-by: Bukhtawar Khan <bukhtawa@amazon.com>
2021-09-10 10:34:46 -04:00
Rabi Panda 6fe24609e0
[1.x] Backport opensearch-upgrade CLI tool (#1222)
* A CLI tool to assist during an upgrade to OpenSearch. (#846)

This change adds the initial version of a new CLI tool `opensearch-upgrade` as part of the OpenSearch distribution. This tool is meant for assisting during an upgrade from an existing Elasticsearch v7.10.2/v6.8.0 node to OpenSearch. It automates the process of importing existing configurations and installing of core plugins.

Signed-off-by: Rabi Panda <adnapibar@gmail.com>

* Validation for official plugins for upgrade tool (#973)

Add validation to check for official plugins during the plugins installation task for the upgrade tool.

Signed-off-by: Vacha Shah <vachshah@amazon.com>

Co-authored-by: Vacha <vachshah@amazon.com>
2021-09-08 10:39:02 -07:00
Vacha ba9c8c0844
Kept the original constructor for PluginInfo to maintain bwc (#1206) (#1209)
Signed-off-by: Vacha <vachshah@amazon.com>
2021-09-02 22:05:44 -04:00
Tianli Feng 495317fcfe
Clarify JDK requirement in the developer guide (#1153) (#1208)
* Explicitly point out the JDK 8 requirement is for runtime, but not for compiling.
* Clarify the JAVAx_HOME env variables are for the "backwards compatibility test".
* Add explanation on how the backwards compatibility tests get the OpenSearch distributions for a specific version.
Signed-off-by: Tianli Feng <ftianli@amazon.com>
2021-09-02 17:02:59 -07:00
Abbas Hussain b040cde940
Upgrade apache commons-compress to 1.21 (#1197) (#1203)
Signed-off-by: Abbas Hussain <abbas_10690@yahoo.com>
2021-09-03 01:47:57 +05:30
Andriy Redko 4a5f03ce47
Restoring alpha/beta/rc version semantics (#1112) (#1204)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
2021-09-02 08:01:46 -05:00
Nick Knize b7334f49d5
[Bug] Fix mixed cluster support for OpenSearch 2+ (#1191) (#1195)
The version framework only added support for OpenSearch 1.x bwc with legacy
clusters. This commit adds support for v2.0 which will be the last version with
bwc support for legacy clusters (v7.10)

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
2021-09-01 17:04:40 -05:00
Andriy Redko ab9755869a
Drop mocksocket & securemock dependencies from sniffer and rest client (no needed) (#1174) (#1187)
* Drop mocksocket & securemock dependencies from sniffer and rest client (not needed)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

* Removing .gitignore

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
2021-08-31 19:44:42 -04:00
Minal Shah 051aa13dab
Backporting the fix to 1.x for fixing Copyright licensing (#1188)
Signed-off-by: Minal Shah <minalsha@amazon.com>
2021-08-31 19:38:56 -04:00
Abbas Hussain 9b58ef5350
Reduce iterations to improve test run time (#1168) (#1177)
Signed-off-by: Abbas Hussain <abbas_10690@yahoo.com>
2021-08-31 01:06:29 +05:30
Abbas Hussain 04d56cf676
Tune datanode count and shards count to improve test run time (#1170) (#1176)
Signed-off-by: Abbas Hussain <abbas_10690@yahoo.com>
2021-08-31 00:14:38 +05:30
Nick Knize 079fd77062
Add 1.0.1 revision (#1152) (#1160)
This commit stages the branch to the next 1.0.1 patch release. BWC testing needs
this even if the next revision is never actually released.

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
2021-08-26 07:10:24 -05:00
Nick Knize ec05dcdcf0
[Bug] Change 1.0.0 version check in PluginInfo (#1159)
PluginInfo should use .onOrAfter(Version.V_1_1_0) instead of
.after(Version.V_1_0_0) for the new custom folder name for plugin feature.

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
2021-08-25 23:58:30 -05:00
Rabi Panda 07a57d9bbb
Include sources and javadoc artifacts while publishing to a Maven repository (#1049) (#1139)
This change fixes the issue where the sources and javadoc artifacts were not built and included with the publish.

Signed-off-by: Rabi Panda <adnapibar@gmail.com>
2021-08-23 17:12:20 -07:00
Vacha f73e66e5e7
Allowing custom folder name for plugin installation (#848) (#1116)
Signed-off-by: Vacha Shah <vachshah@amazon.com>
2021-08-23 14:39:27 -07:00
Nick Knize e153629871
Upgrade to Lucene 8.9 (#1080) (#1115)
This commit upgrades to the official lucene 8.9 release

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
2021-08-23 10:06:34 -07:00
Nick Knize c15e687bf9
[DEPRECATE] SimpleFS in favor of NIOFS (#1073) (#1114)
Lucene 9 removes support for SimpleFS File System format. This commit deprecates
the SimpleFS format in favor of NIOFS.

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
2021-08-20 11:26:22 -05:00
Sorabh 55c1026bb6
Fix failure in SearchCancellationIT.testMSearchChildReqCancellationWithHybridTimeout (#1105)
In some cases as one shared with issue #1099, the maxConcurrentSearchRequests was chosen as 0 which
will compute the final value during execution of the request based on processor counts. When this
computed value is less than number of search request in msearch request, it will execute all the
requests in multiple iterations causing the failure since test will only wait for one such
iteration. Hence setting the maxConcurrentSearchRequests explicitly to number of search requests
being added in the test to ensure correct behavior

Signed-off-by: Sorabh Hamirwasia <sohami.apache@gmail.com>
2021-08-17 16:23:55 -04:00
Vacha 8af1b91b7b
Support for bwc tests for plugins (#1051) (#1090)
* Support for bwc tests for plugins

Signed-off-by: Vacha <vachshah@amazon.com>

* Adding support for restart upgrades for plugins bwc

Signed-off-by: Vacha <vachshah@amazon.com>
2021-08-15 08:07:55 -07:00
kartg f151bfff24
Improving the Grok circular reference check to prevent stack overflow (#1079) (#1087)
This change refactors the circular reference check in the Grok processor class
to use a formal depth-first traversal. It also includes a logic update to
prevent a stack overflow in one scenario and a check for malformed patterns.
This bugfix addresses CVE-2021-22144.

Signed-off-by: Kartik Ganesh <85275476+kartg@users.noreply.github.com>
2021-08-12 18:47:56 -04:00
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
frotsch 987bfcf89c
Avoid crashing on using the index.lifecycle.name in the API body (#1060) (#1070)
* Avoid crashing on using the index.lifecycle.name in the API body

Signed-off-by: frotsch <frotsch@mailbox.org>
2021-08-10 14:16:44 -04:00
Vlad Rozov a7ad3f7026
Introduce RestHandler.Wrapper to help with delegate implementations (#1004) (#1031)
Signed-off-by: Vlad Rozov <vrozov@users.noreply.github.com>
2021-08-03 09:02:40 -04:00
Yevhen Tienkaiev a936e1e904
Rank feature - unknown field linear (#983) (#1025)
Signed-off-by: Yevhen Tienkaiev <hronom@gmail.com>
2021-07-30 15:17:47 -04:00
Poojita Raj 91248284c9
Replace Elasticsearch docs links in scripts (#994) (#1001)
Replace the docs links In scripts bin/opensearch-env and config/jvm.options, with OpenSearch docs links.

Signed-off-by: Poojita-Raj <poojiraj@amazon.com>
(cherry picked from commit 6bc4ce017a)
Signed-off-by: Poojita-Raj <poojiraj@amazon.com>
2021-07-23 14:21:31 -07:00
Chang Liu 96dabb31d3
Introduce replaceRoutes() method and 2 new constructors to RestHandler.java (#947) (#998)
* Add addRoutesPrefix() method to RestHandler.java

Signed-off-by: Azar Fazel <azar.fazel@gmail.com>
Signed-off-by: cliu123 <lc12251109@gmail.com>

Co-authored-by: afazel <afazel@users.noreply.github.com>
2021-07-22 14:26:16 -04:00
Chang Liu 34def5894e
Avoid override of routes() in BaseRestHandler to respect the default behavior defined in RestHandler (#889) (#991)
Signed-off-by: cliu123 <lc12251109@gmail.com>
2021-07-22 10:57:18 -04:00
Daniel Doubrovkine (dB.) 1740517905
Cleanup TESTING and DEVELOPER_GUIDE markdowns (#946) (#954) 2021-07-13 14:13:26 -05:00
Daniel Doubrovkine (dB.) c63071b00f
Updated READMEs on releasing, maintaining, admins and security. (#853) (#950)
Signed-off-by: dblock <dblock@amazon.com>
2021-07-12 15:06:20 -05:00
Sooraj Sinha 2085fbcad6
Pass interceptor to super constructor (#876) (#937)
Signed-off-by: Sooraj Sinha <soosinha@amazon.com>
2021-07-12 11:48:09 -07:00
Marc Handalian f0a2c4f038
Add Snapshot maven repository (#941)
* backport PR #829 to 1.x branch, so that we can publish snapshots to our maven repository.
Signed-off-by: Marc Handalian <handalm@amazon.com>
2021-07-07 11:00:05 -07:00
Nick Knize da6455d567
[BUG] Fix cat.health test failures in pre 1.0.0 mixed cluster test (#928) (#935)
Fixes the cat.health yaml failures when running in a bwc mixed cluster with
legacy (pre 1.0.0) nodes.

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
2021-07-02 17:55:58 -05:00
Rabi Panda 5d07c256f9
Fix arm architecture translation issue (#809) (#927)
Found when attempting to build on an `arm64` machine when I recieved an error message below.  Root cause is that string equality in java cannot be done with the `==` sign.

```
unknown architecture [arm64] for jdk [provisioned_runtime], must be one of [aarch64, x64]
```

Signed-off-by: Peter Nied <petern@amazon.com>

Co-authored-by: Peter Nied <petern@amazon.com>
2021-07-02 17:19:44 -05:00
Marc Handalian 3c563fedd9
Update DistributionDownloader to support fetching arm64 bundles. (#929) (#934)
Signed-off-by: Marc Handalian <handalm@amazon.com>
2021-07-02 15:02:47 -07:00
Rabi Panda 1f7df7adac
Update favicon for OpenSearch (#933)
Signed-off-by: Rabi Panda <pandarab@amazon.com>
2021-07-02 14:39:32 -07:00
Tianli Feng b383355f50
Refresh OpenSearch nodes version in cluster state after upgrade (#865) (#926)
Signed-off-by: Shweta Thareja <tharejas@amazon.com>
Co-authored-by: shwetathareja <shwetathareja@live.com>
2021-07-02 09:50:42 -07:00
Marc Handalian 36401d9edb
Fix Snapshot pattern in DistributionDownloader. (#916) (#920)
Snapshots are published with a -latest flag into s3, this updates
the pattern to correctly point to -latest.

Signed-off-by: Marc Handalian <handalm@amazon.com>
2021-07-01 21:59:41 -05:00
Marc Handalian b749b38043
Remove distribution from main response in compatibility mode (#898) (#921)
This Change removes version.distribution when the version.number is
overridden with the cluster setting compatibility.override_main_response_version.

Signed-off-by: Marc Handalian <handalm@amazon.com>
2021-07-01 21:57:36 -05:00
Tianli Feng 230f90b554
Add 'tagline' back to MainResponse in server that was removed in PR #427 (#913) (#914)
* Add "tagline" field back to "MainResponse" in sever side (not in rest-high-level-client side) that removed in PR #427 .
* Replace with a new tagline "The OpenSearch Project: https://opensearch.org/".
* Turn the tagline into a constant in server/src/main/java/org/opensearch/action/main/MainResponse.java.
2021-07-01 19:45:28 -07:00
Vacha 3ed6a2ec2a
Replace metadata keys in OpenSearchException during serialization and deserialization (#905) (#910)
Signed-off-by: Vlad Rozov <vrozov@users.noreply.github.com>

Co-authored-by: Vlad Rozov <vrozov@users.noreply.github.com>
2021-06-30 14:45:23 -07:00
Marc Handalian af4ad4fe8d
Update DistributionDownloader to fetch snapshots and staging bundles. (#904) (#907)
This change updates DistributionDownloader by registering a second
repository containing release-candidate bundles.  This repository will
only be checked if the release repository does not contain the requested
version.

This change also updates the snapshot repository to point to a new
snapshot repository.

Signed-off-by: Marc Handalian <handalm@amazon.com>
2021-06-30 11:32:55 -07:00
Nick Knize 15e6cb4db5
Version bump for 1.1 release (#772) (#892)
Bumps the minor to 1.1 for the 1.0 release.

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
2021-06-28 12:57:03 -05:00