Get desktop application:
View/edit binary Protocol Buffers messages
A batch of entries in the WAL.
Time when this batch was appended, this time is monotonically increase, and restart safe. I.e. first batch after restart will have time greater than or equal to time of last batch added before restart.
An entry in the WAL/state machine log.
Used in:
Types of log entries.
Used in:
Roll over active log segment before writing the next entry if active segment is not empty.
Serve the purpose of making sure that all entries up to the FLUSH_MARKER entry are flushed.
Async roll over active log segment, and halve the cur_max_segment_size of the next segment if it's greater than initial_max_segment_size.
A header for a log index block that are stored inside WAL segment file.
CRC32C over log index block of size `size` that follows the serialized header.
A footer for a log segment. Log segment footers might not be present (e.g. if the server crashed) so they should contain no information that cannot be obtained by actually reading the entries in the log. We use the footer to keep sparse index entries mapping op_id->offset (right now we just keep the first entry with an id in the log).
The total number of operations inside this segment.
The minimum and maximum index of a REPLICATE message in this segment. NOTE: because of log truncation, the min/max are not necessarily the first/last! For example, a log segment may contain entries "1.5, 1.6, 2.3, 3.3" due to multiple term changes. Because it's possible for a segment to have no REPLICATE messages in it, we set the default to -1 for these fields to avoid accidentally reading 0, which might look like a real log index.
The time (microseconds since epoch) when this segment was closed. NOTE: in configurations where --skip_wal_rewrite=false is specified, log segments are rewritten during bootstrap, so this field will be reset to the time of the bootstrap in each log segment on a newly-restarted server, rather than copied over from the old log segments.
Offset of the first index block. Absence means there is no log index stored in this log segment.
Minimum start time of running transactions right before closing of the log segment. It can be either of the following values: 1. Minimum start HT of running txns (if any) 2. Tablet leader safe time 3. HybridTime::kInitial if both the previous values were HybridTime::kInvalid or not fetched successfully.
Log HT of the last appended WAL Op in the segment.
A header for a log segment.
Log format major version.
Log format minor version.
The ID of the tablet this WAL segment stores entries for.
The tablet-specific sequence number of this WAL segment.
Schema used when appending entries to this log, and its version.