Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-5795

RedisDistributedMapCacheClientService put missing option

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.9.0
    • Extensions
    • None

    Description

      When you select on PutDistributedMapCache CACHE_UPDATE_STRATEGY = CACHE_UPDATE_REPLACE we execute "cache.put(cacheKey, cacheValue, keySerializer, valueSerializer);" LINK

      If you use redis as backend service this jumps to: RedisDistributedMapCacheClientService.java -> redisConnection.set(kv.getKey(), kv.getValue(), Expiration.seconds(ttl), null); LINK

      Calling to spring-data/redis/ library, but we have a bug putting null as Option parameter, causing an error "option cannot be null", because according to library: "option - must not be null." Library Link

      If we want to update strategy we should use: RedisStringCommands.SetOption.upsert()

       

       

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              luup2k Alex
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: