Skip to content

Commit e98bcba

Browse files
authored
Merge branch 'main' into arpadkiraly-remove-entsearch-updateforv9
2 parents 0482f14 + 04917c5 commit e98bcba

File tree

147 files changed

+5326
-5331
lines changed

Some content is hidden

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

147 files changed

+5326
-5331
lines changed

docs/changelog/123396.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 123396
2+
summary: Add initial grammar and planning for RRF (snapshot)
3+
area: ES|QL
4+
type: feature
5+
issues: []

docs/changelog/123757.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 123757
2+
summary: Fix concurrency issue in `ScriptSortBuilder`
3+
area: Search
4+
type: bug
5+
issues: []

docs/changelog/124394.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 124394
2+
summary: Avoid `NamedWritable` in block serialization
3+
area: ES|QL
4+
type: enhancement
5+
issues: []

docs/changelog/124424.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 124424
2+
summary: Lazy collection copying during node transform
3+
area: ES|QL
4+
type: bug
5+
issues: []

docs/changelog/124527.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 124527
2+
summary: Avoid potentially throwing calls to Task#getDescription in model download
3+
area: Machine Learning
4+
type: bug
5+
issues: []

libs/entitlement/bridge/src/main/java/org/elasticsearch/entitlement/bridge/EntitlementChecker.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
import java.nio.file.FileVisitOption;
6565
import java.nio.file.FileVisitor;
6666
import java.nio.file.LinkOption;
67+
import java.nio.file.NoSuchFileException;
6768
import java.nio.file.OpenOption;
6869
import java.nio.file.Path;
6970
import java.nio.file.WatchEvent;
@@ -1203,7 +1204,7 @@ void checkNewByteChannel(
12031204
void checkType(Class<?> callerClass, FileStore that);
12041205

12051206
// path
1206-
void checkPathToRealPath(Class<?> callerClass, Path that, LinkOption... options);
1207+
void checkPathToRealPath(Class<?> callerClass, Path that, LinkOption... options) throws NoSuchFileException;
12071208

12081209
void checkPathRegister(Class<?> callerClass, Path that, WatchService watcher, WatchEvent.Kind<?>... events);
12091210

libs/entitlement/qa/entitled-plugin/src/main/java/org/elasticsearch/entitlement/qa/entitled/EntitledActions.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,15 @@ public static Path createTempDirectoryForWrite() throws IOException {
6363
}
6464

6565
public static Path createTempSymbolicLink() throws IOException {
66-
return Files.createSymbolicLink(readDir().resolve("entitlements-link-" + random.nextLong()), readWriteDir());
66+
return createTempSymbolicLink(readWriteDir());
67+
}
68+
69+
public static Path createTempSymbolicLink(Path target) throws IOException {
70+
return Files.createSymbolicLink(readDir().resolve("entitlements-link-" + random.nextLong()), target);
71+
}
72+
73+
public static Path pathToRealPath(Path path) throws IOException {
74+
return path.toRealPath();
6775
}
6876

6977
public static Path createK8sLikeMount() throws IOException {

libs/entitlement/qa/entitlement-test-plugin/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ dependencies {
2424
compileOnly project(':server')
2525
compileOnly project(':libs:logging')
2626
compileOnly project(":libs:entitlement:qa:entitled-plugin")
27+
implementation project(":libs:entitlement")
2728
}
2829

2930
tasks.named("javadoc").configure {

libs/entitlement/qa/entitlement-test-plugin/src/main/java/module-info.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
requires org.elasticsearch.server;
1212
requires org.elasticsearch.base;
1313
requires org.elasticsearch.logging;
14+
requires org.elasticsearch.entitlement;
1415
requires org.elasticsearch.entitlement.qa.entitled;
1516

1617
// Modules we'll attempt to use in order to exercise entitlements

libs/entitlement/qa/entitlement-test-plugin/src/main/java/org/elasticsearch/entitlement/qa/test/EntitlementTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
package org.elasticsearch.entitlement.qa.test;
1111

12+
import org.elasticsearch.entitlement.runtime.api.NotEntitledException;
13+
1214
import java.lang.annotation.ElementType;
1315
import java.lang.annotation.Retention;
1416
import java.lang.annotation.RetentionPolicy;
@@ -27,5 +29,7 @@ enum ExpectedAccess {
2729

2830
ExpectedAccess expectedAccess();
2931

32+
Class<? extends Exception> expectedExceptionIfDenied() default NotEntitledException.class;
33+
3034
int fromJavaVersion() default -1;
3135
}

0 commit comments

Comments
 (0)