Search in sources :

Example 6 with InternalErrorEvent

use of com.tencent.angel.master.app.InternalErrorEvent in project angel by Tencent.

the class PSAgentManager method psAgentFalied.

@SuppressWarnings("unchecked")
private void psAgentFalied(PSAgentManagerEvent event) {
    failedPSAgentMap.put(event.getPsAgentId(), psAgentMap.get(event.getPsAgentId()));
    List<String> diagnostics = context.getPSAgentManager().getPsAgent(event.getPsAgentId()).getDiagnostics();
    StringBuilder diagnostic = new StringBuilder("");
    for (String diagItem : diagnostics) {
        diagnostic.append(diagItem).append("\n");
    }
    context.getEventHandler().handle(new InternalErrorEvent(context.getApplicationId(), diagnostic.toString()));
}
Also used : InternalErrorEvent(com.tencent.angel.master.app.InternalErrorEvent)

Aggregations

InternalErrorEvent (com.tencent.angel.master.app.InternalErrorEvent)6 Location (com.tencent.angel.common.location.Location)2 TConnection (com.tencent.angel.ipc.TConnection)2 Test (org.junit.Test)2 ThreadFactoryBuilder (com.google.common.util.concurrent.ThreadFactoryBuilder)1 PartitionKey (com.tencent.angel.PartitionKey)1 ParameterServerManager (com.tencent.angel.master.ps.ParameterServerManager)1 GetJobReportRequest (com.tencent.angel.protobuf.generated.ClientMasterServiceProtos.GetJobReportRequest)1 GetJobReportResponse (com.tencent.angel.protobuf.generated.ClientMasterServiceProtos.GetJobReportResponse)1 ParameterServer (com.tencent.angel.ps.ParameterServer)1 Worker (com.tencent.angel.worker.Worker)1 TaskContext (com.tencent.angel.worker.task.TaskContext)1 IOException (java.io.IOException)1 HashSet (java.util.HashSet)1 Set (java.util.Set)1 ApplicationAttemptId (org.apache.hadoop.yarn.api.records.ApplicationAttemptId)1