Skip to content

Commit 8d50c39

Browse files
Merge branch 'main' of github.com:opensearch-project/OpenSearch into off_heap_star_tree
2 parents 7f637c7 + 49b7cd4 commit 8d50c39

File tree

13 files changed

+32
-32
lines changed

13 files changed

+32
-32
lines changed

.github/workflows/benchmark-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
ref: ${{ env.prHeadRefSha }}
124124
token: ${{ secrets.GITHUB_TOKEN }}
125125
- name: Setup Java
126-
uses: actions/setup-java@v1
126+
uses: actions/setup-java@v4
127127
with:
128128
java-version: 21
129129
- name: Build and Assemble OpenSearch from PR

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2121
- OpenJDK Update (July 2024 Patch releases) ([#14998](https://github.com/opensearch-project/OpenSearch/pull/14998))
2222
- Bump `com.microsoft.azure:msal4j` from 1.16.1 to 1.16.2 ([#14995](https://github.com/opensearch-project/OpenSearch/pull/14995))
2323
- Bump `actions/github-script` from 6 to 7 ([#14997](https://github.com/opensearch-project/OpenSearch/pull/14997))
24+
- Bump `org.tukaani:xz` from 1.9 to 1.10 ([#15110](https://github.com/opensearch-project/OpenSearch/pull/15110))
25+
- Bump `actions/setup-java` from 1 to 4 ([#15104](https://github.com/opensearch-project/OpenSearch/pull/15104))
26+
- Bump `org.apache.avro:avro` from 1.11.3 to 1.12.0 in /plugins/repository-hdfs ([#15119](https://github.com/opensearch-project/OpenSearch/pull/15119))
2427

2528
### Changed
2629
- Add lower limit for primary and replica batch allocators timeout ([#14979](https://github.com/opensearch-project/OpenSearch/pull/14979))

TRIAGING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Meeting structure may vary slightly, but the general structure is as follows:
3535
- [Core](https://github.com/opensearch-project/OpenSearch/issues?q=is%3Aissue+is%3Aopen+label%3Auntriaged+-label%3A%22Search%22%2C%22Search%3ARemote+Search%22%2C%22Search%3AResiliency%22%2C%22Search%3APerformance%22%2C%22Search%3ARelevance%22%2C%22Search%3AAggregations%22%2C%22Search%3AQuery+Capabilities%22%2C%22Search%3AQuery+Insights%22%2C%22Search%3ASearchable+Snapshots%22%2C%22Search%3AUser+Behavior+Insights%22%2C%22Storage%22%2C%22Storage%3AResiliency%22%2C%22Storage%3APerformance%22%2C%22Storage%3ASnapshots%22%2C%22Storage%3ARemote%22%2C%22Storage%3ADurability%22%2C%22Cluster+Manager%22%2C%22ClusterManager%3ARemoteState%22%2C%22Indexing%3AReplication%22%2C%22Indexing%22%2C%22Indexing%3APerformance%22%2C%22Indexing+%26+Search%22)
3636
5. **Attendee Requests:** An opportunity for any meeting member to request consideration of an issue or pull request.
3737
6. **Open Discussion:** Attendees can bring up any topics not already covered by filed issues or pull requests.
38-
7. **Review of Old Untriaged Issues:** Time permitting, each meeting will look at all [untriaged issues older than 14 days](https://github.com/opensearch-project/OpenSearch/issues?q=is%3Aissue+is%3Aopen+label%3Auntriaged+created%3A%3C2024-05-20) to prevent issues from falling through the cracks (note the GitHub API does not allow for relative times, so the date in this search must be updated every meeting).
38+
7. **Review of Old Untriaged Issues:** Look at all [untriaged issues older than 14 days](https://peternied.github.io/redirect/issue_search.html?owner=opensearch-project&repo=OpenSearch&tag=untriaged&created-since-days=14) to prevent issues from falling through the cracks.
3939

4040
### What is the role of the facilitator?
4141

plugins/ingest-attachment/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ dependencies {
6666
runtimeOnly "com.optimaize.languagedetector:language-detector:0.6"
6767
runtimeOnly "com.google.guava:guava:${versions.guava}"
6868
// Other dependencies
69-
api 'org.tukaani:xz:1.9'
69+
api 'org.tukaani:xz:1.10'
7070
api "commons-io:commons-io:${versions.commonsio}"
7171
api "org.slf4j:slf4j-api:${versions.slf4j}"
7272

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1be8166f89e035a56c6bfc67dbc423996fe577e2

plugins/ingest-attachment/licenses/xz-1.9.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.

plugins/repository-hdfs/build.gradle

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ dependencies {
6666
}
6767
api 'org.apache.htrace:htrace-core4:4.2.0-incubating'
6868
api "org.apache.logging.log4j:log4j-core:${versions.log4j}"
69-
api 'org.apache.avro:avro:1.11.3'
69+
api 'org.apache.avro:avro:1.12.0'
7070
api 'com.google.code.gson:gson:2.11.0'
7171
runtimeOnly "com.google.guava:guava:${versions.guava}"
7272
api "commons-logging:commons-logging:${versions.commonslogging}"
@@ -425,19 +425,6 @@ thirdPartyAudit {
425425
'org.apache.hadoop.shaded.org.apache.curator.shaded.com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper',
426426
'org.apache.hadoop.shaded.org.apache.curator.shaded.com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper$1',
427427
'org.apache.hadoop.shaded.org.xbill.DNS.spi.DNSJavaNameServiceDescriptor',
428-
429-
'org.apache.avro.reflect.FieldAccessUnsafe',
430-
'org.apache.avro.reflect.FieldAccessUnsafe$UnsafeBooleanField',
431-
'org.apache.avro.reflect.FieldAccessUnsafe$UnsafeByteField',
432-
'org.apache.avro.reflect.FieldAccessUnsafe$UnsafeCachedField',
433-
'org.apache.avro.reflect.FieldAccessUnsafe$UnsafeCharField',
434-
'org.apache.avro.reflect.FieldAccessUnsafe$UnsafeCustomEncodedField',
435-
'org.apache.avro.reflect.FieldAccessUnsafe$UnsafeDoubleField',
436-
'org.apache.avro.reflect.FieldAccessUnsafe$UnsafeFloatField',
437-
'org.apache.avro.reflect.FieldAccessUnsafe$UnsafeIntField',
438-
'org.apache.avro.reflect.FieldAccessUnsafe$UnsafeLongField',
439-
'org.apache.avro.reflect.FieldAccessUnsafe$UnsafeObjectField',
440-
'org.apache.avro.reflect.FieldAccessUnsafe$UnsafeShortField',
441428
)
442429
}
443430

plugins/repository-hdfs/licenses/avro-1.11.3.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6e692a464b213f6df49f8e3e7fcf42df0dbb7639

rest-api-spec/src/main/resources/rest-api-spec/test/indices.delete_index_template/10_basic.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ teardown:
4040
---
4141
"Delete index template which is not used by data stream but index pattern matches":
4242
- skip:
43-
version: " - 2.99.99"
44-
reason: "fixed in 3.0.0"
43+
version: " - 2.16.99"
44+
reason: "fixed in 2.17.0"
4545

4646
- do:
4747
indices.create_data_stream:

server/src/internalClusterTest/java/org/opensearch/remotestore/WritableWarmIT.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
import org.opensearch.common.settings.Settings;
2121
import org.opensearch.common.settings.SettingsException;
2222
import org.opensearch.common.util.FeatureFlags;
23+
import org.opensearch.core.common.unit.ByteSizeUnit;
24+
import org.opensearch.core.common.unit.ByteSizeValue;
2325
import org.opensearch.index.IndexModule;
2426
import org.opensearch.index.query.QueryBuilders;
2527
import org.opensearch.index.shard.IndexShard;
@@ -65,11 +67,20 @@ protected Settings featureFlagSettings() {
6567
return featureSettings.build();
6668
}
6769

70+
@Override
71+
protected Settings nodeSettings(int nodeOrdinal) {
72+
ByteSizeValue cacheSize = new ByteSizeValue(16, ByteSizeUnit.GB);
73+
return Settings.builder()
74+
.put(super.nodeSettings(nodeOrdinal))
75+
.put(Node.NODE_SEARCH_CACHE_SIZE_SETTING.getKey(), cacheSize.toString())
76+
.build();
77+
}
78+
6879
public void testWritableWarmFeatureFlagDisabled() {
6980
Settings clusterSettings = Settings.builder().put(super.nodeSettings(0)).put(FeatureFlags.TIERED_REMOTE_INDEX, false).build();
7081
InternalTestCluster internalTestCluster = internalCluster();
7182
internalTestCluster.startClusterManagerOnlyNode(clusterSettings);
72-
internalTestCluster.startDataOnlyNode(clusterSettings);
83+
internalTestCluster.startDataAndSearchNodes(1);
7384

7485
Settings indexSettings = Settings.builder()
7586
.put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, 1)
@@ -94,7 +105,7 @@ public void testWritableWarmFeatureFlagDisabled() {
94105
public void testWritableWarmBasic() throws Exception {
95106
InternalTestCluster internalTestCluster = internalCluster();
96107
internalTestCluster.startClusterManagerOnlyNode();
97-
internalTestCluster.startDataOnlyNode();
108+
internalTestCluster.startDataAndSearchNodes(1);
98109
Settings settings = Settings.builder()
99110
.put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, 1)
100111
.put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, 0)

server/src/internalClusterTest/java/org/opensearch/snapshots/SearchableSnapshotIT.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
import java.util.stream.StreamSupport;
6868

6969
import static org.opensearch.action.admin.cluster.node.stats.NodesStatsRequest.Metric.FS;
70-
import static org.opensearch.common.util.FeatureFlags.TIERED_REMOTE_INDEX;
7170
import static org.opensearch.core.common.util.CollectionUtils.iterableAsArrayList;
7271
import static org.opensearch.index.store.remote.filecache.FileCacheSettings.DATA_TO_FILE_CACHE_SIZE_RATIO_SETTING;
7372
import static org.opensearch.test.NodeRoles.clusterManagerOnlyNode;
@@ -1019,11 +1018,12 @@ public void testStartSearchNode() throws Exception {
10191018
internalCluster().startNode(Settings.builder().put(onlyRole(DiscoveryNodeRole.SEARCH_ROLE)));
10201019
// test start node without search role
10211020
internalCluster().startNode(Settings.builder().put(onlyRole(DiscoveryNodeRole.DATA_ROLE)));
1022-
// test start non-dedicated search node with TIERED_REMOTE_INDEX feature enabled
1023-
internalCluster().startNode(
1024-
Settings.builder()
1025-
.put(onlyRoles(Set.of(DiscoveryNodeRole.SEARCH_ROLE, DiscoveryNodeRole.DATA_ROLE)))
1026-
.put(TIERED_REMOTE_INDEX, true)
1021+
// test start non-dedicated search node, if the user doesn't configure the cache size, it fails
1022+
assertThrows(
1023+
SettingsException.class,
1024+
() -> internalCluster().startNode(
1025+
Settings.builder().put(onlyRoles(Set.of(DiscoveryNodeRole.SEARCH_ROLE, DiscoveryNodeRole.DATA_ROLE)))
1026+
)
10271027
);
10281028
// test start non-dedicated search node
10291029
assertThrows(

server/src/main/java/org/opensearch/node/Node.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ public class Node implements Closeable {
382382

383383
public static final Setting<String> NODE_SEARCH_CACHE_SIZE_SETTING = new Setting<>(
384384
"node.search.cache.size",
385-
s -> (FeatureFlags.isEnabled(FeatureFlags.TIERED_REMOTE_INDEX_SETTING) || DiscoveryNode.isDedicatedSearchNode(s)) ? "80%" : ZERO,
385+
s -> (DiscoveryNode.isDedicatedSearchNode(s)) ? "80%" : ZERO,
386386
Node::validateFileCacheSize,
387387
Property.NodeScope
388388
);
@@ -2037,8 +2037,7 @@ DiscoveryNode getNode() {
20372037
* Else it configures the size to 80% of total capacity for a dedicated search node, if not explicitly defined.
20382038
*/
20392039
private void initializeFileCache(Settings settings, CircuitBreaker circuitBreaker) throws IOException {
2040-
boolean isWritableRemoteIndexEnabled = FeatureFlags.isEnabled(FeatureFlags.TIERED_REMOTE_INDEX_SETTING);
2041-
if (DiscoveryNode.isSearchNode(settings) == false && isWritableRemoteIndexEnabled == false) {
2040+
if (DiscoveryNode.isSearchNode(settings) == false) {
20422041
return;
20432042
}
20442043

0 commit comments

Comments
 (0)