Skip to content

Commit

Permalink
Increase minimum possible offset after appending events
Browse files Browse the repository at this point in the history
Co-authored-by: Sam <[email protected]>
Co-authored-by: Ben Robey <[email protected]>
Co-authored-by: Steve Stenzel <[email protected]>
  • Loading branch information
4 people committed Sep 15, 2023
1 parent 8fe2cb9 commit 75916d8
Show file tree
Hide file tree
Showing 10 changed files with 446 additions and 128 deletions.
77 changes: 77 additions & 0 deletions go.sum

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions internal/cluster/internal/registrypb/registration_primo.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 35 additions & 11 deletions internal/eventstream/internal/journalpb/record_primo.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

97 changes: 51 additions & 46 deletions internal/integration/internal/journalpb/record.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions internal/integration/internal/journalpb/record.proto
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ message CommandHandled {
// chronological order.
repeated dogma.protobuf.Envelope events = 2;

// StreamId is the ID of the stream to which the events will be appended.
dogma.protobuf.UUID stream_id = 3;
// EventStreamId is the ID of the stream to which the events will be appended.
dogma.protobuf.UUID event_stream_id = 3;

// StreamOffset is the next offset of the stream, at the time it was selected.
uint64 stream_offset = 4;
// LowestPossibleEventOffset is the next offset of the stream, at the time it
// was selected.
uint64 lowest_possible_event_offset = 4;
}

// CommandHandlerFailed is a journal record that the handler returned an error
Expand All @@ -56,9 +57,9 @@ message EventsAppendedToStream {
// CommandId is the ID of the command that produced the events.
dogma.protobuf.UUID command_id = 1;

// StreamId is the ID of the stream to which the events were appended.
dogma.protobuf.UUID stream_id = 2;
// EventStreamId is the ID of the stream to which the events were appended.
dogma.protobuf.UUID event_stream_id = 2;

// Offset is the offset of the first event.
uint64 offset = 3;
// EventOffset is the offset of the first event.
uint64 event_offset = 3;
}
Loading

0 comments on commit 75916d8

Please sign in to comment.