Skip to content

Conversation

@wdberkeley
Copy link
Owner

This makes the reconciler commit objects to the metastore, and drives the LRO using the metastore's response.

There're still some rough parts, especially around topic id handling and errors, and it can't be well-tested until there's an L1 reader, and I need to (either here or in a follow-up) change LRO handling to use the ctp_stm.

So, for now, it's a draft.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v25.1.x
  • v24.3.x
  • v24.2.x

Release Notes

  • none

This alters the reconciler so it builds and uploads proper L1 objects,
using the l1::io and l1::object_builder abstractions.

A follow-up will change the commit and LRO offset portions of the
reconciler to use the metastore and the ctp_stm.
This prepares the reconciler to use the metastore to manager
L1 metadata.
The metastore speaks topic ID, so the reconciler needs to.
The metastore may partition objects into separate domains. The
reconciler must build objects according to this partitioning, so the
metastore metadata building process must be used to coordinate the
object building process.
This commits the objects to the metastore once they've been built and
uploaded.
This updates the LRO for partitions based on the metastore's response to
the add_objects call, which may contain correction to the LRO.
wdberkeley added a commit that referenced this pull request Sep 9, 2025
This change improves the handling of exceptions in the L1 reader in the
following ways:
1. It removes try-catch blocks in favor of ss::coroutine::as_future.
2. It ensures that object readers are closed even in exceptional
   situations (using #1).
@wdberkeley wdberkeley force-pushed the bob-the-l1-object-builder branch 2 times, most recently from 99aeb53 to 0723ccc Compare September 9, 2025 22:09
wdberkeley added a commit that referenced this pull request Sep 15, 2025
This change improves the handling of exceptions in the L1 reader in the
following ways:
1. It removes try-catch blocks in favor of ss::coroutine::as_future.
2. It ensures that object readers are closed even in exceptional
   situations (using #1).
wdberkeley pushed a commit that referenced this pull request Sep 16, 2025
`ct/l1`: add `meta` and `logger` [CT - Compaction #1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant