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 | |
---|---|---|
AttachShard | Overloaded. | |
DetachShard | Overloaded. | |
DetectMappingDifferences | Overloaded. | |
Equals | (Inherited from Object) | |
GetHashCode | (Inherited from Object) | |
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. | |
GetShardInfo | Overloaded. | |
GetShardLocation | Returns the shard location of the local shard map processed by DetectMappingDifferences(ShardLocation,String). | |
GetShardMapName | Returns the shard map name of the shard map processed by DetectMappingDifferences(ShardLocation,String). | |
GetShardMapType | Returns the shard map type of the shard map processed by DetectMappingDifferences(ShardLocation,String). | |
GetType | (Inherited from Object) | |
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. | |
RebuildMappingsOnShardMapManagerFromShards | Overloaded. | |
RebuildMappingsOnShardsFromShardMapManager | Overloaded. | |
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. | |
ToString | (Inherited from Object) |
Top
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from Object) | |
MemberwiseClone | (Inherited from Object) |
Top
See Also
Reference
RecoveryManager Class
Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.Recovery Namespace