3.4.1 The ndb_logevent Structure

Description.  This structure models a Cluster log event, and is used for storing and retrieving log event information.

Definition.  ndb_logevent has 8 members, the first 7 of which are shown in the following list:

The 8th member of this structure contains data specific to the log event, and is dependent on its type. It is defined as the union of a number of data structures, each corresponding to a log event type. Which structure to use is determined by the value of type, and is shown in the following table:

Ndb_logevent_type ValueStructure
NDB_LE_ConnectedConnected:
unsigned node
NDB_LE_DisconnectedDisconnected:
unsigned node
NDB_LE_CommunicationClosedCommunicationClosed:
unsigned node
NDB_LE_CommunicationOpenedCommunicationOpened:
unsigned node
NDB_LE_ConnectedApiVersionConnectedApiVersion:
unsigned node
unsigned version
NDB_LE_GlobalCheckpointStartedGlobalCheckpointStarted:
unsigned gci
NDB_LE_GlobalCheckpointCompletedGlobalCheckpointCompleted:
unsigned gci
NDB_LE_LocalCheckpointStartedLocalCheckpointStarted:
unsigned lci
unsigned keep_gci
unsigned restore_gci
NDB_LE_LocalCheckpointCompletedLocalCheckpointCompleted:
unsigned lci
NDB_LE_LCPStoppedInCalcKeepGciLCPStoppedInCalcKeepGci:
unsigned data
NDB_LE_LCPFragmentCompletedLCPFragmentCompleted:
unsigned node
unsigned table_id
unsigned fragment_id
NDB_LE_UndoLogBlockedUndoLogBlocked:
unsigned acc_count
unsigned tup_count
NDB_LE_NDBStartStartedNDBStartStarted:
unsigned version
NDB_LE_NDBStartCompletedNDBStartCompleted:
unsigned version
NDB_LE_STTORRYRecievedSTTORRYRecieved:
[NONE]
NDB_LE_StartPhaseCompletedStartPhaseCompleted:
unsigned phase
unsigned starttype
NDB_LE_CM_REGCONFCM_REGCONF:
unsigned own_id
unsigned president_id
unsigned dynamic_id
NDB_LE_CM_REGREFCM_REGREF:
unsigned own_id
unsigned other_id
unsigned cause
NDB_LE_FIND_NEIGHBOURSFIND_NEIGHBOURS:
unsigned own_id
unsigned left_id
unsigned right_id
unsigned dynamic_id
NDB_LE_NDBStopStartedNDBStopStarted:
unsigned stoptype
NDB_LE_NDBStopCompletedNDBStopCompleted:
unsigned action
unsigned signum
NDB_LE_NDBStopForcedNDBStopForced:
unsigned action
unsigned signum
unsigned error
unsigned sphase
unsigned extra
NDB_LE_NDBStopAbortedNDBStopAborted:
[NONE]
NDB_LE_StartREDOLogStartREDOLog:
unsigned node
unsigned keep_gci
unsigned completed_gci
unsigned restorable_gci
NDB_LE_StartLogStartLog:
unsigned log_part
unsigned start_mb
unsigned stop_mb
unsigned gci
NDB_LE_UNDORecordsExecutedUNDORecordsExecuted:
unsigned block
unsigned data1
unsigned data2
unsigned data3
unsigned data4
unsigned data5
unsigned data6
unsigned data7
unsigned data8
unsigned data9
unsigned data10
NDB_LE_NR_CopyDictNR_CopyDict:
[NONE]
NDB_LE_NR_CopyDistrNR_CopyDistr:
[NONE]
NDB_LE_NR_CopyFragsStartedNR_CopyFragsStarted:
unsigned dest_node
NDB_LE_NR_CopyFragDoneNR_CopyFragDone:
unsigned dest_node
unsigned table_id
unsigned fragment_id
NDB_LE_NR_CopyFragsCompletedNR_CopyFragsCompleted:
unsigned dest_node
NDB_LE_NodeFailCompletedNodeFailCompleted:
unsigned block
unsigned failed_node
unsigned completing_node
(For block and completing_node, 0 is interpreted as all.)
NDB_LE_NODE_FAILREPNODE_FAILREP:
unsigned failed_node
unsigned failure_state
NDB_LE_ArbitStateArbitState:
unsigned code
unsigned arbit_node
unsigned ticket_0
unsigned ticket_1
NDB_LE_ArbitResultArbitResult:
unsigned code
unsigned arbit_node
unsigned ticket_0
unsigned ticket_1
NDB_LE_GCP_TakeoverStartedGCP_TakeoverStarted:
[NONE]
NDB_LE_GCP_TakeoverCompletedGCP_TakeoverCompleted:
[NONE]
NDB_LE_LCP_TakeoverStartedLCP_TakeoverStarted:
[NONE]
NDB_LE_TransReportCountersTransReportCounters:
unsigned trans_count
unsigned commit_count
unsigned read_count
unsigned simple_read_count
unsigned write_count
unsigned attrinfo_count
unsigned conc_op_count
unsigned abort_count
unsigned scan_count
unsigned range_scan_count
NDB_LE_OperationReportCountersOperationReportCounters:
unsigned ops
NDB_LE_TableCreatedTableCreated:
unsigned table_id
NDB_LE_JobStatisticJobStatistic:
unsigned mean_loop_count
NDB_LE_SendBytesStatisticSendBytesStatistic:
unsigned to_node
unsigned mean_sent_bytes
NDB_LE_ReceiveBytesStatisticReceiveBytesStatistic:
unsigned from_node
unsigned mean_received_bytes
NDB_LE_MemoryUsageMemoryUsage:
int      gth
unsigned page_size_kb
unsigned pages_used
unsigned pages_total
unsigned block
NDB_LE_TransporterErrorTransporterError:
unsigned to_node
unsigned code
NDB_LE_TransporterWarningTransporterWarning:
unsigned to_node
unsigned code
NDB_LE_MissedHeartbeatMissedHeartbeat:
unsigned node
unsigned count
NDB_LE_DeadDueToHeartbeatDeadDueToHeartbeat:
unsigned node
NDB_LE_WarningEventWarningEvent:
[NOT YET IMPLEMENTED]
NDB_LE_SentHeartbeatSentHeartbeat:
unsigned node
NDB_LE_CreateLogBytesCreateLogBytes:
unsigned node
NDB_LE_InfoEventInfoEvent:
[NOT YET IMPLEMENTED]
NDB_LE_EventBufferStatusEventBufferStatus:
unsigned usage
unsigned alloc
unsigned max
unsigned apply_gci_l
unsigned apply_gci_h
unsigned latest_gci_l
unsigned latest_gci_h
NDB_LE_BackupStartedBackupStarted:
unsigned starting_node
unsigned backup_id
NDB_LE_BackupFailedToStartBackupFailedToStart:
unsigned starting_node
unsigned error
NDB_LE_BackupCompletedBackupCompleted:
unsigned starting_node
unsigned backup_id
unsigned start_gci
unsigned stop_gci
unsigned n_records 
unsigned n_log_records
unsigned n_bytes
unsigned n_log_bytes
NDB_LE_BackupAbortedBackupAborted:
unsigned starting_node
unsigned backup_id
unsigned error
NDB_LE_SingleUserSingleUser:
unsigned type
unsigned node_id
NDB_LE_StartReportStartReport:
unsigned report_type
unsigned remaining_time
unsigned bitmask_size
unsigned bitmask_data[1]