Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-723

[storm-redis] RedisStateSetUpdater writes state into String but calls Set operation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.10.0
    • storm-redis
    • None

    Description

      RedisStateSetUpdater writes value into String type, but it tries to retrieve Set's element count from String type which will throw JedisDataException.

                      if (this.expireIntervalSec > 0) {
                          jedis.setex(redisKey, expireIntervalSec, value);
                      } else {
                          jedis.set(redisKey, value);
                      }
                      Long count = jedis.scard(redisKey);
      

      Btw, Redis expire only applies to key, so above implementation seems to be invalid.

      Attachments

        Issue Links

          Activity

            People

              kabhwan Jungtaek Lim
              kabhwan Jungtaek Lim
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: