From 3d45b68f057c80c2d00544d182440f838f805fd4 Mon Sep 17 00:00:00 2001 From: Mohit Godwani Date: Thu, 1 Jun 2023 15:27:57 +0530 Subject: [PATCH 1/2] Reduce allocations for field path text during parsing Signed-off-by: Mohit Godwani --- .../src/main/java/org/opensearch/index/mapper/ContentPath.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/main/java/org/opensearch/index/mapper/ContentPath.java b/server/src/main/java/org/opensearch/index/mapper/ContentPath.java index 468551aeed287..8b0d5e24056d3 100644 --- a/server/src/main/java/org/opensearch/index/mapper/ContentPath.java +++ b/server/src/main/java/org/opensearch/index/mapper/ContentPath.java @@ -84,6 +84,9 @@ public void remove() { } public String pathAsText(String name) { + if (offset == index) { + return name; + } sb.setLength(0); for (int i = offset; i < index; i++) { sb.append(path[i]).append(DELIMITER); From 6b5ce059a175374eba881affdc48ffa7da9ccca9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Jun 2023 01:13:01 +0000 Subject: [PATCH 2/2] Bump com.sun.xml.bind:jaxb-impl in /plugins/discovery-azure-classic Bumps com.sun.xml.bind:jaxb-impl from 2.2.3-1 to 4.0.3. --- updated-dependencies: - dependency-name: com.sun.xml.bind:jaxb-impl dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- plugins/discovery-azure-classic/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/discovery-azure-classic/build.gradle b/plugins/discovery-azure-classic/build.gradle index 00953141b51e1..399af5bade3c0 100644 --- a/plugins/discovery-azure-classic/build.gradle +++ b/plugins/discovery-azure-classic/build.gradle @@ -60,7 +60,7 @@ dependencies { api "com.sun.jersey:jersey-core:${versions.jersey}" api "com.sun.jersey:jersey-json:${versions.jersey}" api "org.codehaus.jettison:jettison:${versions.jettison}" - api 'com.sun.xml.bind:jaxb-impl:2.2.3-1' + api 'com.sun.xml.bind:jaxb-impl:4.0.3' // HACK: javax.xml.bind was removed from default modules in java 9, so we pull the api in here, // and allowlist this hack in JarHell