Skip to content

Commit 30c711a

Browse files
author
Senthil Nathan
committed
Changes done for v4.1.3.
1 parent 05d6f0b commit 30c711a

File tree

4 files changed

+644
-157
lines changed

4 files changed

+644
-157
lines changed

com.ibm.streamsx.dps/impl/src/RedisClusterPlusPlusDBLayer.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
# Licensed Materials - Property of IBM
3-
# Copyright IBM Corp. 2011, 2020
3+
# Copyright IBM Corp. 2011, 2021
44
# US Government Users Restricted Rights - Use, duplication or
55
# disclosure restricted by GSA ADP Schedule Contract with
66
# IBM Corp.
@@ -5088,9 +5088,13 @@ namespace distributed
50885088
exceptionType = REDIS_PLUS_PLUS_OTHER_ERROR;
50895089
}
50905090

5091+
// Under normal working conditions of the Redis server(s),
5092+
// the Redis command executed above shouldn't have raised
5093+
// any exception.
5094+
//
50915095
// Did we encounter a redis-cluster server connection error?
5092-
if (exceptionType == REDIS_PLUS_PLUS_CONNECTION_ERROR) {
5093-
SPLAPPTRC(L_ERROR, "Inside isConnected: Unable to connect to the redis-cluster server(s). Failed with an exception. Error=" << exceptionString << ". rc=" << DPS_CONNECTION_ERROR, "RedisClusterPlusPlusDBLayer");
5096+
if (exceptionType != REDIS_PLUS_PLUS_NO_ERROR) {
5097+
SPLAPPTRC(L_ERROR, "Inside isConnected: Unable to execute a get command. Possible issue connecting to the redis-cluster server(s). Failed with an exception type " << exceptionType << ". Error=" << exceptionString << ". rc=" << DPS_CONNECTION_ERROR << ". Application code may call the DPS reconnect API and then retry the failed operation.", "RedisClusterPlusPlusDBLayer");
50945098
// Connection error.
50955099
return(false);
50965100
} else {

com.ibm.streamsx.dps/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ To specifically learn how to call the DPS APIs from SPL native functions, C++ an
235235
# Reference information
236236
[../../javadoc/dps/index.html| DPS Java API Reference]
237237
</info:description>
238-
<info:version>4.1.2</info:version>
238+
<info:version>4.1.3</info:version>
239239
<info:requiredProductVersion>4.2.0.0</info:requiredProductVersion>
240240
</info:identity>
241241
<info:dependencies/>

0 commit comments

Comments
 (0)