diff options
author | Milind Changire <mchangir@redhat.com> | 2017-01-05 19:53:19 +0530 |
---|---|---|
committer | hari gowtham <hari.gowtham005@gmail.com> | 2020-02-11 08:24:23 +0000 |
commit | 912b92d3b7c6695e0e1a053bb56b9013aac06b81 (patch) | |
tree | b24b52f31e698fe4a1fc8e0c709af7d9378b20d9 /tools/glusterfind/S57glusterfind-delete-post.py | |
parent | 3b2e7ce026f72b939f9300e675e73b4597743e00 (diff) |
tools/glusterfind: handle offline bricks
Problem:
glusterfind is unable to copy remote output file to local node when a
remove-brick is in progress on the remote node. After copying remote
files, in the --full output listing path, a "sort -u" command is run on
the collected files. However, "sort" exits with an error code if it
finds any file missing.
Solution:
Maintain a map of (pid, output file) when the node commands are started
and remove the mapping for the pid for which the command returns an
error. Use the list of files present in the map for the "sort" command.
Backport of:
> Change-Id: Ie6e019037379f4cb163f24b1c65eb382efc2fb3b
> fixes: bz#1410439
> Signed-off-by: Milind Changire <mchangir@redhat.com>
> Signed-off-by: Shwetha K Acharya <sacharya@redhat.com>
> (cherry picked from commit 42c1605f42b89520d4d05806d7074e9e93b63640)
Change-Id: Ie6e019037379f4cb163f24b1c65eb382efc2fb3b
Fixes: bz#1790445
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'tools/glusterfind/S57glusterfind-delete-post.py')
0 files changed, 0 insertions, 0 deletions