MCPcopy Create free account
hub / github.com/apache/impala / EvictedEntry

Method EvictedEntry

be/src/runtime/io/data-cache.cc:1195–1206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1193}
1194
1195void DataCache::Partition::EvictedEntry(Slice key, Slice value) {
1196 if (closed_) return;
1197 if (UNLIKELY(trace_replay_)) return;
1198 ScopedHistogramTimer eviction_timer(eviction_latency_);
1199 // Unpack the cache entry.
1200 CacheEntry entry(value);
1201 int64_t eviction_len = BitUtil::RoundUp(entry.len(), PAGE_SIZE);
1202 DCHECK_EQ(entry.offset() % PAGE_SIZE, 0);
1203 entry.file()->PunchHole(entry.offset(), eviction_len);
1204 ImpaladMetrics::IO_MGR_REMOTE_DATA_CACHE_TOTAL_BYTES->Increment(-eviction_len);
1205 ImpaladMetrics::IO_MGR_REMOTE_DATA_CACHE_NUM_ENTRIES->Increment(-1);
1206}
1207
1208// TODO: Switch to using CRC32 once we fix the TODO in hash-util.h
1209uint64_t DataCache::Partition::Checksum(const uint8_t* buffer, int64_t buffer_len) {

Callers

nothing calls this directly

Calls 5

lenMethod · 0.45
offsetMethod · 0.45
PunchHoleMethod · 0.45
fileMethod · 0.45
IncrementMethod · 0.45

Tested by

no test coverage detected