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

Refactor AtomicDistributedMapCacheClient to be used with cache engines that does not have revision number

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.0, 1.3.0
    • 1.4.0
    • Extensions
    • None

    Description

      AtomicDistributedMapCacheClient interface defines fetch and replace method to atomically replace cache value. To do so, it currently uses a long revision value. This can be a limitation when other implementation is written against a cache engine that doesn't have revision concept.

      This JIRA proposes to refactor that interface by using generics to specify what type of revision is used by an implementation class.

      If the underlying cache engine doesn't have revision concept, the revision field can be used to store current cached value, and to check if the key is not updated at 'replace' method.

      https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-client-service-api/src/main/java/org/apache/nifi/distributed/cache/client/AtomicDistributedMapCacheClient.java

      Attachments

        Issue Links

          Activity

            People

              ijokarumawak Koji Kawamura
              ijokarumawak Koji Kawamura
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: