Skip to content

Commit

Permalink
fix(compactor): Fix an unexpected termination of shared compactor (ri…
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] and Li0k authored Nov 21, 2024
1 parent 03dd384 commit 14480cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/storage/compactor/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,9 @@ pub async fn shared_compactor_serve(
await_tree_reg,
};

risingwave_storage::hummock::compactor::start_shared_compactor(
// TODO(shutdown): don't collect there's no need to gracefully shutdown them.
// Hold the join handle and tx to keep the compactor running.
let _compactor_handle = risingwave_storage::hummock::compactor::start_shared_compactor(
grpc_proxy_client,
receiver,
compactor_context,
Expand Down
2 changes: 2 additions & 0 deletions src/storage/src/hummock/compactor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ impl Compactor {
/// The background compaction thread that receives compaction tasks from hummock compaction
/// manager and runs compaction tasks.
#[cfg_attr(coverage, coverage(off))]
#[must_use]
pub fn start_compactor(
compactor_context: CompactorContext,
hummock_meta_client: Arc<dyn HummockMetaClient>,
Expand Down Expand Up @@ -608,6 +609,7 @@ pub fn start_compactor(
/// The background compaction thread that receives compaction tasks from hummock compaction
/// manager and runs compaction tasks.
#[cfg_attr(coverage, coverage(off))]
#[must_use]
pub fn start_shared_compactor(
grpc_proxy_client: GrpcCompactorProxyClient,
mut receiver: mpsc::UnboundedReceiver<Request<DispatchCompactionTaskRequest>>,
Expand Down

0 comments on commit 14480cf

Please sign in to comment.