Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Felix Seibert
xtreemfs_client
Commits
8a602714
Commit
8a602714
authored
Feb 26, 2018
by
Felix Seibert
Browse files
slightly changing debug log output
parent
d1540eb2
Changes
2
Show whitespace changes
Inline
Side-by-side
xtreemfs_client/OSDManager.py
View file @
8a602714
...
...
@@ -237,8 +237,13 @@ class OSDManager(object):
for
process
in
processes
:
# check the return code. if it is one, the replica could not be deleted, so we try again later.
if
process
[
2
]
=
=
1
:
if
process
[
2
]
!
=
0
:
errored_deletions
.
append
(
process
[
0
])
print
(
"errored command: "
)
print
(
"command: "
+
process
[
0
])
print
(
"stdoud: "
+
process
[
1
][
0
])
print
(
"stderr: "
+
process
[
1
][
1
])
print
(
"retcode: "
+
str
(
process
[
2
]))
if
len
(
errored_deletions
)
==
0
:
break
...
...
xtreemfs_client/div_util.py
View file @
8a602714
...
...
@@ -43,8 +43,8 @@ def run_commands(commands, max_processes=200):
if
(
len
(
running_processes
)
>=
max_processes
):
os
.
wait
()
running_processes
.
difference_update
([
p
for
p
in
running_processes
if
p
.
poll
()
is
not
None
])
print
(
"running procs: "
+
str
(
len
(
running_processes
))
+
" all procs: "
+
str
(
len
(
all_processes
))
+
" commands: "
+
str
(
len
(
commands
)))
#
print("running procs: " + str(len(running_processes)) + " all procs: " + str(len(all_processes)) +
#
" commands: " + str(len(commands)))
for
p
in
running_processes
:
p
.
wait
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment