Skip to content

Commit e902526

Browse files
committed
Merge branch 'main' into ehcache_disk_integ
Signed-off-by: Sagar Upadhyaya <[email protected]>
2 parents e6ae90e + 3125b94 commit e902526

File tree

314 files changed

+4865
-557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

314 files changed

+4865
-557
lines changed

.ci/bwcVersions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ BWC_VERSION:
2828
- "2.11.1"
2929
- "2.11.2"
3030
- "2.12.0"
31+
- "2.12.1"
3132
- "2.13.0"

.github/ISSUE_TEMPLATE/meta.yml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,36 @@ body:
2323
placeholder: Ex. - [ ] https://github.com/opensearch-project/security/issues/3888 Add views to the cluster metadata schema
2424
validations:
2525
required: true
26-
27-
28-
26+
- type: dropdown
27+
attributes:
28+
label: Related component
29+
description: Choose a specific OpenSearch component your project belongs to. If you are unsure of which component to select or if the component is not present, select "Other".
30+
multiple: false
31+
options:
32+
- # Empty first option to force selection
33+
- Build
34+
- Clients
35+
- Cluster Manager
36+
- Extensions
37+
- Indexing:Performance
38+
- Indexing:Replication
39+
- Indexing
40+
- Libraries
41+
- Other
42+
- Plugins
43+
- Search:Aggregations
44+
- Search:Performance
45+
- Search:Query Capabilities
46+
- Search:Query Insights
47+
- Search:Relevance
48+
- Search:Remote Search
49+
- Search:Resiliency
50+
- Search:Searchable Snapshots
51+
- Search
52+
- Storage:Durability
53+
- Storage:Performance
54+
- Storage:Remote
55+
- Storage:Snapshots
56+
- Storage
57+
validations:
58+
required: true

.github/workflows/check-compatibility.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
body-includes: 'Compatibility status:'
6262

6363
- name: Add comment on the PR
64-
uses: peter-evans/create-or-update-comment@v3
64+
uses: peter-evans/create-or-update-comment@v4
6565
with:
6666
comment-id: ${{ steps.fc.outputs.comment-id }}
6767
issue-number: ${{ github.event.number }}

.github/workflows/gradle-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878

7979
- name: Create Comment Success
8080
if: ${{ github.event_name == 'pull_request_target' && success() && env.result == 'SUCCESS' }}
81-
uses: peter-evans/create-or-update-comment@v3
81+
uses: peter-evans/create-or-update-comment@v4
8282
with:
8383
issue-number: ${{ env.pr_number }}
8484
body: |
@@ -101,7 +101,7 @@ jobs:
101101
102102
- name: Create Comment Flaky
103103
if: ${{ github.event_name == 'pull_request_target' && success() && env.result != 'SUCCESS' }}
104-
uses: peter-evans/create-or-update-comment@v3
104+
uses: peter-evans/create-or-update-comment@v4
105105
with:
106106
issue-number: ${{ env.pr_number }}
107107
body: |
@@ -111,7 +111,7 @@ jobs:
111111
112112
- name: Create Comment Failure
113113
if: ${{ github.event_name == 'pull_request_target' && failure() }}
114-
uses: peter-evans/create-or-update-comment@v3
114+
uses: peter-evans/create-or-update-comment@v4
115115
with:
116116
issue-number: ${{ env.pr_number }}
117117
body: |

.github/workflows/poc-checklist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
issues: write
1212
steps:
1313
- name: Add comment
14-
uses: peter-evans/create-or-update-comment@v3
14+
uses: peter-evans/create-or-update-comment@v4
1515
with:
1616
issue-number: ${{ github.event.issue.number }}
1717
body: |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: Verify Description Checklist
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: peternied/check-pull-request-description-checklist@v1
20+
- uses: peternied/check-pull-request-description-checklist@v1.1
2121
with:
2222
checklist-items: |
2323
New functionality includes testing.

.github/workflows/wrapper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v4
11-
- uses: gradle/wrapper-validation-action@v1
11+
- uses: gradle/wrapper-validation-action@v2

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1616
- Allow to pass the list settings through environment variables (like [], ["a", "b", "c"], ...) ([#10625](https://github.com/opensearch-project/OpenSearch/pull/10625))
1717
- [Admission Control] Integrate CPU AC with ResourceUsageCollector and add CPU AC stats to nodes/stats ([#10887](https://github.com/opensearch-project/OpenSearch/pull/10887))
1818
- [S3 Repository] Add setting to control connection count for sync client ([#12028](https://github.com/opensearch-project/OpenSearch/pull/12028))
19+
- Views, simplify data access and manipulation by providing a virtual layer over one or more indices ([#11957](https://github.com/opensearch-project/OpenSearch/pull/11957))
20+
- Add Remote Store Migration Experimental flag and allow mixed mode clusters under same ([#11986](https://github.com/opensearch-project/OpenSearch/pull/11986))
1921

2022
### Dependencies
2123
- Bump `log4j-core` from 2.18.0 to 2.19.0
@@ -48,6 +50,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4850
- Bump `org.eclipse.jgit` from 6.5.0 to 6.7.0 ([#10147](https://github.com/opensearch-project/OpenSearch/pull/10147))
4951
- Bump OpenTelemetry from 1.30.1 to 1.31.0 ([#10617](https://github.com/opensearch-project/OpenSearch/pull/10617))
5052
- Bump OpenTelemetry from 1.31.0 to 1.32.0 and OpenTelemetry Semconv from 1.21.0-alpha to 1.23.1-alpha ([#11305](https://github.com/opensearch-project/OpenSearch/pull/11305))
53+
- Bump `org.bouncycastle:bcprov-jdk15to18` to `org.bouncycastle:bcprov-jdk18on` version 1.77 ([#12317](https://github.com/opensearch-project/OpenSearch/pull/12317))
54+
- Bump `org.bouncycastle:bcmail-jdk15to18` to `org.bouncycastle:bcmail-jdk18on` version 1.77 ([#12317](https://github.com/opensearch-project/OpenSearch/pull/12317))
55+
- Bump `org.bouncycastle:bcpkix-jdk15to18` to `org.bouncycastle:bcpkix-jdk18on` version 1.77 ([#12317](https://github.com/opensearch-project/OpenSearch/pull/12317))
5156

5257
### Changed
5358
- [CCR] Add getHistoryOperationsFromTranslog method to fetch the history snapshot from translogs ([#3948](https://github.com/opensearch-project/OpenSearch/pull/3948))
@@ -87,6 +92,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
8792
- Update supported version for must_exist parameter in update aliases API ([#11872](https://github.com/opensearch-project/OpenSearch/pull/11872))
8893
- [Bug] Check phase name before SearchRequestOperationsListener onPhaseStart ([#12035](https://github.com/opensearch-project/OpenSearch/pull/12035))
8994
- Fix Span operation names generated from RestActions ([#12005](https://github.com/opensearch-project/OpenSearch/pull/12005))
95+
- Fix error in RemoteSegmentStoreDirectory when debug logging is enabled ([#12328](https://github.com/opensearch-project/OpenSearch/pull/12328))
9096

9197
### Security
9298

@@ -97,11 +103,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
97103
- Add community_id ingest processor ([#12121](https://github.com/opensearch-project/OpenSearch/pull/12121))
98104
- Introduce query level setting `index.query.max_nested_depth` limiting nested queries ([#3268](https://github.com/opensearch-project/OpenSearch/issues/3268)
99105
- Add toString methods to MultiSearchRequest, MultiGetRequest and CreateIndexRequest ([#12163](https://github.com/opensearch-project/OpenSearch/pull/12163))
106+
- Support for returning scores in matched queries ([#11626](https://github.com/opensearch-project/OpenSearch/pull/11626))
107+
- Add shard id property to SearchLookup for use in field types provided by plugins ([#1063](https://github.com/opensearch-project/OpenSearch/pull/1063))
100108

101109
### Dependencies
102110
- Bump `peter-evans/find-comment` from 2 to 3 ([#12288](https://github.com/opensearch-project/OpenSearch/pull/12288))
103111
- Bump `com.google.api.grpc:proto-google-common-protos` from 2.25.1 to 2.33.0 ([#12289](https://github.com/opensearch-project/OpenSearch/pull/12289))
104112
- Bump `com.squareup.okio:okio` from 3.7.0 to 3.8.0 ([#12290](https://github.com/opensearch-project/OpenSearch/pull/12290))
113+
- Bump `gradle/wrapper-validation-action` from 1 to 2 ([#12367](https://github.com/opensearch-project/OpenSearch/pull/12367))
114+
- Bump `netty` from 4.1.106.Final to 4.1.107.Final ([#12372](https://github.com/opensearch-project/OpenSearch/pull/12372))
115+
- Bump `opentelemetry` from 1.34.1 to 1.35.0 ([#12388](https://github.com/opensearch-project/OpenSearch/pull/12388))
116+
- Bump Apache Lucene from 9.9.2 to 9.10.0 ([#12392](https://github.com/opensearch-project/OpenSearch/pull/12392))
117+
- Bump `org.apache.logging.log4j:log4j-core` from 2.22.1 to 2.23.0 ([#12464](https://github.com/opensearch-project/OpenSearch/pull/12464))
118+
- Bump `antlr4` from 4.11.1 to 4.13.1 ([#12445](https://github.com/opensearch-project/OpenSearch/pull/12445))
119+
- Bump `com.netflix.nebula.ospackage-base` from 11.8.0 to 11.8.1 ([#12461](https://github.com/opensearch-project/OpenSearch/pull/12461))
120+
- Bump `peter-evans/create-or-update-comment` from 3 to 4 ([#12462](https://github.com/opensearch-project/OpenSearch/pull/12462))
105121

106122
### Changed
107123
- Allow composite aggregation to run under a parent filter aggregation ([#11499](https://github.com/opensearch-project/OpenSearch/pull/11499))
@@ -112,7 +128,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
112128

113129
### Fixed
114130
- Fix for deserilization bug in weighted round-robin metadata ([#11679](https://github.com/opensearch-project/OpenSearch/pull/11679))
131+
- [Revert] [Bug] Check phase name before SearchRequestOperationsListener onPhaseStart ([#12035](https://github.com/opensearch-project/OpenSearch/pull/12035))
132+
- Add support of special WrappingSearchAsyncActionPhase so the onPhaseStart() will always be followed by onPhaseEnd() within AbstractSearchAsyncAction ([#12293](https://github.com/opensearch-project/OpenSearch/pull/12293))
115133
- Add a system property to configure YamlParser codepoint limits ([#12298](https://github.com/opensearch-project/OpenSearch/pull/12298))
134+
- Prevent read beyond slice boundary in ByteArrayIndexInput ([#10481](https://github.com/opensearch-project/OpenSearch/issues/10481))
135+
- Fix the "highlight.max_analyzer_offset" request parameter with "plain" highlighter ([#10919](https://github.com/opensearch-project/OpenSearch/pull/10919))
136+
- Warn about deprecated and ignored index.mapper.dynamic index setting ([#11193](https://github.com/opensearch-project/OpenSearch/pull/11193))
137+
- Fix get task API does not refresh resource stats ([#11531](https://github.com/opensearch-project/OpenSearch/pull/11531))
116138

117139
### Security
118140

TRIAGING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Yes, there are several labels that are used to identify the 'state' of issues fi
6868
| Outcome | Label | Description | Canned Response |
6969
|--------------|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
7070
| Accepted | `-untriaged` | The issue has the details needed to be directed towards area owners. | "Thanks for filing this issue, please feel free to submit a pull request." |
71-
| Rejected | N/A | The issue will be closed with a reason for why it was rejected. Reasons might include lack of details, or being outside the scope of the project. | "Thanks for creating this issue; however, it isn't being accepted due to {REASON}. Please feel free to re-open after addressing the reason." |
71+
| Rejected | N/A | The issue will be closed with a reason for why it was rejected. Reasons might include lack of details, or being outside the scope of the project. | "Thanks for creating this issue; however, it isn't being accepted due to {REASON}. Please feel free to open a new issue after addressing the reason." |
7272
| Area Triage | `+{AREALABEL}` | OpenSearch has many different areas. If it's unclear whether an issue should be accepted, it will be labeled with the area and an owner will be @mentioned for follow-up. | "Thanks for creating this issue; the triage meeting was unsure if this issue should be accepted, @{PERSON} or someone from the area please review and then accept or reject this issue?" |
7373
| Transfer | N/A | If the issue applies to another repository within the OpenSearch Project, it will be transferred accordingly. | "@opensearch-project/triage, can you please transfer this issue to project {REPOSITORY}." Or, if someone at the meeting has permissions, they can start the transfer. |
7474

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,6 @@ subprojects {
516516
includeClasses.add("org.opensearch.remotestore.CreateRemoteIndexClusterDefaultDocRep")
517517
includeClasses.add("org.opensearch.remotestore.CreateRemoteIndexIT")
518518
includeClasses.add("org.opensearch.remotestore.CreateRemoteIndexTranslogDisabledIT")
519-
includeClasses.add("org.opensearch.remotestore.RemoteIndexPrimaryRelocationIT")
520519
includeClasses.add("org.opensearch.remotestore.RemoteStoreBackpressureIT")
521520
includeClasses.add("org.opensearch.remotestore.RemoteStoreIT")
522521
includeClasses.add("org.opensearch.remotestore.RemoteStoreRefreshListenerIT")

buildSrc/src/testKit/thirdPartyAudit/sample_jars/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repositories {
1717
}
1818

1919
dependencies {
20-
implementation "org.apache.logging.log4j:log4j-core:2.22.1"
20+
implementation "org.apache.logging.log4j:log4j-core:2.23.0"
2121
}
2222

2323
["0.0.1", "0.0.2"].forEach { v ->

buildSrc/version.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
opensearch = 3.0.0
2-
lucene = 9.9.2
2+
lucene = 9.11.0-snapshot-8a555eb
33

44
bundled_jdk_vendor = adoptium
55
bundled_jdk = 21.0.2+13
@@ -18,15 +18,15 @@ asm = 9.6
1818
jettison = 1.5.4
1919
woodstox = 6.4.0
2020
kotlin = 1.7.10
21-
antlr4 = 4.11.1
21+
antlr4 = 4.13.1
2222
guava = 32.1.1-jre
2323
protobuf = 3.22.3
2424
jakarta_annotation = 1.3.5
2525

2626
# when updating the JNA version, also update the version in buildSrc/build.gradle
2727
jna = 5.13.0
2828

29-
netty = 4.1.106.Final
29+
netty = 4.1.107.Final
3030
joda = 2.12.2
3131

3232
# project reactor
@@ -50,7 +50,7 @@ reactivestreams = 1.0.4
5050
# when updating this version, you need to ensure compatibility with:
5151
# - plugins/ingest-attachment (transitive dependency, check the upstream POM)
5252
# - distribution/tools/plugin-cli
53-
bouncycastle=1.76
53+
bouncycastle=1.77
5454
# test dependencies
5555
randomizedrunner = 2.7.1
5656
junit = 4.13.2
@@ -70,5 +70,5 @@ jzlib = 1.1.3
7070
resteasy = 6.2.4.Final
7171

7272
# opentelemetry dependencies
73-
opentelemetry = 1.34.1
73+
opentelemetry = 1.35.0
7474
opentelemetrysemconv = 1.23.1-alpha

distribution/packages/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ import java.util.regex.Pattern
6363
*/
6464

6565
plugins {
66-
id "com.netflix.nebula.ospackage-base" version "11.8.0"
66+
id "com.netflix.nebula.ospackage-base" version "11.8.1"
6767
}
6868

6969
void addProcessFilesTask(String type, boolean jdk) {

gradle/ide.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ if (System.getProperty('idea.active') == 'true') {
8282
runConfigurations {
8383
defaults(JUnit) {
8484
vmParameters = '-ea -Djava.locale.providers=SPI,COMPAT'
85+
if (BuildParams.runtimeJavaVersion > JavaVersion.VERSION_17) {
86+
vmParameters += ' -Djava.security.manager=allow'
87+
}
8588
}
8689
}
8790
copyright {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fe1cf5663be8bdb6aa757fd4101bc551684c90fb

libs/core/licenses/lucene-core-9.9.2.jar.sha1

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

libs/core/src/main/java/org/opensearch/Version.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ public class Version implements Comparable<Version>, ToXContentFragment {
9999
public static final Version V_2_11_1 = new Version(2110199, org.apache.lucene.util.Version.LUCENE_9_7_0);
100100
public static final Version V_2_11_2 = new Version(2110299, org.apache.lucene.util.Version.LUCENE_9_7_0);
101101
public static final Version V_2_12_0 = new Version(2120099, org.apache.lucene.util.Version.LUCENE_9_9_2);
102-
public static final Version V_2_13_0 = new Version(2130099, org.apache.lucene.util.Version.LUCENE_9_9_2);
103-
public static final Version V_3_0_0 = new Version(3000099, org.apache.lucene.util.Version.LUCENE_9_9_2);
102+
public static final Version V_2_12_1 = new Version(2120199, org.apache.lucene.util.Version.LUCENE_9_9_2);
103+
public static final Version V_2_13_0 = new Version(2130099, org.apache.lucene.util.Version.LUCENE_9_10_0);
104+
public static final Version V_3_0_0 = new Version(3000099, org.apache.lucene.util.Version.LUCENE_9_11_0);
104105
public static final Version CURRENT = V_3_0_0;
105106

106107
public static Version fromId(int id) {

libs/x-content/src/test/java/org/opensearch/common/xcontent/XContentParserTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ public class XContentParserTests extends OpenSearchTestCase {
8585
() -> randomAlphaOfLengthBetween(1, SmileXContent.DEFAULT_MAX_STRING_LEN),
8686
/* YAML parser limitation */
8787
XContentType.YAML,
88-
() -> randomRealisticUnicodeOfCodepointLengthBetween(1, YamlXContent.DEFAULT_CODEPOINT_LIMIT)
88+
/* use 75% of the limit, difficult to get the exact size of the content right */
89+
() -> randomRealisticUnicodeOfCodepointLengthBetween(1, (int) (YamlXContent.DEFAULT_CODEPOINT_LIMIT * 0.75))
8990
);
9091

9192
private static final Map<XContentType, Supplier<String>> OFF_LIMIT_GENERATORS = Map.of(

modules/lang-expression/licenses/antlr4-runtime-4.11.1.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+
17125bae1d965624e265ef49552f6465a2bfa307
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
00759eaff8f62b38ba66a05f26ab784c268908d3

modules/lang-expression/licenses/lucene-expressions-9.9.2.jar.sha1

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

modules/lang-expression/src/test/java/org/opensearch/script/expression/ExpressionFieldScriptTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void setUp() throws Exception {
7777
when(fieldData.load(any())).thenReturn(atomicFieldData);
7878

7979
service = new ExpressionScriptEngine();
80-
lookup = new SearchLookup(mapperService, (ignored, lookup) -> fieldData);
80+
lookup = new SearchLookup(mapperService, (ignored, lookup) -> fieldData, SearchLookup.UNKNOWN_SHARD_ID);
8181
}
8282

8383
private FieldScript.LeafFactory compile(String expression) {

modules/lang-expression/src/test/java/org/opensearch/script/expression/ExpressionNumberSortScriptTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void setUp() throws Exception {
7777
when(fieldData.load(any())).thenReturn(atomicFieldData);
7878

7979
service = new ExpressionScriptEngine();
80-
lookup = new SearchLookup(mapperService, (ignored, lookup) -> fieldData);
80+
lookup = new SearchLookup(mapperService, (ignored, lookup) -> fieldData, SearchLookup.UNKNOWN_SHARD_ID);
8181
}
8282

8383
private NumberSortScript.LeafFactory compile(String expression) {

modules/lang-expression/src/test/java/org/opensearch/script/expression/ExpressionTermsSetQueryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void setUp() throws Exception {
7777
when(fieldData.load(any())).thenReturn(atomicFieldData);
7878

7979
service = new ExpressionScriptEngine();
80-
lookup = new SearchLookup(mapperService, (ignored, lookup) -> fieldData);
80+
lookup = new SearchLookup(mapperService, (ignored, lookup) -> fieldData, SearchLookup.UNKNOWN_SHARD_ID);
8181
}
8282

8383
private TermsSetQueryScript.LeafFactory compile(String expression) {

modules/lang-painless/licenses/antlr4-runtime-4.11.1.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+
17125bae1d965624e265ef49552f6465a2bfa307

modules/lang-painless/src/main/java/org/opensearch/painless/antlr/PainlessLexer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
import org.antlr.v4.runtime.atn.PredictionContextCache;
4646
import org.antlr.v4.runtime.dfa.DFA;
4747

48-
@SuppressWarnings({ "all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue" })
48+
@SuppressWarnings({ "all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue", "this-escape" })
4949
abstract class PainlessLexer extends Lexer {
5050
static {
51-
RuntimeMetaData.checkVersion("4.11.1", RuntimeMetaData.VERSION);
51+
RuntimeMetaData.checkVersion("4.13.1", RuntimeMetaData.VERSION);
5252
}
5353

5454
protected static final DFA[] _decisionToDFA;

0 commit comments

Comments
 (0)