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
16863995
Commit
16863995
authored
Feb 16, 2018
by
Felix Seibert
Browse files
using popen return codes to check whether the delete command was successfull, instead of stderr
parent
a31b26e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
xtreemfs_client/OSDManager.py
View file @
16863995
...
...
@@ -232,7 +232,8 @@ class OSDManager(object):
div_util
.
print_process_list
(
processes
)
for
process
in
processes
:
if
process
[
1
][
1
]
==
b
''
:
# check the return code. if it is one, the replica could not be deleted, so we try again later.
if
not
process
[
2
]:
pass
else
:
errored_deletions
.
append
(
process
[
0
])
...
...
xtreemfs_client/div_util.py
View file @
16863995
...
...
@@ -47,7 +47,7 @@ def run_commands(commands, max_processes=200):
for
p
in
running_processes
:
p
.
wait
()
return
list
(
map
(
lambda
proc
:
(
proc
.
args
,
proc
.
communicate
()),
all_processes
))
return
list
(
map
(
lambda
proc
:
(
proc
.
args
,
proc
.
communicate
()
,
proc
.
returncode
),
all_processes
))
def
print_process_list
(
processes
):
...
...
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