Function renamings.
This commit is contained in:
Родитель
df0cd40254
Коммит
4fd12e53aa
|
@ -162,7 +162,7 @@ namespace FabricHealer.Repair
|
|||
case RepairActionType.HostRepaveData:
|
||||
case RepairActionType.FullReimage:
|
||||
|
||||
repairTask = await repairTaskEngine.ScheduleInfrastructureRepairTaskAsync(repairData, executorName, token);
|
||||
repairTask = await repairTaskEngine.CreateInfrastructureRepairTaskAsync(repairData, executorName, token);
|
||||
break;
|
||||
|
||||
// FH
|
||||
|
@ -172,7 +172,7 @@ namespace FabricHealer.Repair
|
|||
case RepairActionType.RestartProcess:
|
||||
case RepairActionType.RestartReplica:
|
||||
|
||||
repairTask = await repairTaskEngine.ScheduleFabricHealerRepairTask(executorData, token);
|
||||
repairTask = await repairTaskEngine.CreateFabricHealerRepairTask(executorData, token);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -181,7 +181,7 @@ namespace FabricHealer.Repair
|
|||
return null;
|
||||
}
|
||||
|
||||
bool success = await TryCreateRepairTaskAsync(
|
||||
bool success = await RepairManagerCreateRepairTaskAsync(
|
||||
repairTask,
|
||||
repairData,
|
||||
repairTaskEngine,
|
||||
|
@ -190,7 +190,7 @@ namespace FabricHealer.Repair
|
|||
return success ? repairTask : null;
|
||||
}
|
||||
|
||||
private static async Task<bool> TryCreateRepairTaskAsync(
|
||||
private static async Task<bool> RepairManagerCreateRepairTaskAsync(
|
||||
RepairTask repairTask,
|
||||
TelemetryData repairData,
|
||||
RepairTaskEngine repairTaskEngine,
|
||||
|
|
|
@ -60,7 +60,7 @@ namespace FabricHealer.Repair.Guan
|
|||
{
|
||||
// Historical info, like what step the healer was in when the node went down, is contained in the
|
||||
// executordata instance.
|
||||
repairTask = await RepairTaskEngine.ScheduleFabricHealerRepairTask(RepairExecutorData, FabricHealerManager.Token);
|
||||
repairTask = await RepairTaskEngine.CreateFabricHealerRepairTask(RepairExecutorData, FabricHealerManager.Token);
|
||||
success = await RepairTaskManager.ExecuteFabricHealerRepairTaskAsync(
|
||||
repairTask,
|
||||
RepairData,
|
||||
|
|
|
@ -20,12 +20,12 @@ namespace FabricHealer.Repair
|
|||
public const string AzureTaskIdPrefix = "Azure";
|
||||
|
||||
/// <summary>
|
||||
/// Schedules a repair task where FabricHealer is the executor.
|
||||
/// Creates a repair task where FabricHealer is the executor.
|
||||
/// </summary>
|
||||
/// <param name="executorData"></param>
|
||||
/// <param name="token"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<RepairTask> ScheduleFabricHealerRepairTask(RepairExecutorData executorData, CancellationToken token)
|
||||
public async Task<RepairTask> CreateFabricHealerRepairTask(RepairExecutorData executorData, CancellationToken token)
|
||||
{
|
||||
if (executorData == null || executorData.RepairData.NodeName == null)
|
||||
{
|
||||
|
@ -108,13 +108,13 @@ namespace FabricHealer.Repair
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Schedules a repair task where SF's InfrastructureService (IS) is the executor.
|
||||
/// Creates a repair task where SF's InfrastructureService (IS) is the executor.
|
||||
/// </summary>
|
||||
/// <param name="repairData"></param>
|
||||
/// <param name="executorName"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<RepairTask> ScheduleInfrastructureRepairTaskAsync(TelemetryData repairData, string executorName, CancellationToken cancellationToken)
|
||||
public async Task<RepairTask> CreateInfrastructureRepairTaskAsync(TelemetryData repairData, string executorName, CancellationToken cancellationToken)
|
||||
{
|
||||
if (await FabricHealerManager.IsOneNodeClusterAsync())
|
||||
{
|
||||
|
|
|
@ -227,7 +227,7 @@ namespace FabricHealer.Repair
|
|||
|
||||
executorName = service.ServiceName.OriginalString;
|
||||
|
||||
await FabricHealerManager.TelemetryUtilities.EmitTelemetryEtwHealthEventAsync(
|
||||
await FabricHealerManager.TelemetryUtilities.EmitTelemetryEtwHealthEventAsync(
|
||||
LogLevel.Info,
|
||||
"ScheduleInfrastructureRepairTask::ExecutorFound",
|
||||
$"Executor set to {executorName} for Machine Repair Action {repairData.RepairPolicy.InfrastructureRepairName}.",
|
||||
|
|
Загрузка…
Ссылка в новой задаче