Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/catalog/src/durable/persist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1805,8 +1805,14 @@ impl DurableCatalogState for PersistCatalogState {
if catalog.mode == Mode::Readonly {
let updates: Vec<_> = StateUpdate::from_txn_batch(txn_batch).collect();
if !updates.is_empty() {
let collection_types: Vec<_> = updates
.iter()
.filter_map(|u| u.0.collection_type())
.collect();
return Err(DurableCatalogError::NotWritable(format!(
"cannot commit a transaction in a read-only catalog: {updates:#?}"
"cannot commit a transaction in a read-only catalog: \
{} updates across collections: {collection_types:?}",
updates.len(),
))
.into());
}
Expand Down
Loading