Share via


RecoveryManager Members

Manages various recovery related tasks for a shard map manager. It helps resolving data corruption issues between shard map information stored locally on the shards and in the global shard map manager database. It also helps with certain 'oops' recovery scenarios where reconstruction of shard maps from database backups or database copies is necessary.

The following tables list the members exposed by the RecoveryManager type.

Public Methods

(see also Protected Methods)

  Name Description
public method AttachShard Overloaded.  
public method DetachShard Overloaded.  
public method DetectMappingDifferences Overloaded.  
public method Equals  (Inherited from Object)
public method GetHashCode  (Inherited from Object)
public method GetMappingDifferences Returns a dictionary of range-to-location key-value pairs. The location returned is an enumerator stating whether a given range (or point) is present only in the local shard map, only in the global shard map, or both. Ranges not contained in either shard map cannot contain differences so those ranges are not shown.
public method GetShardInfo Overloaded.  
public method GetShardLocation Returns the shard location of the local shard map processed by DetectMappingDifferences(ShardLocation,String).
public method GetShardMapName Returns the shard map name of the shard map processed by DetectMappingDifferences(ShardLocation,String).
public method GetShardMapType Returns the shard map type of the shard map processed by DetectMappingDifferences(ShardLocation,String).
public method GetType  (Inherited from Object)
public method RebuildMappingsOnShard Rebuilds a local range shard map from a list of inconsistent shard ranges detected by DetectMappingDifferences(ShardLocation,String) and then accessed by GetMappingDifferences. The resulting local range shard map will always still be inconsistent with the global shard map in the shard map manager database. A subsequent call to ResolveMappingDifferences is necessary to bring the system back to a healthy state.
public method RebuildMappingsOnShardMapManagerFromShards Overloaded.  
public method RebuildMappingsOnShardsFromShardMapManager Overloaded.  
public method ResolveMappingDifferences Selects one of the shard maps (either local or global) as a source of truth and brings mappings on both shard maps in sync.
public method ToString  (Inherited from Object)

Top

Protected Methods

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)

Top

See Also

Reference

RecoveryManager Class
Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.Recovery Namespace