luoyuxia commented on code in PR #189:
URL: https://github.com/apache/fluss-rust/pull/189#discussion_r2719449748
##########
crates/fluss/src/cluster/cluster.rs:
##########
@@ -77,23 +80,62 @@ impl Cluster {
.filter_map(|id| self.table_path_by_id.get(id))
.collect();
- let available_locations_by_path = self
- .available_locations_by_path
- .iter()
- .filter(|&(path, _)| !table_paths.contains(path))
- .map(|(path, locations)| (path.clone(), locations.clone()))
- .collect();
+ let (available_locations_by_path, available_locations_by_bucket) =
+ self.filter_bucket_locations_by_path(&table_paths);
- let available_locations_by_bucket = self
- .available_locations_by_bucket
+ Cluster::new(
+ self.coordinator_server.clone(),
+ alive_tablet_servers_by_id,
+ available_locations_by_path,
+ available_locations_by_bucket,
+ self.table_id_by_path.clone(),
+ self.table_info_by_path.clone(),
+ )
+ }
+
+ pub fn invalidate_physical_table_bucket_meta(
Review Comment:
```suggestion
pub fn invalidate_physical_table_meta(
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]