Skip to content

Commit 8322316

Browse files
committed
Remove a couple now-disused storage-collections methods
1 parent ed348f2 commit 8322316

File tree

3 files changed

+2
-90
lines changed

3 files changed

+2
-90
lines changed

src/compute-client/src/as_of_selection.rs

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -867,12 +867,10 @@ mod tests {
867867
use mz_storage_client::controller::{CollectionDescription, StorageMetadata, StorageTxn};
868868
use mz_storage_client::storage_collections::{CollectionFrontiers, SnapshotCursor};
869869
use mz_storage_types::StorageDiff;
870-
use mz_storage_types::connections::inline::InlinedConnection;
871870
use mz_storage_types::controller::{CollectionMetadata, StorageError};
872871
use mz_storage_types::errors::CollectionMissing;
873872
use mz_storage_types::parameters::StorageParameters;
874-
use mz_storage_types::sources::{GenericSourceConnection, SourceDesc};
875-
use mz_storage_types::sources::{SourceData, SourceExportDataConfig};
873+
use mz_storage_types::sources::SourceData;
876874
use mz_storage_types::time_dependence::{TimeDependence, TimeDependenceError};
877875
use timely::progress::Timestamp as TimelyTimestamp;
878876

@@ -1041,28 +1039,6 @@ mod tests {
10411039
unimplemented!()
10421040
}
10431041

1044-
async fn alter_ingestion_source_desc(
1045-
&self,
1046-
_ingestion_id: GlobalId,
1047-
_source_desc: SourceDesc,
1048-
) -> Result<(), StorageError<Self::Timestamp>> {
1049-
unimplemented!()
1050-
}
1051-
1052-
async fn alter_ingestion_export_data_configs(
1053-
&self,
1054-
_source_exports: BTreeMap<GlobalId, SourceExportDataConfig>,
1055-
) -> Result<(), StorageError<Self::Timestamp>> {
1056-
unimplemented!()
1057-
}
1058-
1059-
async fn alter_ingestion_connections(
1060-
&self,
1061-
_source_connections: BTreeMap<GlobalId, GenericSourceConnection<InlinedConnection>>,
1062-
) -> Result<(), StorageError<Self::Timestamp>> {
1063-
unimplemented!()
1064-
}
1065-
10661042
async fn alter_table_desc(
10671043
&self,
10681044
_existing_collection: GlobalId,

src/storage-client/src/storage_collections.rs

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,13 @@ use mz_repr::{GlobalId, RelationDesc, RelationVersion, Row, TimestampManipulatio
4242
use mz_storage_types::StorageDiff;
4343
use mz_storage_types::configuration::StorageConfiguration;
4444
use mz_storage_types::connections::ConnectionContext;
45-
use mz_storage_types::connections::inline::InlinedConnection;
4645
use mz_storage_types::controller::{CollectionMetadata, StorageError, TxnsCodecRow};
4746
use mz_storage_types::dyncfgs::STORAGE_DOWNGRADE_SINCE_DURING_FINALIZATION;
4847
use mz_storage_types::errors::CollectionMissing;
4948
use mz_storage_types::parameters::StorageParameters;
5049
use mz_storage_types::read_holds::ReadHold;
5150
use mz_storage_types::read_policy::ReadPolicy;
52-
use mz_storage_types::sources::{
53-
GenericSourceConnection, SourceData, SourceDesc, SourceEnvelope, SourceExportDataConfig,
54-
Timeline,
55-
};
51+
use mz_storage_types::sources::{GenericSourceConnection, SourceData, SourceEnvelope, Timeline};
5652
use mz_storage_types::time_dependence::{TimeDependence, TimeDependenceError};
5753
use mz_txn_wal::metrics::Metrics as TxnMetrics;
5854
use mz_txn_wal::txn_read::{DataSnapshot, TxnsRead};
@@ -266,34 +262,6 @@ pub trait StorageCollections: Debug + Sync {
266262
migrated_storage_collections: &BTreeSet<GlobalId>,
267263
) -> Result<(), StorageError<Self::Timestamp>>;
268264

269-
/// Alters the identified ingestion to use the provided [`SourceDesc`].
270-
///
271-
/// NOTE: Ideally, [StorageCollections] would not care about these, but we
272-
/// have to learn about changes such that when new subsources are created we
273-
/// can correctly determine a since based on its dependencies' sinces. This
274-
/// is really only relevant because newly created subsources depend on the
275-
/// remap shard, and we can't just have them start at since 0.
276-
async fn alter_ingestion_source_desc(
277-
&self,
278-
ingestion_id: GlobalId,
279-
source_desc: SourceDesc,
280-
) -> Result<(), StorageError<Self::Timestamp>>;
281-
282-
/// Alters the data config for the specified source exports of the specified ingestions.
283-
async fn alter_ingestion_export_data_configs(
284-
&self,
285-
source_exports: BTreeMap<GlobalId, SourceExportDataConfig>,
286-
) -> Result<(), StorageError<Self::Timestamp>>;
287-
288-
/// Alters each identified collection to use the correlated
289-
/// [`GenericSourceConnection`].
290-
///
291-
/// See NOTE on [StorageCollections::alter_ingestion_source_desc].
292-
async fn alter_ingestion_connections(
293-
&self,
294-
source_connections: BTreeMap<GlobalId, GenericSourceConnection<InlinedConnection>>,
295-
) -> Result<(), StorageError<Self::Timestamp>>;
296-
297265
/// Updates the [`RelationDesc`] for the specified table.
298266
async fn alter_table_desc(
299267
&self,
@@ -2134,28 +2102,6 @@ where
21342102
Ok(())
21352103
}
21362104

2137-
async fn alter_ingestion_source_desc(
2138-
&self,
2139-
ingestion_id: GlobalId,
2140-
source_desc: SourceDesc,
2141-
) -> Result<(), StorageError<Self::Timestamp>> {
2142-
Ok(())
2143-
}
2144-
2145-
async fn alter_ingestion_export_data_configs(
2146-
&self,
2147-
source_exports: BTreeMap<GlobalId, SourceExportDataConfig>,
2148-
) -> Result<(), StorageError<Self::Timestamp>> {
2149-
Ok(())
2150-
}
2151-
2152-
async fn alter_ingestion_connections(
2153-
&self,
2154-
source_connections: BTreeMap<GlobalId, GenericSourceConnection<InlinedConnection>>,
2155-
) -> Result<(), StorageError<Self::Timestamp>> {
2156-
Ok(())
2157-
}
2158-
21592105
async fn alter_table_desc(
21602106
&self,
21612107
existing_collection: GlobalId,

src/storage-controller/src/lib.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,11 +1252,6 @@ where
12521252
&mut self,
12531253
source_connections: BTreeMap<GlobalId, GenericSourceConnection<InlinedConnection>>,
12541254
) -> Result<(), StorageError<Self::Timestamp>> {
1255-
// Also have to let StorageCollections know!
1256-
self.storage_collections
1257-
.alter_ingestion_connections(source_connections.clone())
1258-
.await?;
1259-
12601255
let mut ingestions_to_run = BTreeSet::new();
12611256

12621257
for (id, conn) in source_connections {
@@ -1297,11 +1292,6 @@ where
12971292
&mut self,
12981293
source_exports: BTreeMap<GlobalId, SourceExportDataConfig>,
12991294
) -> Result<(), StorageError<Self::Timestamp>> {
1300-
// Also have to let StorageCollections know!
1301-
self.storage_collections
1302-
.alter_ingestion_export_data_configs(source_exports.clone())
1303-
.await?;
1304-
13051295
let mut ingestions_to_run = BTreeSet::new();
13061296

13071297
for (source_export_id, new_data_config) in source_exports {

0 commit comments

Comments
 (0)