Merge pull request #538 from DataDog/tyler/increase-retry

Add additional retries for ES tests.
This commit is contained in:
Tyler Benson 2018-10-19 09:33:55 +10:00 committed by GitHub
commit 6ad309cec0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 20 additions and 24 deletions

View File

@ -18,7 +18,7 @@ import org.elasticsearch.node.Node
import org.elasticsearch.transport.Netty4Plugin
import spock.lang.Shared
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch6RestClientTest extends AgentTestRunner {
@Shared
int httpPort

View File

@ -21,7 +21,7 @@ import spock.lang.Shared
import static org.elasticsearch.cluster.ClusterName.CLUSTER_NAME_SETTING
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch5RestClientTest extends AgentTestRunner {
@Shared
int httpPort

View File

@ -14,7 +14,7 @@ import spock.lang.Shared
import static datadog.trace.agent.test.TestUtils.runUnderTrace
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch2NodeClientTest extends AgentTestRunner {
public static final long TIMEOUT = 10000; // 10 seconds

View File

@ -17,7 +17,7 @@ import spock.lang.Shared
import static datadog.trace.agent.test.TestUtils.runUnderTrace
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch2TransportClientTest extends AgentTestRunner {
public static final long TIMEOUT = 10000; // 10 seconds

View File

@ -11,7 +11,7 @@ import spock.lang.Shared
import static datadog.trace.agent.test.TestUtils.runUnderTrace
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
@Shared
ApplicationContext applicationContext = new AnnotationConfigApplicationContext(Config)

View File

@ -23,7 +23,7 @@ import spock.lang.Shared
import java.util.concurrent.atomic.AtomicLong
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
public static final long TIMEOUT = 10000; // 10 seconds
@ -68,7 +68,6 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
}
}
@RetryOnFailure
def "test elasticsearch error"() {
when:
template.refresh(indexName)

View File

@ -14,7 +14,7 @@ import spock.lang.Shared
import static datadog.trace.agent.test.TestUtils.runUnderTrace
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch2NodeClientTest extends AgentTestRunner {
public static final long TIMEOUT = 10000; // 10 seconds

View File

@ -17,7 +17,7 @@ import spock.lang.Shared
import static datadog.trace.agent.test.TestUtils.runUnderTrace
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch2TransportClientTest extends AgentTestRunner {
public static final long TIMEOUT = 10000; // 10 seconds

View File

@ -11,7 +11,7 @@ import spock.lang.Shared
import static datadog.trace.agent.test.TestUtils.runUnderTrace
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
@Shared
ApplicationContext applicationContext = new AnnotationConfigApplicationContext(Config)

View File

@ -23,7 +23,7 @@ import spock.lang.Shared
import java.util.concurrent.atomic.AtomicLong
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
public static final long TIMEOUT = 10000; // 10 seconds
@ -68,7 +68,6 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
}
}
@RetryOnFailure
def "test elasticsearch error"() {
when:
template.refresh(indexName)

View File

@ -17,7 +17,7 @@ import spock.lang.Shared
import static datadog.trace.agent.test.TestUtils.runUnderTrace
import static org.elasticsearch.cluster.ClusterName.CLUSTER_NAME_SETTING
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch53NodeClientTest extends AgentTestRunner {
public static final long TIMEOUT = 10000; // 10 seconds

View File

@ -21,7 +21,7 @@ import spock.lang.Shared
import static datadog.trace.agent.test.TestUtils.runUnderTrace
import static org.elasticsearch.cluster.ClusterName.CLUSTER_NAME_SETTING
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch53TransportClientTest extends AgentTestRunner {
public static final long TIMEOUT = 10000; // 10 seconds

View File

@ -11,7 +11,7 @@ import spock.lang.Shared
import static datadog.trace.agent.test.TestUtils.runUnderTrace
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
@Shared
ApplicationContext applicationContext = new AnnotationConfigApplicationContext(Config)

View File

@ -28,7 +28,7 @@ import java.util.concurrent.atomic.AtomicLong
import static datadog.trace.agent.test.TestUtils.runUnderTrace
import static org.elasticsearch.cluster.ClusterName.CLUSTER_NAME_SETTING
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
public static final long TIMEOUT = 10000; // 10 seconds
@ -82,7 +82,6 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
}
}
@RetryOnFailure
def "test elasticsearch error"() {
when:
template.refresh(indexName)

View File

@ -17,7 +17,7 @@ import spock.lang.Shared
import static datadog.trace.agent.test.TestUtils.runUnderTrace
import static org.elasticsearch.cluster.ClusterName.CLUSTER_NAME_SETTING
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch5NodeClientTest extends AgentTestRunner {
public static final long TIMEOUT = 10000; // 10 seconds

View File

@ -21,7 +21,7 @@ import spock.lang.Shared
import static datadog.trace.agent.test.TestUtils.runUnderTrace
import static org.elasticsearch.cluster.ClusterName.CLUSTER_NAME_SETTING
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch5TransportClientTest extends AgentTestRunner {
public static final long TIMEOUT = 10000; // 10 seconds
@ -80,7 +80,6 @@ class Elasticsearch5TransportClientTest extends AgentTestRunner {
}
}
@RetryOnFailure
def "test elasticsearch status"() {
setup:
def result = client.admin().cluster().health(new ClusterHealthRequest())

View File

@ -17,7 +17,7 @@ import spock.lang.Shared
import static datadog.trace.agent.test.TestUtils.runUnderTrace
import static org.elasticsearch.cluster.ClusterName.CLUSTER_NAME_SETTING
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch5NodeClientTest extends AgentTestRunner {
public static final long TIMEOUT = 10000; // 10 seconds

View File

@ -21,7 +21,7 @@ import spock.lang.Shared
import static datadog.trace.agent.test.TestUtils.runUnderTrace
import static org.elasticsearch.cluster.ClusterName.CLUSTER_NAME_SETTING
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch5TransportClientTest extends AgentTestRunner {
public static final long TIMEOUT = 10000; // 10 seconds

View File

@ -16,7 +16,7 @@ import spock.lang.Shared
import static datadog.trace.agent.test.TestUtils.runUnderTrace
import static org.elasticsearch.cluster.ClusterName.CLUSTER_NAME_SETTING
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch6NodeClientTest extends AgentTestRunner {
public static final long TIMEOUT = 10000; // 10 seconds

View File

@ -20,7 +20,7 @@ import spock.lang.Shared
import static datadog.trace.agent.test.TestUtils.runUnderTrace
import static org.elasticsearch.cluster.ClusterName.CLUSTER_NAME_SETTING
@RetryOnFailure
@RetryOnFailure(times = 3, delaySeconds = 1)
class Elasticsearch6TransportClientTest extends AgentTestRunner {
public static final long TIMEOUT = 10000; // 10 seconds