The BZ is a result of the "sort -u" failing due to a missing file. "sort -u" is run on the collected files if the --full argument is passed in "pre" and "query" modes. Since the file couldn't be copied from the node on which a remove-brick was in progress, "sort" finds it missing on the local node and bails out with an error.
REVIEW: http://review.gluster.org/16332 (tools/glusterfind: handle offline bricks) posted (#1) for review on master by Milind Changire (mchangir)
REVIEW: http://review.gluster.org/16332 (tools/glusterfind: handle offline bricks) posted (#2) for review on master by Milind Changire (mchangir)
REVIEW: https://review.gluster.org/#/c/glusterfs/+/16332/
REVIEW: https://review.gluster.org/16332 (tools/glusterfind: handle offline bricks) posted (#6) for review on master by Aravinda VK
REVIEW: https://review.gluster.org/16332 (tools/glusterfind: handle offline bricks) merged (#7) on master by Aravinda VK