Skip to content

Commit

Permalink
Merge branch 'main' into passing-localNode-info
Browse files Browse the repository at this point in the history
  • Loading branch information
DarshitChanpura committed Jun 19, 2023
2 parents 56c5f84 + 1d2c57d commit 2bb26c2
Show file tree
Hide file tree
Showing 303 changed files with 1,527 additions and 633 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Bump `io.projectreactor:reactor-core` from 3.5.1 to 3.5.6 in /plugins/repository-azure ([#8016](https://github.com/opensearch-project/OpenSearch/pull/8016))
- Bump `com.google.guava:guava` from 32.0.0-jre to 32.0.1-jre in /distribution/tools/upgrade-cli ([#8011](https://github.com/opensearch-project/OpenSearch/pull/8011))
- Bump `com.google.guava:guava` from 32.0.0-jre to 32.0.1-jre in /distribution/tools/plugin-cli ([#8012](https://github.com/opensearch-project/OpenSearch/pull/8012))
- Bump all `com.google.guava:guava` to 32.0.1-jre ([#8107](https://github.com/opensearch-project/OpenSearch/pull/8107))

### Changed
- [CCR] Add getHistoryOperationsFromTranslog method to fetch the history snapshot from translogs ([#3948](https://github.com/opensearch-project/OpenSearch/pull/3948))
Expand Down Expand Up @@ -94,6 +95,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Support OpenSSL Provider with default Netty allocator ([#5460](https://github.com/opensearch-project/OpenSearch/pull/5460))
- Replaces ZipInputStream with ZipFile to fix Zip Slip vulnerability ([#7230](https://github.com/opensearch-project/OpenSearch/pull/7230))
- Add missing validation/parsing of SearchBackpressureMode of SearchBackpressureSettings ([#7541](https://github.com/opensearch-project/OpenSearch/pull/7541))
- Fix mapping char_filter when mapping a hashtag ([#7591](https://github.com/opensearch-project/OpenSearch/pull/7591))
- With only GlobalAggregation in request causes unnecessary wrapping with MultiCollector ([#8125](https://github.com/opensearch-project/OpenSearch/pull/8125))

### Security

Expand All @@ -103,6 +106,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Add TokenManager Interface ([#7452](https://github.com/opensearch-project/OpenSearch/pull/7452))
- Add Remote store as a segment replication source ([#7653](https://github.com/opensearch-project/OpenSearch/pull/7653))
- Add descending order search optimization through reverse segment read. ([#7967](https://github.com/opensearch-project/OpenSearch/pull/7967))
- Make remote cluster connection setup in async ([#8038](https://github.com/opensearch-project/OpenSearch/pull/8038))
- Update components of segrep backpressure to support remote store. ([#8020](https://github.com/opensearch-project/OpenSearch/pull/8020))

### Dependencies
Expand All @@ -113,20 +117,24 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Bump `commons-io:commons-io` from 2.12.0 to 2.13.0 (#8014, #8013, #8010)
- Bump `com.diffplug.spotless` from 6.18.0 to 6.19.0 (#8007)
- Bump `org.jruby.joni:joni` from 2.1.48 to 2.2.1 (#8015)
- Bump `com.netflix.nebula:gradle-info-plugin` from 12.1.3 to 12.1.4 (#8139)
- Bump `com.azure:azure-storage-common` from 12.21.1 to 12.21.2 (#8142)

### Changed
- Replace jboss-annotations-api_1.2_spec with jakarta.annotation-api ([#7836](https://github.com/opensearch-project/OpenSearch/pull/7836))
- Add min, max, average and thread info to resource stats in tasks API ([#7673](https://github.com/opensearch-project/OpenSearch/pull/7673))
- Compress and cache cluster state during validate join request ([#7321](https://github.com/opensearch-project/OpenSearch/pull/7321))
- [Snapshot Interop] Add Changes in Create Snapshot Flow for remote store interoperability. ([#7118](https://github.com/opensearch-project/OpenSearch/pull/7118))
- Add new query profile collector fields with concurrent search execution ([#7898](https://github.com/opensearch-project/OpenSearch/pull/7898))
- Allow insecure string settings to warn-log usage and advise to migration of a newer secure variant ([#5496](https://github.com/opensearch-project/OpenSearch/pull/5496))

### Deprecated

### Removed

### Fixed
- Fixing error: adding a new/forgotten parameter to the configuration for checking the config on startup in plugins/repository-s3 #7924
- Enforce 512 byte document ID limit in bulk updates ([#8039](https://github.com/opensearch-project/OpenSearch/pull/8039))

### Security

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ dependencies {
api 'org.apache.ant:ant:1.10.13'
api 'com.netflix.nebula:gradle-extra-configurations-plugin:10.0.0'
api 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
api 'com.netflix.nebula:gradle-info-plugin:12.1.3'
api 'com.netflix.nebula:gradle-info-plugin:12.1.4'
api 'org.apache.rat:apache-rat:0.15'
api 'commons-io:commons-io:2.13.0'
api "net.java.dev.jna:jna:5.13.0"
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/version.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jettison = 1.5.4
woodstox = 6.4.0
kotlin = 1.7.10
antlr4 = 4.11.1
guava = 31.1-jre
guava = 32.0.1-jre
protobuf = 3.22.3
jakarta_annotation = 1.3.5

Expand Down
13 changes: 0 additions & 13 deletions distribution/archives/darwin-arm64-tar/build.gradle

This file was deleted.

13 changes: 0 additions & 13 deletions distribution/archives/darwin-tar/build.gradle

This file was deleted.

13 changes: 0 additions & 13 deletions distribution/archives/linux-arm64-tar/build.gradle

This file was deleted.

13 changes: 0 additions & 13 deletions distribution/archives/linux-tar/build.gradle

This file was deleted.

13 changes: 0 additions & 13 deletions distribution/archives/no-jdk-darwin-arm64-tar/build.gradle

This file was deleted.

13 changes: 0 additions & 13 deletions distribution/archives/no-jdk-darwin-tar/build.gradle

This file was deleted.

13 changes: 0 additions & 13 deletions distribution/archives/no-jdk-linux-tar/build.gradle

This file was deleted.

13 changes: 0 additions & 13 deletions distribution/archives/no-jdk-windows-zip/build.gradle

This file was deleted.

13 changes: 0 additions & 13 deletions distribution/archives/windows-zip/build.gradle

This file was deleted.

13 changes: 0 additions & 13 deletions distribution/docker/docker-arm64-export/build.gradle

This file was deleted.

13 changes: 0 additions & 13 deletions distribution/docker/docker-s390x-export/build.gradle

This file was deleted.

13 changes: 0 additions & 13 deletions distribution/packages/arm64-deb/build.gradle

This file was deleted.

13 changes: 0 additions & 13 deletions distribution/packages/arm64-rpm/build.gradle

This file was deleted.

13 changes: 0 additions & 13 deletions distribution/packages/deb/build.gradle

This file was deleted.

13 changes: 0 additions & 13 deletions distribution/packages/no-jdk-deb/build.gradle

This file was deleted.

13 changes: 0 additions & 13 deletions distribution/packages/no-jdk-rpm/build.gradle

This file was deleted.

13 changes: 0 additions & 13 deletions distribution/packages/rpm/build.gradle

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
package org.opensearch.common;

import org.opensearch.common.unit.TimeValue;
import org.opensearch.core.common.lease.Releasable;

import java.text.NumberFormat;
import java.util.LinkedList;
Expand Down Expand Up @@ -155,7 +154,7 @@ public StopWatch stop() throws IllegalStateException {
return this;
}

public Releasable timing(String taskName) {
public TimingHandle timing(String taskName) {
start(taskName);
return this::stop;
}
Expand Down Expand Up @@ -268,4 +267,14 @@ public TimeValue getTime() {
}
}

/**
* Stops the watch and auto calls close in try-with-resources usage
*
* @opensearch.internal
*/
public interface TimingHandle extends AutoCloseable {
@Override
void close();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
* GitHub history for details.
*/

package org.opensearch.core.common.lease;
package org.opensearch.common.lease;

import java.io.Closeable;

/**
* Specialization of {@link AutoCloseable} that may only throw an {@code BaseOpenSearchException}.
* Specialization of {@link AutoCloseable} for calls that might not throw a checked exception.
*
* @opensearch.internal
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.core.common.lease;
package org.opensearch.common.lease;

import org.opensearch.common.Nullable;
import org.opensearch.common.util.io.IOUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
*/

/** Base Releasables package. */
package org.opensearch.core.common.lease;
package org.opensearch.common.lease;
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import org.apache.lucene.search.ScoreMode;
import org.opensearch.common.util.BigArrays;
import org.opensearch.common.util.ObjectArray;
import org.opensearch.core.common.lease.Releasables;
import org.opensearch.common.lease.Releasables;
import org.opensearch.index.fielddata.NumericDoubleValues;
import org.opensearch.search.MultiValueMode;
import org.opensearch.search.aggregations.Aggregator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class MappingCharFilterFactory extends AbstractCharFilterFactory implemen
MappingCharFilterFactory(IndexSettings indexSettings, Environment env, String name, Settings settings) {
super(indexSettings, name);

List<MappingRule<String, String>> rules = Analysis.parseWordList(env, settings, "mappings", this::parse);
List<MappingRule<String, String>> rules = Analysis.parseWordList(env, settings, "mappings", this::parse, false);
if (rules == null) {
throw new IllegalArgumentException("mapping requires either `mappings` or `mappings_path` to be configured");
}
Expand Down
Loading

0 comments on commit 2bb26c2

Please sign in to comment.