MCPcopy Create free account
hub / github.com/apache/mesos / claimSpace

Method claimSpace

src/slave/containerizer/fetcher.cpp:1253–1267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1251
1252
1253void FetcherProcess::Cache::claimSpace(const Bytes& bytes)
1254{
1255 tally += bytes;
1256
1257 if (tally > space) {
1258 // Used cache volume space exceeds the maximum amount set by
1259 // flags.fetcher_cache_size. This may be tolerated temporarily,
1260 // if there is sufficient physical space available. But it can
1261 // otherwise cause unspecified system behavior at any moment.
1262 LOG(WARNING) << "Fetcher cache space overflow - space used: " << tally
1263 << ", exceeds total fetcher cache space: " << space;
1264 }
1265
1266 VLOG(1) << "Claimed cache space: " << bytes << ", now using: " << tally;
1267}
1268
1269
1270void FetcherProcess::Cache::releaseSpace(const Bytes& bytes)

Callers 1

reserveCacheSpaceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected