Skip to content

Commit

Permalink
rfc44: add truncate event
Browse files Browse the repository at this point in the history
Problem: RFC 44 does not provide for the possibility of truncating
the resource journal of events.

Add a truncate event to RFC 44 for this purpose.
  • Loading branch information
grondo committed Feb 14, 2025
1 parent ab52bad commit b0f0762
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec_44.rst
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,20 @@ The event context SHALL contain the following keys:
}
}
truncate
--------
The in-memory eventlog MAY be configured with a maximum size to prevent
unbounded growth. When events are dropped to maintain this size, they
SHALL be replaced with a ``truncate`` event to indicate that truncation
has occurred. The timestamp of the ``truncate`` event SHALL be that of
the most recently dropped event. A ``truncate`` event SHALL always be the
first event in a truncated eventlog.
This event SHALL NOT be posted to the KVS ``resource.eventlog``.
This event SHALL NOT have a context.
Journal
=======
Expand Down

0 comments on commit b0f0762

Please sign in to comment.