You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "P. Taylor Goetz (JIRA)" <ji...@apache.org> on 2015/06/01 22:32:18 UTC
[jira] [Updated] (STORM-723) [storm-redis] RedisStateSetUpdater
writes state into String but calls Set operation
[ https://issues.apache.org/jira/browse/STORM-723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
P. Taylor Goetz updated STORM-723:
----------------------------------
Fix Version/s: (was: 0.11.0)
> [storm-redis] RedisStateSetUpdater writes state into String but calls Set operation
> -----------------------------------------------------------------------------------
>
> Key: STORM-723
> URL: https://issues.apache.org/jira/browse/STORM-723
> Project: Apache Storm
> Issue Type: Bug
> Affects Versions: 0.10.0
> Reporter: Jungtaek Lim
> Assignee: Jungtaek Lim
> Fix For: 0.10.0
>
>
> RedisStateSetUpdater writes value into String type, but it tries to retrieve Set's element count from String type which will throw JedisDataException.
> {code}
> if (this.expireIntervalSec > 0) {
> jedis.setex(redisKey, expireIntervalSec, value);
> } else {
> jedis.set(redisKey, value);
> }
> Long count = jedis.scard(redisKey);
> {code}
> Btw, Redis expire only applies to key, so above implementation seems to be invalid.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)