You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: sync_point_tests.rs
    path of file: ./repos/risingwave/src/storage/hummock_test/src
    
    the code of the file until where you have to start completion: // Copyright 2024 RisingWave Labs
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
use std::time::Duration;

use bytes::Bytes;
use risingwave_common::cache::CachePriority;
use risingwave_common::catalog::hummock::CompactionFilterFlag;
use risingwave_common::catalog::TableId;
use risingwave_common::hash::VirtualNode;
use risingwave_common::util::epoch::test_epoch;
use risingwave_hummock_sdk::compaction_group::StaticCompactionGroupId;
use risingwave_hummock_sdk::key::{next_key, user_key};
use risingwave_hummock_sdk::table_stats::to_prost_table_stats_map;
use risingwave_hummock_sdk::HummockVersionId;
use risingwave_meta::hummock::compaction::compaction_config::CompactionConfigBuilder;
use risingwave_meta::hummock::compaction::selector::ManualCompactionOption;
use risingwave_meta::hummock::test_utils::{setup_compute_env, setup_compute_env_with_config};
use risingwave_meta::hummock::{HummockManagerRef, MockHummockMetaClient};
use risingwave_rpc_client::HummockMetaClient;
use risingwave_storage::filter_key_extractor::FilterKeyExtractorManager;
use risingwave_storage::hummock::compactor::compactor_runner::compact;
use risingwave_storage::hummock::compacto
    
async fn test_syncpoints_sstable_object_id_manager() {
    let (_env, hummock_manager_ref, _cluster_manager_ref, worker_node) =
        setup_compute_env(8080).await;
    let hummock_meta_client: Arc<dyn HummockMetaClient> = Arc::new(MockHummockMetaClient::new(
        hummock_manager_ref.clone(),
        worker_node.id,
    ));
    let sstable_object_id_manager =
        Arc::new(SstableObjectIdManager::new(hummock_meta_client.clone(), 5));

    // Block filling cache after fetching ids.
    sync_point::hook("MAP_NEXT_SST_OBJECT_ID.BEFORE_FILL_CACHE", || async {
        sync_point::wait_timeout(
            "MAP_NEXT_SST_OBJECT_ID.SIG_FILL_CACHE",
            Duration::from_secs(10),
        )
        .await
        .unwrap();
    });

    // Start the task that fetches new ids.
    let mut sstable_object_id_manager_clone = sstable_object_id_manager.clone();
    let leader_task = tokio::spawn(async move {
        sstable_object_id_manager_clone
            .get_new_sst_object_id()
            .await
            .unwrap();
    });
    sync_point::wait_timeout(
        "MAP_NEXT_SST_OBJECT_ID.AFTER_FETCH",
        Duration::from_secs(10),
    )
    .await
    .unwrap();

    // Start tasks that waits to be notified.
    let mut follower_tasks = vec![];
    for _ in 0..3 {
        let mut sstable_object_id_manager_clone = sstable_object_id_manager.clone();
        let follower_task = tokio::spawn(async move {
            sstable_object_id_manager_clone
                .get_new_sst_object_id()
                .await
                .unwrap();
        });
        sync_point::wait_timeout(
            "MAP_NEXT_SST_OBJECT_ID.AS_FOLLOWER",
            Duration::from_secs(10),
        )
        .await
        .unwrap();
        follower_tasks.push(follower_task);
    }

    // Continue to fill cache.
    sync_point::on("MAP_NEXT_SST_OBJECT_ID.SIG_FILL_CACHE").await;

    leader_task.await.unwrap();
    for follower_task in follower_tasks {
        follower_task.await.unwrap();
    }
}