This commit is contained in:
Charles Torre 2022-10-12 18:26:24 -07:00
Родитель df0cd40254
Коммит 4fd12e53aa
4 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -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}.",