Skip to content

Commit 6024ebe

Browse files
2.2.4 - fixed error with Index creation
1 parent 523d23e commit 6024ebe

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>io.github.delirius325</groupId>
55
<artifactId>jmeter.backendlistener.elasticsearch</artifactId>
6-
<version>2.2.3</version>
6+
<version>2.2.4</version>
77
<packaging>jar</packaging>
88

99
<name>jmeter.backendlistener.elasticsearch</name>

src/main/java/io/github/delirius325/jmeter/backendlistener/elasticsearch/ElasticsearchBackend.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,13 @@ public void onFailure(HttpHost host) {
9393
this.filters.add(filter);
9494
}
9595
}
96-
this.client.performRequest("PUT", "/"+ this.index);
96+
97+
try {
98+
this.client.performRequest("PUT", "/"+ this.index);
99+
} catch(Exception e) {
100+
logger.info("Index already exists!");
101+
}
102+
97103
super.setupTest(context);
98104
} catch (Exception e) {
99105
throw new IllegalStateException("Unable to connect to the ElasticSearch engine", e);

0 commit comments

Comments
 (0)