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
f6e9a113
Commit
f6e9a113
authored
7 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
The systest_xrdcp_many_concurrent_files.sh test now removes disk replicas concurrently
parent
270956c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
continuousintegration/orchestration/tests/systest_xrdcp_many_concurrent_files.sh
+9
-29
9 additions, 29 deletions
...rchestration/tests/systest_xrdcp_many_concurrent_files.sh
with
9 additions
and
29 deletions
continuousintegration/orchestration/tests/systest_xrdcp_many_concurrent_files.sh
+
9
−
29
View file @
f6e9a113
...
...
@@ -119,14 +119,14 @@ NB_CONCURRENT_TRANSFERS=20
# Delete any existing test files
echo
"Deleting
${
NB_FILES
}
test files in batches of
${
NB_CONCURRENT_TRANSFERS
}
concurrent deletes"
for
I
in
`
seq
1
${
NB_FILES
}
`
;
do
echo
/eos/ctaeos/cta/test_file_
${
I
}
;
done
| xargs
-L
1
-P
${
NB_CONCURRENT_TRANSFERS
}
kubectl
--namespace
${
NAMESPACE
}
exec
ctaeos
--
eos
rm
echo
eos
rm
/eos/ctaeos/cta/test_file_
${
I
}
;
done
| xargs
-L
1
-P
${
NB_CONCURRENT_TRANSFERS
}
kubectl
--namespace
${
NAMESPACE
}
exec
ctaeos
--
# Copy test files into EOS
echo
"Copying
${
NB_FILES
}
test files in batches of
${
NB_CONCURRENT_TRANSFERS
}
concurrent transfers"
for
I
in
`
seq
1
${
NB_FILES
}
`
;
do
echo
root://localhost//eos/ctaeos/cta/test_file_
${
I
}
;
done
| xargs
-L
1
-P
${
NB_CONCURRENT_TRANSFERS
}
kubectl
--namespace
${
NAMESPACE
}
exec
ctaeos
--
xrdcp /etc/group
echo
xrdcp /etc/group
root://localhost//eos/ctaeos/cta/test_file_
${
I
}
;
done
| xargs
-L
1
-P
${
NB_CONCURRENT_TRANSFERS
}
kubectl
--namespace
${
NAMESPACE
}
exec
ctaeos
--
# Wait for test files to be archived to tape
for
I
in
`
seq
1
${
NB_FILES
}
`
;
do
...
...
@@ -147,25 +147,15 @@ for I in `seq 1 ${NB_FILES}`; do
echo
"
${
TEST_FILE_NAME
}
ARCHIVED TO TAPE"
done
#
Remov
e
the disk replicas of
the test files
echo
"
Remov
ing
the disk replicas of
${
NB_FILES
}
test files in batches of
${
NB_CONCURRENT_TRANSFERS
}
concurrent removes"
for
I
in
`
seq
1
${
NB_FILES
}
`
;
do
TEST_FILE_NAME
=
test_file_
${
I
}
echo
kubectl
--namespace
${
NAMESPACE
}
exec
ctaeos
--
eos info /eos/ctaeos/cta/
${
TEST_FILE_NAME
}
echo
echo
"Information about the testing file:"
echo
"********"
kubectl
--namespace
${
NAMESPACE
}
exec
ctaeos
--
eos attr
ls
/eos/ctaeos/cta/
${
TEST_FILE_NAME
}
kubectl
--namespace
${
NAMESPACE
}
exec
ctaeos
--
eos info /eos/ctaeos/cta/
${
TEST_FILE_NAME
}
echo
echo
"Removing
${
TEST_FILE_NAME
}
disk replica"
kubectl
--namespace
${
NAMESPACE
}
exec
ctaeos
--
eos file tag /eos/ctaeos/cta/
${
TEST_FILE_NAME
}
-1
done
echo
eos file tag /eos/ctaeos/cta/test_file_
${
I
}
-1
done
| xargs
-L
1
-P
${
NB_CONCURRENT_TRANSFERS
}
kubectl
--namespace
${
NAMESPACE
}
exec
ctaeos
--
echo
"Requesting
${
NB_FILES
}
test files be retrieved from tape in batches of
${
NB_CONCURRENT_TRANSFERS
}
concurrent transfers"
for
I
in
`
seq
1
${
NB_FILES
}
`
;
do
echo
/eos/ctaeos/cta/test_file_
${
I
}
;
done
| xargs
-L
1
-P
${
NB_CONCURRENT_TRANSFERS
}
kubectl
--namespace
${
NAMESPACE
}
exec
ctaeos
--
xrdfs localhost prepare
-s
echo
xrdfs localhost prepare
-s
/eos/ctaeos/cta/test_file_
${
I
}
;
done
| xargs
-L
1
-P
${
NB_CONCURRENT_TRANSFERS
}
kubectl
--namespace
${
NAMESPACE
}
exec
ctaeos
--
# Wait for the test files to be retrieved from tape
for
I
in
`
seq
1
${
NB_FILES
}
`
;
do
...
...
@@ -188,16 +178,6 @@ for I in `seq 1 ${NB_FILES}`; do
echo
done
# Display the current information about the test files
for
I
in
`
seq
1
${
NB_FILES
}
`
;
do
TEST_FILE_NAME
=
test_file_
${
I
}
echo
echo
"Information about the testing file:"
echo
"********"
kubectl
--namespace
${
NAMESPACE
}
exec
ctaeos
--
eos attr
ls
/eos/ctaeos/cta/
${
TEST_FILE_NAME
}
kubectl
--namespace
${
NAMESPACE
}
exec
ctaeos
--
eos info /eos/ctaeos/cta/
${
TEST_FILE_NAME
}
done
# results
echo
#msgNum=`kubectl --namespace $NAMESPACE logs tpsrv -c taped | grep "\"File suc" | grep ${TEST_FILE_NAME} | tail -n 4|wc -l`
...
...
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