Skip to main content

Read one durable compaction record

GET 

/session/compactions/:compactionId

Reads one of the session's compaction records by ID. The record includes the message range it covers and its optional parentCompactionId, so you can read any point in the lineage without inferring it from message order.

  • Errors: 404 SESSION_NOT_FOUND when the session does not exist, and 404 NOT_FOUND (compaction not found) when it has no compaction with this ID. A compaction of another session answers the same as an unknown one.

Request​

Responses​

The compaction record.

Response Headers
    X-Session-ID

    The session this response belongs to. For session-scoped requests it echoes the X-Session-ID request header; for POST /sessions/open and POST /sessions/system it is the session that was opened or created.

    X-Request-ID

    The request's correlation ID. When the request carried an X-Request-ID header holding a UUID, Peen echoes it; otherwise Peen generates a new UUID. The controller log records the same value for this request.