Merge branch 'working' into job_peek_lchen
job_peek_lchen: Add fetchfile feature (job output/error peek proxy) working: HA/Raft infrastructure (consensus, replication, config mgmt) Conflict resolution summary: - controller.capnp: fetchfile @41, fetchfilereply @18, fetchfilemsg @30 - cluster.c: bifurcated OPCode_reply for fetchfile + config-push ACK - job.c: kept full fetchfile pending-request subsystem (~183 lines) - request.c: kept both xce_fetchfile_req() and XCE_RETRY_DEFAULTS - helper.c: added missing preVoteRequest/preVoteReply mappings - All 15 new test registrations (test_cbuf.c + 14 HA tests)
This commit is contained in:
commit
3a2094a461
529 changed files with 345174 additions and 5048 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "controller.capnp.h"
|
||||
|
|
@ -147,6 +148,44 @@ char* xce_request_op_name(xce_request_t* req)
|
|||
return "setpreason";
|
||||
case OPCode_clrpreason:
|
||||
return "clrpreason";
|
||||
case OPCode_heartbeat:
|
||||
return "heartbeat";
|
||||
case OPCode_redirect:
|
||||
return "redirect";
|
||||
case OPCode_steppingDown:
|
||||
return "steppingDown";
|
||||
case OPCode_replEntry:
|
||||
return "replEntry";
|
||||
case OPCode_replAck:
|
||||
return "replAck";
|
||||
case OPCode_replSnapshot:
|
||||
return "replSnapshot";
|
||||
case OPCode_replCatchUpDone:
|
||||
return "replCatchUpDone";
|
||||
case OPCode_replConfig:
|
||||
return "replConfig";
|
||||
case OPCode_replConfigPush:
|
||||
return "replConfigPush";
|
||||
case OPCode_upgradeConfig:
|
||||
return "upgradeConfig";
|
||||
case OPCode_upgradeConfigAck:
|
||||
return "upgradeConfigAck";
|
||||
case OPCode_requestVote:
|
||||
return "requestVote";
|
||||
case OPCode_probeConfigTag:
|
||||
return "probeConfigTag";
|
||||
case OPCode_walAck:
|
||||
return "walAck";
|
||||
case OPCode_walCatchupEntry:
|
||||
return "walCatchupEntry";
|
||||
case OPCode_snapshotTransfer:
|
||||
return "snapshotTransfer";
|
||||
case OPCode_preVoteRequest:
|
||||
return "preVoteRequest";
|
||||
case OPCode_preVoteReply:
|
||||
return "preVoteReply";
|
||||
case OPCode_ctrlstatus:
|
||||
return "ctrlstatus";
|
||||
case OPCode_fetchfile:
|
||||
return "fetchfile";
|
||||
default:
|
||||
|
|
@ -332,3 +371,55 @@ char* xce_dataset_table(int table)
|
|||
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
char* xce_notify_event_name(int event)
|
||||
{
|
||||
static char buf[32];
|
||||
|
||||
switch (event) {
|
||||
case NotifyData_data_jobPidInfo:
|
||||
return "jobPidInfo";
|
||||
case NotifyData_data_jobFailInfo:
|
||||
return "jobFailInfo";
|
||||
case NotifyData_data_jobDispatchFail:
|
||||
return "jobDispatchFail";
|
||||
case NotifyData_data_jobFinishInfo:
|
||||
return "jobFinishInfo";
|
||||
case NotifyData_data_schedStartJob:
|
||||
return "schedStartJob";
|
||||
case NotifyData_data_schedExitJob:
|
||||
return "schedExitJob";
|
||||
case NotifyData_data_schedFailJob:
|
||||
return "schedFailJob";
|
||||
case NotifyData_data_schedUpdateJob:
|
||||
return "schedUpdateJob";
|
||||
case NotifyData_data_schedUpdateResvals:
|
||||
return "schedUpdateResvals";
|
||||
case NotifyData_data_stoppedJob:
|
||||
return "stoppedJob";
|
||||
case NotifyData_data_resumedJob:
|
||||
return "resumedJob";
|
||||
case NotifyData_data_ckptinfo:
|
||||
return "ckptinfo";
|
||||
case NotifyData_data_schedUpdateQueue:
|
||||
return "schedUpdateQueue";
|
||||
case NotifyData_data_taskPidInfo:
|
||||
return "taskPidInfo";
|
||||
case NotifyData_data_taskFailInfo:
|
||||
return "taskFailInfo";
|
||||
case NotifyData_data_taskFinish:
|
||||
return "taskFinish";
|
||||
case NotifyData_data_postDoneJob:
|
||||
return "postDoneJob";
|
||||
case NotifyData_data_schedJobRusages:
|
||||
return "schedJobRusages";
|
||||
case NotifyData_data_updateJob:
|
||||
return "updateJob";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
snprintf(buf, sizeof(buf), "UNKNOWN(%d)", event);
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue