Skip to content
Snippets Groups Projects
Commit 9741aaa1 authored by Cedric CAFFY's avatar Cedric CAFFY
Browse files

cta-taped back pressure takes into account read-only file systems

parent d346b86b
Branches
Tags v1.0-1
No related merge requests found
......@@ -67,8 +67,8 @@ roundTripRepack() {
if [ "$VID_TO_REPACK" != "null" ]
then
echo
echo "Launching the repack \"just move\" test on VID ${VID_TO_REPACK}"
kubectl -n ${NAMESPACE} exec client -- bash /root/repack_systemtest.sh -v ${VID_TO_REPACK} -b ${REPACK_BUFFER_URL} -m -r ${BASE_REPORT_DIRECTORY}/Step1-RoundTripRepack || exit 1
echo "Launching the repack \"just move\" test on VID ${VID_TO_REPACK} (with backpressure)"
kubectl -n ${NAMESPACE} exec client -- bash /root/repack_systemtest.sh -v ${VID_TO_REPACK} -b ${REPACK_BUFFER_URL} -m -r ${BASE_REPORT_DIRECTORY}/Step1-RoundTripRepack -p || exit 1
else
echo "No vid found to repack"
exit 1
......
......@@ -128,23 +128,19 @@ uint64_t DiskSystemFreeSpaceList::fetchEosFreeSpace(const std::string& instanceA
auto res = defaultSpaceRe.exec(spStdoutLine);
if (res.size()) {
defaultSpaceLine = res.at(0);
goto defaultFound;
goto spaceNameFound;
}
} while (!spStdoutIss.eof());
throw cta::disk::FetchEosFreeSpaceException("In DiskSystemFreeSpaceList::fetchEosFreeSpace(): could not find the \""+spaceName+"\" in the eos space ls -m result.");
defaultFound:
spaceNameFound:
// Look for the parameters in the result line.
utils::Regex rwSpaceRegex("sum.stat.statfs.capacity\\?configstatus@rw=([0-9]+) ");
utils::Regex rwSpaceRegex("sum.stat.statfs.freebytes\\?configstatus@rw=([0-9]+) ");
auto rwSpaceRes = rwSpaceRegex.exec(defaultSpaceLine);
if (rwSpaceRes.empty())
throw cta::disk::FetchEosFreeSpaceException(
"In DiskSystemFreeSpaceList::fetchEosFreeSpace(): failed to parse parameter sum.stat.statfs.capacity?configstatus@rw.");
utils::Regex usedSpaceRegex("sum.stat.statfs.usedbytes=([0-9]+) ");
auto usedSpaceRes = usedSpaceRegex.exec(sp.stdout());
if (usedSpaceRes.empty())
throw cta::disk::FetchEosFreeSpaceException("In DiskSystemFreeSpaceList::fetchEosFreeSpace(): failed to parse parameter sum.stat.statfs.usedbytes.");
return utils::toUint64(rwSpaceRes.at(1)) - utils::toUint64(usedSpaceRes.at(1));
return utils::toUint64(rwSpaceRes.at(1));
}
//------------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment