Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
zwang28 committed Sep 27, 2024
1 parent 0aa1fc4 commit 3ec1aea
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/meta/src/hummock/manager/gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,13 @@ impl HummockManager {
sst_retention_time,
Duration::from_secs(self.env.opts.min_sst_retention_time_sec),
);
let start_after = self.full_gc_state.next_start_after();
let limit = self.full_gc_state.limit;
tracing::info!(
retention_sec = sst_retention_time.as_secs(),
prefix = prefix.as_ref().unwrap_or(&String::from("")),
start_after,
limit,
"run full GC"
);

Expand All @@ -205,8 +209,8 @@ impl HummockManager {
.send_event(ResponseEvent::FullScanTask(FullScanTask {
sst_retention_time_sec: sst_retention_time.as_secs(),
prefix,
start_after: self.full_gc_state.next_start_after(),
limit: self.full_gc_state.limit,
start_after,
limit,
}))
.map_err(|_| Error::CompactorUnreachable(compactor.context_id()))?;
Ok(true)
Expand Down
4 changes: 3 additions & 1 deletion src/meta/src/hummock/manager/timer_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,10 @@ impl HummockManager {
}

HummockTimerEvent::FullGc => {
let retention_sec =
hummock_manager.env.opts.min_sst_retention_time_sec;
if hummock_manager
.start_full_gc(Duration::from_secs(3600), None)
.start_full_gc(Duration::from_secs(retention_sec), None)
.is_ok()
{
tracing::info!("Start full GC from meta node.");
Expand Down
1 change: 1 addition & 0 deletions src/object_store/src/object/s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,7 @@ impl Stream for S3ObjectIter {
.bucket(&self.bucket)
.prefix(&self.prefix);
if let Some(start_after) = self.start_after.as_ref() {
#[cfg(not(madsim))]
request = request.start_after(start_after);
}
if let Some(continuation_token) = self.next_continuation_token.as_ref() {
Expand Down

0 comments on commit 3ec1aea

Please sign in to comment.