Skip to content

Commit 82a9b38

Browse files
committed
bugfix: decr reconciliation was encoding value in a way that incr/decr can not parse
1 parent 41c7e67 commit 82a9b38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evcache-core/src/main/java/com/netflix/evcache/EVCacheImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3009,7 +3009,7 @@ public long decr(String key, long by, long defaultVal, int timeToLive) throws EV
30093009
+ currentValue + " for key : " + key);
30103010
clients[i].decr(evcKey.getDerivedKey(clients[i].isDuetClient(), clients[i].getHashingAlgorithm(), clients[i].shouldEncodeHashKey(), clients[i].getMaxDigestBytes(), clients[i].getMaxHashLength(), clients[i].getBaseEncoder()), 0, currentValue, timeToLive);
30113011
} else if (vals[i] != currentValue) {
3012-
if(cd == null) cd = clients[i].getTranscoder().encode(currentValue);
3012+
if(cd == null) cd = clients[i].getTranscoder().encode(String.valueOf(currentValue));
30133013
if (log.isDebugEnabled()) log.debug("DECR : APP " + _appName + "; Zone " + clients[i].getZone()
30143014
+ " had a value of " + vals[i]
30153015
+ " so setting it to current value = " + currentValue + " for key : " + key);

0 commit comments

Comments
 (0)