]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: throttle scrub start for multiple active MDS
authorMilind Changire <mchangir@redhat.com>
Fri, 10 Jan 2020 06:31:34 +0000 (12:01 +0530)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 5 Feb 2020 01:52:09 +0000 (17:52 -0800)
commitc9ec4659462cba9cf5474789c433d970abb57aec
treed00e46cea48e35520e3aa1c4d3dad6da1f0bfad9
parentc15b0b4124104a3ffdfda8666cdc419fb592a1f8
mds: throttle scrub start for multiple active MDS

* add check to "scrub start" command handler to dishonor request if
  multiple MDS are "active" for a recursive scrub request
* add check to MDSRank::handle_mds_map() to see if scrubbing is in
  progress and max_mds is greater than 1, if so then scrubbing is
  aborted. This is supposed to take care of the condition when scrubbing
  has been started with max_mds == 1 and then bumped to a higher value

Fixes: https://tracker.ceph.com/issues/43483
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit f50b87bcb4737befcccf6310aaf522200361e731)

Conflicts:
src/mds/MDSRank.cc
src/mds/ScrubStack.h
src/mds/MDSRank.cc
src/mds/ScrubStack.h