Skip to content

Commit

Permalink
Merge branch '2.x' into revert-unrelease-commits-2-x
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chu <clingzhi@amazon.com>
  • Loading branch information
noCharger authored Oct 13, 2023
2 parents d7abf13 + e6cb386 commit 42009ae
Show file tree
Hide file tree
Showing 90 changed files with 542 additions and 185 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Dependencies
- Bumps jetty version to 9.4.52.v20230823 to fix GMS-2023-1857 ([#9822](https://github.com/opensearch-project/OpenSearch/pull/9822))
- Bump `netty` from 4.1.99.Final to 4.1.100.Final ([#10564](https://github.com/opensearch-project/OpenSearch/pull/10564))
- Bump Lucene from 9.7.0 to 9.8.0 ([10276](https://github.com/opensearch-project/OpenSearch/pull/10276))

### Changed
- Add the means to extract the contextual properties from HttpChannel, TcpCChannel and TrasportChannel without excessive typecasting ([#10562](https://github.com/opensearch-project/OpenSearch/pull/10562))
- Backport the PR #9107 for updating CONCURRENT_SEGMENT_SEARCH_TARGET_MAX_SLICE_COUNT_KEY setting to a dynamic setting ([#10606](https://github.com/opensearch-project/OpenSearch/pull/10606))

### Deprecated

### Removed

### Fixed
- Fix class_cast_exception when passing int to _version and other metadata fields in ingest simulate API ([#10101](https://github.com/opensearch-project/OpenSearch/pull/10101))

### Security

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/version.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jakarta_annotation = 1.3.5
# when updating the JNA version, also update the version in buildSrc/build.gradle
jna = 5.13.0

netty = 4.1.99.Final
netty = 4.1.100.Final
joda = 2.12.2

# client dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -976,3 +976,140 @@ teardown:
}
- match: { error.root_cause.0.type: "illegal_argument_exception" }
- match: { error.root_cause.0.reason: "Pipeline processor configured for non-existent pipeline [____pipeline_doesnot_exist___]" }

---
"Test simulate with docs containing metadata fields":
- do:
ingest.simulate:
body: >
{
"pipeline": {
"description": "_description",
"processors": [
{
"set" : {
"field": "field2",
"value": "foo"
}
}
]
},
"docs": [
{
"_index": "index",
"_id": "id",
"_routing": "foo",
"_version": 100,
"_if_seq_no": 12333333333333333,
"_if_primary_term": 1,
"_source": {
"foo": "bar"
}
}
]
}
- length: { docs: 1 }
- match: { docs.0.doc._index: "index" }
- match: { docs.0.doc._id: "id" }
- match: { docs.0.doc._routing: "foo" }
- match: { docs.0.doc._version: "100" }
- match: { docs.0.doc._if_seq_no: "12333333333333333" }
- match: { docs.0.doc._if_primary_term: "1" }
- match: { docs.0.doc._source.foo: "bar" }

- do:
catch: bad_request
ingest.simulate:
body: >
{
"pipeline": {
"description": "_description",
"processors": [
{
"set" : {
"field" : "field2",
"value": "foo"
}
}
]
},
"docs": [
{
"_index": "index",
"_id": "id",
"_routing": "foo",
"_version": "bar",
"_source": {
"foo": "bar"
}
}
]
}
- match: { status: 400 }
- match: { error.root_cause.0.type: "illegal_argument_exception" }
- match: { error.root_cause.0.reason: "Failed to parse parameter [_version], only int or long is accepted" }

- do:
catch: bad_request
ingest.simulate:
body: >
{
"pipeline": {
"description": "_description",
"processors": [
{
"set" : {
"field" : "field2",
"value": "foo"
}
}
]
},
"docs": [
{
"_index": "index",
"_id": "id",
"_routing": "foo",
"_if_seq_no": "123",
"_source": {
"foo": "bar"
}
}
]
}
- match: { status: 400 }
- match: { error.root_cause.0.type: "illegal_argument_exception" }
- match: { error.root_cause.0.reason: "Failed to parse parameter [_if_seq_no], only int or long is accepted" }

- do:
catch: bad_request
ingest.simulate:
body: >
{
"pipeline": {
"description": "_description",
"processors": [
{
"set" : {
"field" : "field2",
"value": "foo"
}
}
]
},
"docs": [
{
"_index": "index",
"_id": "id",
"_routing": "foo",
"_if_primary_term": "1",
"_source": {
"foo": "bar"
}
}
]
}
- match: { status: 400 }
- match: { error.root_cause.0.type: "illegal_argument_exception" }
- match: { error.root_cause.0.reason: "Failed to parse parameter [_if_primary_term], only int or long is accepted" }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
39b05d2d4027971bf99111a9be1d7035a116bb55

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9c3c71e7cf3b8ce3bfc9fa52a524b9ca7ddf259c

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
992623e7d8f2d96e41faf1687bb963f5433e3517

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
847f942381145de23f21c836d05b0677474271d3

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4c0acdb8bb73647ebb3847ac2d503d53d72c02b4

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fe62f9ccd41b8660d07639dbbab8ae1edd6f2720

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6620fbfb47667a5eb6050e35c7b4c88000bcd77f

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
648ff5571022dbfa6789122e3872477bbf67fa7b

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
663b1b7bf3ff0f12fde4df20c72d9e94584ebffa

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cbf1a430ea44dbdedbcde16b185cbb95f28d72c7

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a9fbf4d64b08abed542eefd5f7aed4807edca56f

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
af3cf676eed30184215426ecf0f0dde15555ea9c

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
62dbdf5f25eda75ea8456be1ed72b3fcb0d18774

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
648ff5571022dbfa6789122e3872477bbf67fa7b

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5ef15a3ce29a792b7ad17438e5f84c617b3f2993

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
39b05d2d4027971bf99111a9be1d7035a116bb55

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9c3c71e7cf3b8ce3bfc9fa52a524b9ca7ddf259c

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
992623e7d8f2d96e41faf1687bb963f5433e3517

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cbf1a430ea44dbdedbcde16b185cbb95f28d72c7

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
847f942381145de23f21c836d05b0677474271d3

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4c0acdb8bb73647ebb3847ac2d503d53d72c02b4

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fe62f9ccd41b8660d07639dbbab8ae1edd6f2720

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6620fbfb47667a5eb6050e35c7b4c88000bcd77f

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
78489936ca1d91483e34a31d04a3b0812386eb39

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
648ff5571022dbfa6789122e3872477bbf67fa7b

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
39b05d2d4027971bf99111a9be1d7035a116bb55

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9c3c71e7cf3b8ce3bfc9fa52a524b9ca7ddf259c

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
992623e7d8f2d96e41faf1687bb963f5433e3517

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
847f942381145de23f21c836d05b0677474271d3

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4c0acdb8bb73647ebb3847ac2d503d53d72c02b4

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fe62f9ccd41b8660d07639dbbab8ae1edd6f2720

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6620fbfb47667a5eb6050e35c7b4c88000bcd77f

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
import static org.opensearch.action.admin.cluster.node.stats.NodesStatsRequest.Metric.BREAKER;
import static org.opensearch.cluster.metadata.IndexMetadata.SETTING_NUMBER_OF_REPLICAS;
import static org.opensearch.index.query.QueryBuilders.matchAllQuery;
import static org.opensearch.search.SearchBootstrapSettings.CONCURRENT_SEGMENT_SEARCH_TARGET_MAX_SLICE_COUNT_KEY;
import static org.opensearch.search.SearchService.CLUSTER_CONCURRENT_SEGMENT_SEARCH_SETTING;
import static org.opensearch.search.SearchService.CONCURRENT_SEGMENT_SEARCH_TARGET_MAX_SLICE_COUNT_KEY;
import static org.opensearch.search.aggregations.AggregationBuilders.cardinality;
import static org.opensearch.search.aggregations.AggregationBuilders.terms;
import static org.opensearch.test.OpenSearchIntegTestCase.Scope.TEST;
Expand Down
Loading

0 comments on commit 42009ae

Please sign in to comment.