elastic-db-tools/src/main/java/com/microsoft/azure/elasticdb/shard/storeops/map/AddShardOperation.java [197:221]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @Override
    public void handleDoGlobalPostLocalExecuteError(StoreResults result) {
        if (result.getResult() == StoreResult.ShardMapDoesNotExist) {
            // Remove shard map from cache.
            this.getShardMapManager().getCache().deleteShardMap(shardMap);
        }

        // Possible errors are:
        // StoreResult.ShardMapDoesNotExist
        // StoreResult.StoreVersionMismatch
        // StoreResult.MissingParametersForStoredProcedure
        throw StoreOperationErrorHandler.onShardMapErrorGlobal(result, shardMap, shard, ShardManagementErrorCategory.ShardMap,
                StoreOperationErrorHandler.operationNameFromStoreOperationCode(this.getOperationCode()),
                StoreOperationRequestBuilder.SP_BULK_OPERATION_SHARDS_GLOBAL_END);
    }

    /**
     * Performs the undo of LSM operation on the source shard.
     *
     * @param ts
     *            Transaction scope.
     * @return Result of the operation.
     */
    @Override
    public StoreResults undoLocalSourceExecute(IStoreTransactionScope ts) {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



elastic-db-tools/src/main/java/com/microsoft/azure/elasticdb/shard/storeops/map/RemoveShardOperation.java [185:209]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @Override
    public void handleDoGlobalPostLocalExecuteError(StoreResults result) {
        if (result.getResult() == StoreResult.ShardMapDoesNotExist) {
            // Remove shard map from cache.
            this.getShardMapManager().getCache().deleteShardMap(shardMap);
        }

        // Possible errors are:
        // StoreResult.ShardMapDoesNotExist
        // StoreResult.StoreVersionMismatch
        // StoreResult.MissingParametersForStoredProcedure
        throw StoreOperationErrorHandler.onShardMapErrorGlobal(result, shardMap, shard, ShardManagementErrorCategory.ShardMap,
                StoreOperationErrorHandler.operationNameFromStoreOperationCode(this.getOperationCode()),
                StoreOperationRequestBuilder.SP_BULK_OPERATION_SHARDS_GLOBAL_END);
    }

    /**
     * Performs the undo of LSM operation on the source shard.
     *
     * @param ts
     *            Transaction scope.
     * @return Result of the operation.
     */
    @Override
    public StoreResults undoLocalSourceExecute(IStoreTransactionScope ts) {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



