]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/PGMap: reweight::by_utilization - skip DNE osds
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 17 Aug 2017 11:15:15 +0000 (19:15 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 18 Aug 2017 05:27:06 +0000 (13:27 +0800)
commit6ae96d33a84404a144e06c423796e4a3886d8e61
tree00bca593239aee1d63b1cf1fe6dcedec341a271c
parent588e5d03b6c9c5eb1d9b8a2d6ca20980f07c503b
mon/PGMap: reweight::by_utilization - skip DNE osds

EC could set one or more members of acting set to CRUSH_ITEM_NONE,
which as a result can cause pgs_by_osd.resize() attempt to apply
for a large amount of memory which we can not afford.

Fix the above problem by always excluding a current DNE osd from
acting set.

Fixes: http://tracker.ceph.com/issues/20970
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/PGMap.cc