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

Method ReopenCachedHdfsFileHandle

be/src/runtime/io/disk-io-mgr.cc:1007–1022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1005}
1006
1007Status DiskIoMgr::ReopenCachedHdfsFileHandle(const hdfsFS& fs, std::string* fname,
1008 int64_t mtime, RequestContext* reader, FileHandleCache::Accessor* accessor) {
1009 bool cache_hit;
1010 SCOPED_TIMER(reader->open_file_timer_);
1011 ImpaladMetrics::IO_MGR_CACHED_FILE_HANDLES_REOPENED->Increment(1L);
1012
1013 accessor->Destroy();
1014
1015 Status status =
1016 file_handle_cache_.GetFileHandle(fs, fname, mtime, true, accessor, &cache_hit);
1017 if (!status.ok()) {
1018 return status;
1019 }
1020 DCHECK(!cache_hit);
1021 return Status::OK();
1022}
1023
1024void DiskQueue::ShutDown() {
1025 {

Callers 1

ReadFromPosMethod · 0.80

Calls 5

OKFunction · 0.85
IncrementMethod · 0.45
DestroyMethod · 0.45
GetFileHandleMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected