Skip to content

Commit 523d23e

Browse files
Added index creation and removed TODOs for TransportClient
1 parent e1e6d72 commit 523d23e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
import com.google.gson.Gson;
1111
import org.apache.commons.io.IOUtils;
12-
import org.apache.commons.lang.StringUtils;
1312
import org.apache.http.HttpEntity;
1413
import org.apache.http.HttpHost;
1514
import org.apache.http.HttpStatus;
@@ -62,9 +61,6 @@ public Arguments getDefaultParameters() {
6261
parameters.addArgument(ES_TIMEOUT_MS, Long.toString(DEFAULT_TIMEOUT_MS));
6362
parameters.addArgument(ES_SAMPLE_FILTER, null);
6463
parameters.addArgument(ES_TEST_MODE, "info");
65-
//TODO. In future version - add the support for TransportClient as well for the possibility to choose the ElasticSearch version
66-
//parameters.addArgument(ES_TRANSPORT_CLIENT, "false");
67-
//parameters.addArgument(ES_TRANSPORT_VERSION, "6.2.0");
6864
return parameters;
6965
}
7066

@@ -97,6 +93,7 @@ public void onFailure(HttpHost host) {
9793
this.filters.add(filter);
9894
}
9995
}
96+
this.client.performRequest("PUT", "/"+ this.index);
10097
super.setupTest(context);
10198
} catch (Exception e) {
10299
throw new IllegalStateException("Unable to connect to the ElasticSearch engine", e);

0 commit comments

Comments
 (0)