From 8557bbab28a52106536f4f47fbe3f36a7f3951be Mon Sep 17 00:00:00 2001
From: Alpar Torok
Date: Thu, 28 Jun 2018 08:13:21 +0300
Subject: [PATCH] Upgrade gradle wrapper to 4.8 (#31525)
* Move to Gradle 4.8 RC1
* Use latest version of plugin
The current does not work with Gradle 4.8 RC1
* Switch to Gradle GA
* Add and configure build compare plugin
* add work-around for https://github.com/gradle/gradle/issues/5692
* work around https://github.com/gradle/gradle/issues/5696
* Make use of Gradle build compare with reference project
* Make the manifest more compare friendly
* Clear the manifest in compare friendly mode
* Remove animalsniffer from buildscript classpath
* Fix javadoc errors
* Fix doc issues
* reference Gradle issues in comments
* Conditionally configure build compare
* Fix some more doclint issues
* fix typo in build script
* Add sanity check to make sure the test task was replaced
Relates to #31324. It seems like Gradle has an inconsistent behavior and
the taks is not always replaced.
* Include number of non conforming tasks in the exception.
* No longer replace test task, create implicit instead
Closes #31324. The issue has full context in comments.
With this change the `test` task becomes nothing more than an alias for `utest`.
Some of the stand alone tests that had a `test` task now have `integTest`, and a
few of them that used to have `integTest` to run multiple tests now only
have `check`.
This will also help separarate unit/micro tests from integration tests.
* Revert "No longer replace test task, create implicit instead"
This reverts commit f1ebaf7d93e4a0a19e751109bf620477dc35023c.
* Fix replacement of the test task
Based on information from gradle/gradle#5730 replace the task taking
into account the task providres.
Closes #31324.
* Only apply build comapare plugin if needed
* Make sure test runs before integTest
* Fix doclint aftter merge
* PR review comments
* Switch to Gradle 4.8.1 and remove workaround
* PR review comments
* Consolidate task ordering
---
benchmarks/build.gradle | 2 +-
build.gradle | 28 ++++++++
buildSrc/build.gradle | 1 -
.../junit4/RandomizedTestingPlugin.groovy | 63 +++++++++++++-----
.../elasticsearch/gradle/BuildPlugin.groovy | 26 +++++---
.../org/elasticsearch/client/RestClient.java | 4 +-
.../client/RestClientSingleHostTests.java | 2 +-
.../elasticsearch/client/RestClientTests.java | 2 +-
gradle/wrapper/gradle-wrapper.jar | Bin 54329 -> 54417 bytes
gradle/wrapper/gradle-wrapper.properties | 6 +-
.../org/elasticsearch/search/SearchHit.java | 4 +-
.../bucket/composite/CompositeAggregator.java | 2 +-
.../CompositeValuesCollectorQueue.java | 2 +-
.../SingleDimensionValuesSource.java | 8 +--
.../common/xcontent/BaseXContentTestCase.java | 2 +-
.../index/mapper/package-info.java | 4 +-
.../aggregations/bucket/DateHistogramIT.java | 2 -
.../index/shard/IndexShardTestCase.java | 2 +-
.../test/AbstractQueryTestCase.java | 1 -
.../license/ExpirationCallback.java | 6 +-
.../xpack/core/ssl/DerParser.java | 9 ++-
.../xpack/core/ssl/PemUtils.java | 2 -
.../core/ssl/RestrictedTrustManager.java | 2 +-
.../xpack/rollup/job/RollupIndexer.java | 3 +-
.../support/RestorableContextClassLoader.java | 2 +-
.../security/authc/saml/SamlTestCase.java | 5 +-
.../xpack/sql/expression/predicate/Range.java | 4 +-
.../upgrades/IndexAuditUpgradeIT.java | 1 -
28 files changed, 124 insertions(+), 71 deletions(-)
diff --git a/benchmarks/build.gradle b/benchmarks/build.gradle
index bd80deda89c6f..e7ee5a059ab37 100644
--- a/benchmarks/build.gradle
+++ b/benchmarks/build.gradle
@@ -30,7 +30,7 @@ buildscript {
apply plugin: 'elasticsearch.build'
-// order of this seciont matters, see: https://github.com/johnrengelman/shadow/issues/336
+// order of this section matters, see: https://github.com/johnrengelman/shadow/issues/336
apply plugin: 'application' // have the shadow plugin provide the runShadow task
mainClassName = 'org.openjdk.jmh.Main'
apply plugin: 'com.github.johnrengelman.shadow' // build an uberjar with all benchmarks
diff --git a/build.gradle b/build.gradle
index 9bb08cf29dbbc..862943b50f5eb 100644
--- a/build.gradle
+++ b/build.gradle
@@ -326,6 +326,9 @@ gradle.projectsEvaluated {
// :test:framework:test cannot run before and after :server:test
return
}
+ if (tasks.findByPath('test') != null && tasks.findByPath('integTest') != null) {
+ integTest.mustRunAfter test
+ }
configurations.all { Configuration configuration ->
/*
* The featureAwarePlugin configuration has a dependency on x-pack:plugin:core and x-pack:plugin:core has a dependency on the
@@ -575,3 +578,28 @@ gradle.projectsEvaluated {
}
}
}
+
+if (System.properties.get("build.compare") != null) {
+ apply plugin: 'compare-gradle-builds'
+ compareGradleBuilds {
+ ext.referenceProject = System.properties.get("build.compare")
+ doFirst {
+ if (file(referenceProject).exists() == false) {
+ throw new GradleException(
+ "Use git worktree to check out a version to compare against to ../elasticsearch_build_reference"
+ )
+ }
+ }
+ sourceBuild {
+ gradleVersion = "4.7" // does not default to gradle weapper of project dir, but current version
+ projectDir = referenceProject
+ tasks = ["clean", "assemble"]
+ arguments = ["-Dbuild.compare_friendly=true"]
+ }
+ targetBuild {
+ tasks = ["clean", "assemble"]
+ // use -Dorg.gradle.java.home= to alter jdk versions
+ arguments = ["-Dbuild.compare_friendly=true"]
+ }
+ }
+}
diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle
index 5256968b6ca3e..9c139eee2152a 100644
--- a/buildSrc/build.gradle
+++ b/buildSrc/build.gradle
@@ -106,7 +106,6 @@ GradleVersion logVersion = GradleVersion.current() > GradleVersion.version('4.3'
dependencies {
compileOnly "org.gradle:gradle-logging:${logVersion.getVersion()}"
- compile 'ru.vyarus:gradle-animalsniffer-plugin:1.2.0' // Gradle 2.14 requires a version > 1.0.1
}
/*****************************************************************************
diff --git a/buildSrc/src/main/groovy/com/carrotsearch/gradle/junit4/RandomizedTestingPlugin.groovy b/buildSrc/src/main/groovy/com/carrotsearch/gradle/junit4/RandomizedTestingPlugin.groovy
index c375f773bf9b5..809aa4fb57ea4 100644
--- a/buildSrc/src/main/groovy/com/carrotsearch/gradle/junit4/RandomizedTestingPlugin.groovy
+++ b/buildSrc/src/main/groovy/com/carrotsearch/gradle/junit4/RandomizedTestingPlugin.groovy
@@ -1,20 +1,44 @@
package com.carrotsearch.gradle.junit4
import com.carrotsearch.ant.tasks.junit4.JUnit4
-import org.gradle.api.AntBuilder
+import org.gradle.api.GradleException
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.Task
+import org.gradle.api.UnknownTaskException
import org.gradle.api.plugins.JavaBasePlugin
import org.gradle.api.tasks.TaskContainer
+import org.gradle.api.tasks.TaskProvider
import org.gradle.api.tasks.testing.Test
+import java.util.concurrent.atomic.AtomicBoolean
+
class RandomizedTestingPlugin implements Plugin {
+ static private AtomicBoolean sanityCheckConfigured = new AtomicBoolean(false)
+
void apply(Project project) {
setupSeed(project)
replaceTestTask(project.tasks)
configureAnt(project.ant)
+ configureSanityCheck(project)
+ }
+
+ private static void configureSanityCheck(Project project) {
+ // Check the task graph to confirm tasks were indeed replaced
+ // https://github.com/elastic/elasticsearch/issues/31324
+ if (sanityCheckConfigured.getAndSet(true) == false) {
+ project.rootProject.getGradle().getTaskGraph().whenReady {
+ List nonConforming = project.getGradle().getTaskGraph().allTasks
+ .findAll { it.name == "test" }
+ .findAll { (it instanceof RandomizedTestingTask) == false}
+ .collect { "${it.path} -> ${it.class}" }
+ if (nonConforming.isEmpty() == false) {
+ throw new GradleException("Found the ${nonConforming.size()} `test` tasks:" +
+ "\n ${nonConforming.join("\n ")}")
+ }
+ }
+ }
}
/**
@@ -45,29 +69,32 @@ class RandomizedTestingPlugin implements Plugin {
}
static void replaceTestTask(TaskContainer tasks) {
- Test oldTestTask = tasks.findByPath('test')
- if (oldTestTask == null) {
+ // Gradle 4.8 introduced lazy tasks, thus we deal both with the `test` task as well as it's provider
+ // https://github.com/gradle/gradle/issues/5730#issuecomment-398822153
+ // since we can't be sure if the task was ever realized, we remove both the provider and the task
+ TaskProvider oldTestProvider
+ try {
+ oldTestProvider = tasks.getByNameLater(Test, 'test')
+ } catch (UnknownTaskException unused) {
// no test task, ok, user will use testing task on their own
return
}
- tasks.remove(oldTestTask)
+ Test oldTestTask = oldTestProvider.get()
- Map properties = [
- name: 'test',
- type: RandomizedTestingTask,
- dependsOn: oldTestTask.dependsOn,
- group: JavaBasePlugin.VERIFICATION_GROUP,
- description: 'Runs unit tests with the randomized testing framework'
- ]
- RandomizedTestingTask newTestTask = tasks.create(properties)
- newTestTask.classpath = oldTestTask.classpath
- newTestTask.testClassesDir = oldTestTask.project.sourceSets.test.output.classesDir
- // since gradle 4.5, tasks immutable dependencies are "hidden" (do not show up in dependsOn)
- // so we must explicitly add a dependency on generating the test classpath
- newTestTask.dependsOn('testClasses')
+ // we still have to use replace here despite the remove above because the task container knows about the provider
+ // by the same name
+ RandomizedTestingTask newTestTask = tasks.replace('test', RandomizedTestingTask)
+ newTestTask.configure{
+ group = JavaBasePlugin.VERIFICATION_GROUP
+ description = 'Runs unit tests with the randomized testing framework'
+ dependsOn oldTestTask.dependsOn, 'testClasses'
+ classpath = oldTestTask.classpath
+ testClassesDir = oldTestTask.project.sourceSets.test.output.classesDir
+ }
// hack so check task depends on custom test
- Task checkTask = tasks.findByPath('check')
+ Task checkTask = tasks.getByName('check')
+ checkTask.dependsOn.remove(oldTestProvider)
checkTask.dependsOn.remove(oldTestTask)
checkTask.dependsOn.add(newTestTask)
}
diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy
index eb3cd1dc8c6da..3363c8534a40e 100644
--- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy
+++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy
@@ -348,7 +348,9 @@ class BuildPlugin implements Plugin {
// just a self contained test-fixture configuration, likely transitive and hellacious
return
}
- configuration.resolutionStrategy.failOnVersionConflict()
+ configuration.resolutionStrategy {
+ failOnVersionConflict()
+ }
})
// force all dependencies added directly to compile/testCompile to be non-transitive, except for ES itself
@@ -475,13 +477,17 @@ class BuildPlugin implements Plugin {
}
}
- project.tasks.withType(GenerateMavenPom.class) { GenerateMavenPom t ->
- // place the pom next to the jar it is for
- t.destination = new File(project.buildDir, "distributions/${project.archivesBaseName}-${project.version}.pom")
- // build poms with assemble (if the assemble task exists)
- Task assemble = project.tasks.findByName('assemble')
- if (assemble) {
- assemble.dependsOn(t)
+ // Work around Gradle 4.8 issue until we `enableFeaturePreview('STABLE_PUBLISHING')`
+ // https://github.com/gradle/gradle/issues/5696#issuecomment-396965185
+ project.getGradle().getTaskGraph().whenReady {
+ project.tasks.withType(GenerateMavenPom.class) { GenerateMavenPom t ->
+ // place the pom next to the jar it is for
+ t.destination = new File(project.buildDir, "distributions/${project.archivesBaseName}-${project.version}.pom")
+ // build poms with assemble (if the assemble task exists)
+ Task assemble = project.tasks.findByName('assemble')
+ if (assemble) {
+ assemble.dependsOn(t)
+ }
}
}
}
@@ -625,6 +631,10 @@ class BuildPlugin implements Plugin {
jarTask.manifest.attributes('Change': shortHash)
}
}
+ // Force manifest entries that change by nature to a constant to be able to compare builds more effectively
+ if (System.properties.getProperty("build.compare_friendly", "false") == "true") {
+ jarTask.manifest.getAttributes().clear()
+ }
}
// add license/notice files
project.afterEvaluate {
diff --git a/client/rest/src/main/java/org/elasticsearch/client/RestClient.java b/client/rest/src/main/java/org/elasticsearch/client/RestClient.java
index 77c11db455e47..d07e9e3c1cab7 100644
--- a/client/rest/src/main/java/org/elasticsearch/client/RestClient.java
+++ b/client/rest/src/main/java/org/elasticsearch/client/RestClient.java
@@ -1010,8 +1010,8 @@ public int compareTo(DeadNode rhs) {
}
/**
- * Adapts an Iterator
into an
- * Iterator
.
+ * Adapts an Iterator<DeadNodeAndRevival>
into an
+ * Iterator<Node>
.
*/
private static class DeadNodeIteratorAdapter implements Iterator {
private final Iterator itr;
diff --git a/client/rest/src/test/java/org/elasticsearch/client/RestClientSingleHostTests.java b/client/rest/src/test/java/org/elasticsearch/client/RestClientSingleHostTests.java
index 6b7725666d42d..cb326f4a24c8d 100644
--- a/client/rest/src/test/java/org/elasticsearch/client/RestClientSingleHostTests.java
+++ b/client/rest/src/test/java/org/elasticsearch/client/RestClientSingleHostTests.java
@@ -314,7 +314,7 @@ public void testBody() throws IOException {
}
/**
- * @deprecated will remove method in 7.0 but needs tests until then. Replaced by {@link RequestTests#testAddHeaders()}.
+ * @deprecated will remove method in 7.0 but needs tests until then. Replaced by {@link RequestTests}.
*/
@Deprecated
public void tesPerformRequestOldStyleNullHeaders() throws IOException {
diff --git a/client/rest/src/test/java/org/elasticsearch/client/RestClientTests.java b/client/rest/src/test/java/org/elasticsearch/client/RestClientTests.java
index 030c2fca6272a..30289ec84c9df 100644
--- a/client/rest/src/test/java/org/elasticsearch/client/RestClientTests.java
+++ b/client/rest/src/test/java/org/elasticsearch/client/RestClientTests.java
@@ -141,7 +141,7 @@ public void onFailure(Exception exception) {
}
/**
- * @deprecated will remove method in 7.0 but needs tests until then. Replaced by {@link RequestTests#testAddHeader()}.
+ * @deprecated will remove method in 7.0 but needs tests until then. Replaced by {@link RequestTests}.
*/
@Deprecated
public void testPerformOldStyleAsyncWithNullHeaders() throws Exception {
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
index a5fe1cb94b9ee5ce57e6113458225bcba12d83e3..758de960ec7947253b058ff79c88ce51f3abe08a 100644
GIT binary patch
delta 7592
zcmY*ecQjnzz8@peYXmVm5q0!#bWtLR=)FZ54AC>%h#Jw2E_yFfeuyr58AcbqhUlH>
z@^ZcV?pyc#b3Sc<*E)Njwaz}@-B^qnSArQUg8SX!ouVuN0MLz-(ZV&@qB?OscEte1
zf~spRz__O2L00nE0Kh(yj++bNrL9MPul~y=Y~Zn+VX;=W8Z3BV^c};~*dvm(QDILU
zK}H2OduJPNB)-T+wAaB=vGdmvdvKfm&P{lXJ(NYBZLV~xw9dY4ir#q8?2hubr@-Im
z;5C0L0qKyT*k-2R@7Ws(AB1g|0MFgc>?Xjm(=0igQVjYU8m)>`Ijiqz
z_+~&aet!BHOh9wxYQ?7fhbZpD_|t;p0`?xhXf2m7y{XTJKd&>!wFrcI4a9r(9n-bw
zJwJ5lxjDwryv!z`cj^f{TGjP^M4$M}iqF@$JEr>>*Oxz9sb^MHiUn;28tysTekMiM
zWovb5Ok;A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N2+0fkfkURq;@w5sE_qmqC>`FVIvLt
zNRZ0dB=~xKc0gtrQZ|?d
zX*4JcY;<~nEp5aPnb|=Qkm~(|bmL5bq#fb_GI;)_%t*%}J|KbD13dQxAs7BSIo=PH
z6Ab|-`8_~{AN5~{1X+&;0p~tGNWak@6ok=))EqSjW~Khej86Smo&*UT0|7sLd5~qt
zB!DBC53nJV?(a|zAYtxb%7i2w=LPQ8AggQGkhbF-z^>-MkO}#}4@!a@8wUXg+K@4A
skcX)dn*d>CAhjoKFy14ZC-|xV^M?Li)o1^;vK>gANlq-9u78RD11A({R{#J2
delta 7527
zcmZ9R1x#F9_qSnicXulc?yf}(6dk0vyZc~+d$GaY-3n72TD-Wng<{36#a;jXnwxvy
zd?z`{^Q_;>$vQhHImzBB)d(F`2+2Zdw?a0bq~PG-Kq=DNDB0&8XCCly$>bke%{kEW
zYe{bxkm2A2p|qUrkN`qGvS9UV-f^1{Tmv^lyIF-rb}Woy4YW{nG-ugNX^Pi~mfp=`
zPROtLj()Lc)?7ukwK~-5mOJ!-;(e=AnFyVa>VMqFzl40c*SoDc5o*a@b;>~91z+ch
ztOsV^1g?v%i+~^28+(z>D4ts}4Nu!KY0@@ic}aOyN0Zg*A@O0ze6fgX4lJ)y8u7V^f&}%mO4uz`^vA6Lw-Qo5uGH1}vU$a+^|3w-WK=eF_MX>O$GLV)wcAcp
zh*T6(L7XBKYUMaiM49U?hWO;vi-q?5hn!~l&|9-5j>yVW53HH{!By|ludBatTh1%I
zB<5SDlSLkLXE_TG{URmGqsQ8OhUpwH)igC2r{Pupf>5+__=jg$-USeGmSt)gWkvYZ
z-kZ4kYsYKeP;19vcOcmWSx
*
* -------------------------------------------------
* |Bit 8|Bit 7|Bit 6|Bit 5|Bit 4|Bit 3|Bit 2|Bit 1|
@@ -192,7 +193,6 @@ public boolean isConstructed() {
* For constructed field, return a parser for its content.
*
* @return A parser for the construct.
- * @throws IOException
*/
public DerParser getParser() throws IOException {
if (!isConstructed())
@@ -205,7 +205,6 @@ public DerParser getParser() throws IOException {
* Get the value as integer
*
* @return BigInteger
- * @throws IOException
*/
public BigInteger getInteger() throws IOException {
if (type != DerParser.INTEGER)
diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ssl/PemUtils.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ssl/PemUtils.java
index 9ff44d0135ffa..d959c017e0a35 100644
--- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ssl/PemUtils.java
+++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ssl/PemUtils.java
@@ -108,7 +108,6 @@ public static PrivateKey readPrivateKey(Path keyPath, Supplier passwordS
* Removes the EC Headers that OpenSSL adds to EC private keys as the information in them
* is redundant
*
- * @param bReader
* @throws IOException if the EC Parameter footer is missing
*/
private static BufferedReader removeECHeaders(BufferedReader bReader) throws IOException {
@@ -133,7 +132,6 @@ private static BufferedReader removeECHeaders(BufferedReader bReader) throws IOE
* Removes the DSA Params Headers that OpenSSL adds to DSA private keys as the information in them
* is redundant
*
- * @param bReader
* @throws IOException if the EC Parameter footer is missing
*/
private static BufferedReader removeDsaHeaders(BufferedReader bReader) throws IOException {
diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ssl/RestrictedTrustManager.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ssl/RestrictedTrustManager.java
index c49692dda98c1..8a82694785a28 100644
--- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ssl/RestrictedTrustManager.java
+++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ssl/RestrictedTrustManager.java
@@ -132,7 +132,7 @@ private Set readCommonNames(X509Certificate certificate) throws Certific
* Decodes the otherName CN from the certificate
*
* @param value The DER Encoded Subject Alternative Name
- * @param certificate
+ * @param certificate The certificate
* @return the CN or null if it could not be parsed
*/
private String decodeDerValue(byte[] value, X509Certificate certificate) {
diff --git a/x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/rollup/job/RollupIndexer.java b/x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/rollup/job/RollupIndexer.java
index 5abd701ce4b2e..a07f1e7d32e7c 100644
--- a/x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/rollup/job/RollupIndexer.java
+++ b/x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/rollup/job/RollupIndexer.java
@@ -405,7 +405,8 @@ private CompositeAggregationBuilder createCompositeBuilder(RollupJobConfig confi
}
/**
- * Creates the range query that limits the search to documents that appear before the maximum allowed time (see {@link this#maxBoundary}
+ * Creates the range query that limits the search to documents that appear before the maximum allowed time
+ * (see {@link #maxBoundary}
* and on or after the last processed time.
* @param position The current position of the pagination
* @return The range query to execute
diff --git a/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/support/RestorableContextClassLoader.java b/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/support/RestorableContextClassLoader.java
index f2e36ebf98273..95c68eab9c28a 100644
--- a/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/support/RestorableContextClassLoader.java
+++ b/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/support/RestorableContextClassLoader.java
@@ -12,7 +12,7 @@
import org.elasticsearch.SpecialPermission;
/**
- * A try-with-resource compatible object for configuring a thread {@link Thread#contextClassLoader}.
+ * A try-with-resource compatible object for configuring a thread {@link Thread#getContextClassLoader()}.
* On construction this class will set the current (or provided) thread's context class loader.
* On {@link #close()}, it restores the previous value of the class loader.
*/
diff --git a/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/saml/SamlTestCase.java b/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/saml/SamlTestCase.java
index 51a6d8732a5b3..adaba34a73aa3 100644
--- a/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/saml/SamlTestCase.java
+++ b/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/saml/SamlTestCase.java
@@ -64,7 +64,6 @@ public static void restoreLocale() throws Exception {
* Generates signed certificate and associates with generated key pair.
* @see #readRandomKeyPair(String)
* @return X509Certificate a signed certificate, it's PrivateKey {@link Tuple}
- * @throws Exception
*/
protected static Tuple readRandomKeyPair() throws Exception {
return readRandomKeyPair("RSA");
@@ -73,9 +72,7 @@ protected static Tuple readRandomKeyPair() throws E
/**
* Reads a key pair and associated certificate for given algorithm and key length
* For testing, for "EC" algorithm 256 key size is used, others use 2048 as default.
- * @param algorithm
- * @return X509Certificate a signed certificate, it's PrivateKey {@link Tuple}
- * @throws Exception
+ * @return X509Certificate a signed certificate, it's PrivateKey
*/
protected static Tuple readRandomKeyPair(String algorithm) throws Exception {
int keySize;
diff --git a/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/expression/predicate/Range.java b/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/expression/predicate/Range.java
index 54d541ab406b7..c17e9634492a1 100644
--- a/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/expression/predicate/Range.java
+++ b/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/expression/predicate/Range.java
@@ -87,7 +87,7 @@ public Object fold() {
}
/**
- * Check whether the boundaries are invalid ( upper < lower) or not.
+ * Check whether the boundaries are invalid ( upper < lower) or not.
* If they do, the value does not have to be evaluate.
*/
private boolean areBoundariesInvalid() {
@@ -139,4 +139,4 @@ public String toString() {
sb.append(upper);
return sb.toString();
}
-}
\ No newline at end of file
+}
diff --git a/x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/IndexAuditUpgradeIT.java b/x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/IndexAuditUpgradeIT.java
index 7c81a7141a991..92a8c3d2f830f 100644
--- a/x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/IndexAuditUpgradeIT.java
+++ b/x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/IndexAuditUpgradeIT.java
@@ -87,7 +87,6 @@ private void assertNumUniqueNodeNameBuckets(int numBuckets) throws Exception {
/**
* Has the master been upgraded to the new version?
- * @throws IOException
*/
private boolean masterIsNewVersion() throws IOException {
Map, ?> map = entityAsMap(client().performRequest("GET", "/_nodes/_master"));