parameters: (self)
docstring: Force recovery on some of PGs
docstring_summary: Force recovery on some of PGs
docstring_tokens: Force recovery on some of PGs
function: def cancel_force_recovery(self):
          """
          Force recovery on some of PGs
          """
          backfill = random.random() >= 0.5
          j = self.ceph_manager.get_pgids_to_cancel_force(backfill)
          if j:
              try:
                  if backfill:
                      self.ceph_manager.raw_cluster_cmd('pg', 'cancel-force-backfill', *j)
                  else:
                      self.ceph_manager.raw_cluster_cmd('pg', 'cancel-force-recovery', *j)
              except CommandFailedError:
                  self.log('Failed to force backfill|recovery, ignoring')
function_tokens: def cancel_force_recovery ( self ) : backfill = random . random ( ) >= 0.5 j = self . ceph_manager . get_pgids_to_cancel_force ( backfill ) if j : try : if backfill : self . ceph_manager . raw_cluster_cmd ( 'pg' , 'cancel-force-backfill' , * j ) else : self . ceph_manager . raw_cluster_cmd ( 'pg' , 'cancel-force-recovery' , * j ) except CommandFailedError : self . log ( 'Failed to force backfill|recovery, ignoring' )