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

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

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersStop watchingWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            kabhwan Jungtaek Lim Assign to me
            kabhwan Jungtaek Lim
            Votes:
            0 Vote for this issue
            Watchers:
            4 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment