Skip to content

Commit

Permalink
Merge branch 'main' into async_delete
Browse files Browse the repository at this point in the history
  • Loading branch information
shiv0408 committed May 29, 2024
2 parents 06b2d10 + 0c0a2b3 commit 2f8d2e1
Show file tree
Hide file tree
Showing 59 changed files with 73 additions and 34 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/gradle-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,28 @@ permissions:
contents: read # to fetch code (actions/checkout)

jobs:
check-files:
runs-on: ubuntu-latest
outputs:
RUN_GRADLE_CHECK: ${{ steps.changed-files-specific.outputs.any_changed }}
steps:
- uses: actions/checkout@v3
- name: Get changed files
id: changed-files-specific
uses: tj-actions/changed-files@v44
with:
files_ignore: |
release-notes/*.md
.github/**
*.md
gradle-check:
if: github.repository == 'opensearch-project/OpenSearch'
needs: check-files
if: github.repository == 'opensearch-project/OpenSearch' && needs.check-files.outputs.RUN_GRADLE_CHECK == 'true'
permissions:
contents: read # to fetch code (actions/checkout)
pull-requests: write # to create or update comment (peter-evans/create-or-update-comment)
issues: write # To create an issue if check fails on push.

runs-on: ubuntu-latest
timeout-minutes: 130
steps:
Expand Down Expand Up @@ -151,3 +166,12 @@ jobs:
with:
assignees: ${{ github.event.head_commit.author.username }}, ${{ github.triggering_actor }}
filename: .github/ISSUE_TEMPLATE/failed_check.md

check-result:
needs: [check-files, gradle-check]
if: always()
runs-on: ubuntu-latest
steps:
- name: Fail if gradle-check fails
if: ${{ needs.check-files.outputs.RUN_GRADLE_CHECK && needs.gradle-check.result == 'failure' }}
run: exit 1
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Bump `jackson` from 2.17.0 to 2.17.1 ([#13817](https://github.com/opensearch-project/OpenSearch/pull/13817))
- Bump `reactor` from 3.5.15 to 3.5.17 ([#13825](https://github.com/opensearch-project/OpenSearch/pull/13825))
- Bump `reactor-netty` from 1.1.17 to 1.1.19 ([#13825](https://github.com/opensearch-project/OpenSearch/pull/13825))
- Bump `commons-cli:commons-cli` from 1.7.0 to 1.8.0 ([#13840](https://github.com/opensearch-project/OpenSearch/pull/13840))
- Bump `org.apache.xmlbeans:xmlbeans` from 5.2.0 to 5.2.1 ([#13839](https://github.com/opensearch-project/OpenSearch/pull/13839))

### Changed
- Add ability for Boolean and date field queries to run when only doc_values are enabled ([#11650](https://github.com/opensearch-project/OpenSearch/pull/11650))
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/version.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opensearch = 3.0.0
lucene = 9.11.0-snapshot-fb97840
lucene = 9.11.0-snapshot-4be6531

bundled_jdk_vendor = adoptium
bundled_jdk = 21.0.3+9
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3c2361bd633374ae3814b175cc25ccf773f67026

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

2 changes: 1 addition & 1 deletion plugins/ingest-attachment/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ dependencies {
api "org.apache.poi:poi:${versions.poi}"
api "org.apache.poi:poi-ooxml-lite:${versions.poi}"
api "commons-codec:commons-codec:${versions.commonscodec}"
api 'org.apache.xmlbeans:xmlbeans:5.2.0'
api 'org.apache.xmlbeans:xmlbeans:5.2.1'
api 'org.apache.commons:commons-collections4:4.4'
// MS Office
api "org.apache.poi:poi-scratchpad:${versions.poi}"
Expand Down
1 change: 0 additions & 1 deletion plugins/ingest-attachment/licenses/xmlbeans-5.2.0.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions plugins/ingest-attachment/licenses/xmlbeans-5.2.1.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e16ddf17fe181c202b097e0dcc0ee2fed91cb7da
2 changes: 1 addition & 1 deletion plugins/repository-hdfs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ dependencies {
api 'com.google.code.gson:gson:2.11.0'
runtimeOnly "com.google.guava:guava:${versions.guava}"
api "commons-logging:commons-logging:${versions.commonslogging}"
api 'commons-cli:commons-cli:1.7.0'
api 'commons-cli:commons-cli:1.8.0'
api "commons-codec:commons-codec:${versions.commonscodec}"
api 'commons-collections:commons-collections:3.2.2'
api "org.apache.commons:commons-compress:${versions.commonscompress}"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
41a4bff12057eecb6daaf9c7f36c237815be3da1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9cc4e600289bf1171b47de74536bd34c476f85a8

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
class CustomFieldHighlighter extends FieldHighlighter {
private static final Passage[] EMPTY_PASSAGE = new Passage[0];

private static final Comparator<Passage> DEFAULT_PASSAGE_SORT_COMPARATOR = Comparator.comparingInt(Passage::getStartOffset);

private final Locale breakIteratorLocale;
private final int noMatchSize;
private String fieldValue;
Expand All @@ -66,7 +68,16 @@ class CustomFieldHighlighter extends FieldHighlighter {
PassageFormatter passageFormatter,
int noMatchSize
) {
super(field, fieldOffsetStrategy, breakIterator, passageScorer, maxPassages, maxNoHighlightPassages, passageFormatter);
super(
field,
fieldOffsetStrategy,
breakIterator,
passageScorer,
maxPassages,
maxNoHighlightPassages,
passageFormatter,
DEFAULT_PASSAGE_SORT_COMPARATOR
);
this.breakIteratorLocale = breakIteratorLocale;
this.noMatchSize = noMatchSize;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ private static BoundaryScanner getBoundaryScanner(Field field) {
return DEFAULT_WORD_BOUNDARY_SCANNER;
case CHARS:
if (fieldOptions.boundaryMaxScan() != SimpleBoundaryScanner.DEFAULT_MAX_SCAN
|| fieldOptions.boundaryChars() != SimpleBoundaryScanner.DEFAULT_BOUNDARY_CHARS) {
|| fieldOptions.boundaryChars() != HighlightBuilder.DEFAULT_BOUNDARY_CHARS) {
return new SimpleBoundaryScanner(fieldOptions.boundaryMaxScan(), fieldOptions.boundaryChars());
}
return DEFAULT_SIMPLE_BOUNDARY_SCANNER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ public class HighlightBuilder extends AbstractHighlighterBuilder<HighlightBuilde
/** the default closing tags when {@code tag_schema = "styled"} */
public static final String[] DEFAULT_STYLED_POST_TAGS = { "</em>" };

static final Character[] DEFAULT_BOUNDARY_CHARS = HighlightBuilder.convertCharArray(SimpleBoundaryScanner.DEFAULT_BOUNDARY_CHARS);

/**
* a {@link FieldOptions} with default settings
*/
Expand All @@ -124,7 +126,7 @@ public class HighlightBuilder extends AbstractHighlighterBuilder<HighlightBuilde
.numberOfFragments(DEFAULT_NUMBER_OF_FRAGMENTS)
.encoder(DEFAULT_ENCODER)
.boundaryMaxScan(SimpleBoundaryScanner.DEFAULT_MAX_SCAN)
.boundaryChars(SimpleBoundaryScanner.DEFAULT_BOUNDARY_CHARS)
.boundaryChars(DEFAULT_BOUNDARY_CHARS)
.boundaryScannerLocale(Locale.ROOT)
.noMatchSize(DEFAULT_NO_MATCH_SIZE)
.phraseLimit(DEFAULT_PHRASE_LIMIT)
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/hdfs-fixture/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ dependencies {
api "commons-codec:commons-codec:${versions.commonscodec}"
api "org.apache.logging.log4j:log4j-core:${versions.log4j}"
api "io.netty:netty-all:${versions.netty}"
api 'com.google.code.gson:gson:2.10.1'
api 'com.google.code.gson:gson:2.11.0'
api "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:${versions.jackson}"
api "com.fasterxml.jackson.core:jackson-databind:${versions.jackson_databind}"
api "com.fasterxml.woodstox:woodstox-core:${versions.woodstox}"
Expand Down

0 comments on commit 2f8d2e1

Please sign in to comment.