Skip to content

Commit c1d2f7d

Browse files
committed
Small fixes
1 parent 241ab55 commit c1d2f7d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

x-pack/plugin/gpu/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ dependencies {
2525
testImplementation(testArtifact(project(':server')))
2626
clusterModules project(xpackModule('gpu'))
2727
}
28-
tasks.named("yamlRestTest") {
29-
usesDefaultDistribution("uses gpu plugin")
30-
}
28+
3129
artifacts {
3230
restXpackTests(new File(projectDir, "src/yamlRestTest/resources/rest-api-spec/test"))
3331
}

x-pack/plugin/gpu/src/main/java/org/elasticsearch/xpack/gpu/GPUSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static CuVSResources cuVSResourcesOrNull(boolean logError) {
4646
if (t instanceof ExceptionInInitializerError ex) {
4747
t = ex.getCause();
4848
}
49-
LOG.warn("Exception occurred during creation of cuvs resources. " + t);
49+
LOG.warn("Exception occurred during creation of cuvs resources", t);
5050
}
5151
}
5252
return null;

x-pack/plugin/gpu/src/main/java/org/elasticsearch/xpack/gpu/codec/GPUToHNSWVectorsWriter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ private HnswGraph writeGraph(CuVSMatrix cagraGraph, int[][] levelNodeOffsets) th
297297
int maxGraphDegree = (int) cagraGraph.columns();
298298
int[] neighbors = new int[maxGraphDegree];
299299

300+
levelNodeOffsets[0] = new int[maxElementCount];
300301
// write the cagra graph to the Lucene vectorIndex file
301302
int[] scratch = new int[maxGraphDegree];
302303
for (int node = 0; node < maxElementCount; node++) {

0 commit comments

Comments
 (0)