Solr
  1. Solr
  2. SOLR-1006

ConcurrentLRUCache API improvements

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: None
    • Labels:
      None

      Description

      This is to make ConcurrentLRUCache more consistent with LinkedHashMap behavior

      1. remove must not call evictionListener.evictedEntry()
      2. EvictionListener must be able prevent eviction of an element by returning a false.
      3. Add a new method Map getOldestItems(long n)
      1. SOLR-1006.patch
        3 kB
        Noble Paul
      2. SOLR-1006.patch
        4 kB
        Shalin Shekhar Mangar

        Activity

        Noble Paul created issue -
        Noble Paul made changes -
        Field Original Value New Value
        Description This is to make ConcurrentLRUCache more consistent with LinkedHashMap behavior

        * remove must not call evictionListener.evictedEntry()
        * EvictionListener must be able prevent eviction of an element by returning a false.
        This is to make ConcurrentLRUCache more consistent with LinkedHashMap behavior

        # remove must not call evictionListener.evictedEntry()
        # EvictionListener must be able prevent eviction of an element by returning a false.
        # Add a new method Map getOldestItems(long n)
        Noble Paul made changes -
        Attachment SOLR-1006.patch [ 12399625 ]
        Shalin Shekhar Mangar made changes -
        Assignee Shalin Shekhar Mangar [ shalinmangar ]
        Shalin Shekhar Mangar made changes -
        Attachment SOLR-1006.patch [ 12400007 ]
        Shalin Shekhar Mangar made changes -
        Fix Version/s 1.4 [ 12313351 ]
        Fix Version/s 1.5 [ 12313566 ]
        Shalin Shekhar Mangar made changes -
        Description This is to make ConcurrentLRUCache more consistent with LinkedHashMap behavior

        # remove must not call evictionListener.evictedEntry()
        # EvictionListener must be able prevent eviction of an element by returning a false.
        # Add a new method Map getOldestItems(long n)
        This is to make ConcurrentLRUCache more consistent with LinkedHashMap behavior

        # remove must not call evictionListener.evictedEntry()
        # -EvictionListener must be able prevent eviction of an element by returning a false.-
        # Add a new method Map getOldestItems(long n)
        Shalin Shekhar Mangar made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 1.4 [ 12313351 ]
        Fix Version/s 1.5 [ 12313566 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Shalin Shekhar Mangar
            Reporter:
            Noble Paul
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development