public void removeEntry(CacheEntry entry) {
    entry.invalidate();
    rwLock.writeLock().lock();
    try {
      removeFromLookup(entry);
      lru.remove(entry);
      // Should the cache size be updated here, or after the result data has actually been deleted?
      cacheSize -= entry.size;
    } finally {
      rwLock.writeLock().unlock();
    }
  }
Check that the cache entry matches the lookupInfo.
@param lookupInfo
@param entry
@param entriesToRemove Set of entries to be removed after exiting read lock section.
                       If the entry is found to be invalid it will be added to this set.
@return
ql/src/java/org/apache/hadoop/hive/ql/cache/results/QueryResultsCache.java