Skip to content

Commit

Permalink
Merge pull request #36 from IBMStreams/develop
Browse files Browse the repository at this point in the history
2.1.1
  • Loading branch information
markheger authored Dec 4, 2018
2 parents 99bc98b + 933f510 commit 9b44baa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,15 +337,15 @@ public void bulkIndexSend() {
if (result.getErrorMessage() != null) {
logger.error("Bulk send failed. bulk size = " + Integer.toString(bulkSize));
logger.error("Error: " + result.getErrorMessage());
} else {
// TODO : how to test this code path ?
for (BulkResultItem item : result.getItems()) {
if (item.error != null) {
failedInserts++;
logger.error("Bulk item indexing failed. " + item.error);
if (null != result.getItems()) {
for (BulkResultItem item : result.getItems()) {
if (item.error != null) {
failedInserts++;
logger.error("Bulk item indexing failed. " + item.error);
}
}
}
logger.error("Bulk request was partially successful. Total items = " + Integer.toString(bulkSize) + ", failed = " + Integer.toString(failedInserts));
logger.error("Total items = " + Integer.toString(bulkSize) + ", failed = " + Integer.toString(failedInserts));
}
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion com.ibm.streamsx.elasticsearch/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ The Elasticsearch toolkit is an open source IBM Streams toolkit that provides ad
This is an overview of changes for major and minor version upgrades. For details see the Releases in public Github.
++ What is new in version 2.1.1
* Fix missing error text information in case of bulk request failures.
++ What is new in version 2.1.0
* The ElasticsearchIndex operator provides a new parameter 'documentAttribute'. Use this to pass complete JSON documents to the operator for indexing.
Expand Down Expand Up @@ -70,7 +74,7 @@ as they constitute serious security holes.
you can use this parameter to temporarily disable hostnam verification.
]]></info:description>
<info:version>2.1.0</info:version>
<info:version>2.1.1</info:version>
<info:requiredProductVersion>4.2.0.0</info:requiredProductVersion>
</info:identity>
<info:dependencies/>
Expand Down

0 comments on commit 9b44baa

Please sign in to comment.