Skip to content

Commit 325d434

Browse files
update elasticsearch 5.1.1
1 parent 568c7ff commit 325d434

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

elasticsearch5/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<dependency>
5959
<groupId>org.elasticsearch.client</groupId>
6060
<artifactId>transport</artifactId>
61-
<version>5.0.1</version>
61+
<version>5.1.1</version>
6262
</dependency>
6363

6464
<dependency>

elasticsearch5/src/main/java/com/dtstack/logstash/outputs/Elasticsearch5.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private void initESClient() throws NumberFormatException,
148148
public void afterBulk(long arg0, BulkRequest arg1,
149149
BulkResponse arg2) {
150150

151-
List<ActionRequest<?>> requests = arg1.requests();
151+
List<ActionRequest> requests = arg1.requests();
152152
int toberetry = 0;
153153
int totalFailed = 0;
154154
for (BulkItemResponse item : arg2.getItems()) {
@@ -199,7 +199,7 @@ public void afterBulk(long arg0, BulkRequest arg1,
199199
Throwable arg2) {
200200
logger.error("bulk got exception:", arg2);
201201

202-
for(ActionRequest<?> request : arg1.requests()){
202+
for(ActionRequest request : arg1.requests()){
203203
addFailedMsg(request);
204204
}
205205

0 commit comments

Comments
 (0)