-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request opensearch-project#3 from hasnain2808/2.6-hasnain2808
2.6
- Loading branch information
Showing
10 changed files
with
279 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Build & Test Learning to Rank Plugin | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' # every night | ||
push: | ||
branches: | ||
- "*" | ||
- "feature/**" | ||
pull_request: | ||
branches: | ||
- "*" | ||
- "feature/**" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
Build-ltr-plugin: | ||
strategy: | ||
matrix: | ||
java: [11, 17] | ||
os: [ubuntu-latest, macos-latest] | ||
|
||
name: Build and Test Learning to Rank Plugin | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout LTR Plugin | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup Java ${{ matrix.java }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
|
||
- name: Run non-Windows | ||
if: ${{ matrix.os != 'windows-latest' }} | ||
run: | | ||
./gradlew build -Dopensearch.version=2.6.0 -Dskip.integtests=true \ | ||
-Djava.security.manager=allow -Dbuild.snapshot=false | ||
# - name: Upload Coverage Report | ||
# if: ${{matrix.os}} == 'ubuntu' | ||
# uses: codecov/codecov-action@v1 | ||
# with: | ||
# token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: Create Artifact Path | ||
run: | | ||
mkdir -p opensearch-ltr-builds | ||
cp -r ./build/distributions/*.zip opensearch-ltr-builds | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: opensearch-ltr-${{ matrix.os }} | ||
path: opensearch-ltr-builds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,2 @@ | ||
# Known issues | ||
|
||
## Cache deadlock | ||
|
||
All elasticsearch versions between 5.5.3 (included) and 6.3.0 (excluded) are affected by a [bug](https://github.com/elastic/elasticsearch/pull/30461) in the internal cache that may lead to a serious deadlock that could in theory leak all the search threads. | ||
A possible workaround is to configure the cache to avoid as much as possible its eviction mechanism by setting these options in your `elasticsearch.yml` file: | ||
|
||
``` | ||
ltr.caches.expire_after_write: 0 | ||
ltr.caches.expire_after_read: 0 | ||
ltr.caches.max_mem: 100mb | ||
``` | ||
|
||
elasticsearch versions 5.6.10, 6.3.0 and onwards should include the bugfix for this bug. | ||
|
||
2.6.0: yamlresttests fail; set -Dbuild.snapshot=false to build successfully |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
OpenSearch (https://opensearch.org/) | ||
Copyright OpenSearch Contributors |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.