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

Method FileCacheTest

be/src/kudu/util/file_cache-test.cc:63–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61class FileCacheTest : public KuduTest {
62 public:
63 FileCacheTest()
64 : rand_(SeedRandom()) {
65 // Simplify testing of the actual cache capacity.
66 FLAGS_cache_force_single_shard = true;
67
68 // Speed up tests that check the number of descriptors.
69 FLAGS_file_cache_expiry_period_ms = 1;
70
71 // libunwind internally uses two file descriptors as a pipe.
72 // Make sure it gets initialized early so that our fd count
73 // doesn't get affected by it.
74 ignore_result(GetStackTraceHex());
75 initial_open_fds_ = CountOpenFds();
76 }
77
78 int CountOpenFds() const {
79 // Only count files in the test working directory so that we don't

Callers

nothing calls this directly

Calls 4

SeedRandomFunction · 0.85
ignore_resultFunction · 0.85
GetStackTraceHexFunction · 0.85
CountOpenFdsFunction · 0.85

Tested by

no test coverage detected