Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(meta): persist hummock version checkpoint in object store #8631

Merged
merged 11 commits into from
Mar 29, 2023
Prev Previous commit
Next Next commit
fix test
zwang28 committed Mar 21, 2023
commit d6f3de06739dec4d15cc4d0c596ce32c0b8c66fe
1 change: 1 addition & 0 deletions src/meta/src/hummock/compaction_scheduler.rs
Original file line number Diff line number Diff line change
@@ -640,6 +640,7 @@ mod tests {
use crate::manager::LocalNotification;

let (env, hummock_manager, _cluster_manager, worker_node) = setup_compute_env(80).await;
env.notification_manager().clear_local_sender().await;
let context_id = worker_node.id;
let compactor_manager = hummock_manager.compactor_manager_ref_for_test();
let compaction_scheduler = CompactionScheduler::new(
5 changes: 5 additions & 0 deletions src/meta/src/manager/notification.rs
Original file line number Diff line number Diff line change
@@ -245,6 +245,11 @@ where
core_guard.local_senders.push(sender);
}

#[cfg(test)]
pub async fn clear_local_sender(&self) {
self.core.lock().await.local_senders.clear();
}

pub async fn current_version(&self) -> NotificationVersion {
let version_guard = self.current_version.lock().await;
version_guard.version()