Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
9741aaa1
Commit
9741aaa1
authored
5 years ago
by
Cedric CAFFY
Browse files
Options
Downloads
Patches
Plain Diff
cta-taped back pressure takes into account read-only file systems
parent
d346b86b
Branches
Branches containing commit
Tags
v1.0-1
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
continuousintegration/orchestration/tests/repack_systemtest_wrapper.sh
+2
-2
2 additions, 2 deletions
...egration/orchestration/tests/repack_systemtest_wrapper.sh
disk/DiskSystem.cpp
+4
-8
4 additions, 8 deletions
disk/DiskSystem.cpp
with
6 additions
and
10 deletions
continuousintegration/orchestration/tests/repack_systemtest_wrapper.sh
+
2
−
2
View file @
9741aaa1
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
disk/DiskSystem.cpp
+
4
−
8
View file @
9741aaa1
...
...
@@ -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
default
Found
;
goto
spaceName
Found
;
}
}
while
(
!
spStdoutIss
.
eof
());
throw
cta
::
disk
::
FetchEosFreeSpaceException
(
"In DiskSystemFreeSpaceList::fetchEosFreeSpace(): could not find the
\"
"
+
spaceName
+
"
\"
in the eos space ls -m result."
);
default
Found
:
spaceName
Found
:
// 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
));
}
//------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment