Skip to content

Commit 921ec6d

Browse files
authored
remove redundant background task log entries (#6323)
1 parent a7885d1 commit 921ec6d

7 files changed

+1
-33
lines changed

nexus/src/app/background/tasks/lookup_region_port.rs

-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ impl BackgroundTask for LookupRegionPort {
5353
) -> BoxFuture<'a, serde_json::Value> {
5454
async {
5555
let log = &opctx.log;
56-
info!(&log, "lookup region port task started");
5756

5857
let mut status = LookupRegionPortStatus::default();
5958

@@ -147,8 +146,6 @@ impl BackgroundTask for LookupRegionPort {
147146
}
148147
}
149148

150-
info!(&log, "lookup region port task done");
151-
152149
json!(status)
153150
}
154151
.boxed()

nexus/src/app/background/tasks/phantom_disks.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ impl BackgroundTask for PhantomDiskDetector {
4343
) -> BoxFuture<'a, serde_json::Value> {
4444
async {
4545
let log = &opctx.log;
46-
warn!(&log, "phantom disk task started");
4746

4847
let phantom_disks = match self.datastore.find_phantom_disks().await
4948
{
@@ -83,14 +82,13 @@ impl BackgroundTask for PhantomDiskDetector {
8382
} else {
8483
info!(
8584
&log,
86-
"phandom disk {} un-deleted andset to faulted ok",
85+
"phandom disk {} un-deleted and set to faulted ok",
8786
disk.id(),
8887
);
8988
phantom_disk_deleted_ok += 1;
9089
}
9190
}
9291

93-
warn!(&log, "phantom disk task done");
9492
json!({
9593
"phantom_disk_deleted_ok": phantom_disk_deleted_ok,
9694
"phantom_disk_deleted_err": phantom_disk_deleted_err,

nexus/src/app/background/tasks/physical_disk_adoption.rs

-3
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ impl BackgroundTask for PhysicalDiskAdoption {
9696
}
9797

9898
let mut disks_added = 0;
99-
let log = &opctx.log;
100-
warn!(&log, "physical disk adoption task started");
10199

102100
let collection_id = *self.rx_inventory_collection.borrow();
103101
let Some(collection_id) = collection_id else {
@@ -171,7 +169,6 @@ impl BackgroundTask for PhysicalDiskAdoption {
171169
);
172170
}
173171

174-
warn!(&log, "physical disk adoption task done");
175172
json!({
176173
"physical_disks_added": disks_added,
177174
})

nexus/src/app/background/tasks/region_replacement.rs

-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ impl BackgroundTask for RegionReplacementDetector {
6161
) -> BoxFuture<'a, serde_json::Value> {
6262
async {
6363
let log = &opctx.log;
64-
warn!(&log, "region replacement task started");
6564

6665
let mut ok = 0;
6766
let mut err = 0;
@@ -182,8 +181,6 @@ impl BackgroundTask for RegionReplacementDetector {
182181
}
183182
}
184183

185-
warn!(&log, "region replacement task done");
186-
187184
json!({
188185
"region_replacement_started_ok": ok,
189186
"region_replacement_started_err": err,

nexus/src/app/background/tasks/region_replacement_driver.rs

-5
Original file line numberDiff line numberDiff line change
@@ -227,16 +227,11 @@ impl BackgroundTask for RegionReplacementDriver {
227227
opctx: &'a OpContext,
228228
) -> BoxFuture<'a, serde_json::Value> {
229229
async {
230-
let log = &opctx.log;
231-
info!(&log, "region replacement driver task started");
232-
233230
let mut status = RegionReplacementDriverStatus::default();
234231

235232
self.drive_running_replacements_forward(opctx, &mut status).await;
236233
self.complete_done_replacements(opctx, &mut status).await;
237234

238-
info!(&log, "region replacement driver task done");
239-
240235
json!(status)
241236
}
242237
.boxed()

nexus/src/app/background/tasks/region_snapshot_replacement_garbage_collect.rs

-11
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,6 @@ impl BackgroundTask for RegionSnapshotReplacementGarbageCollect {
129129
opctx: &'a OpContext,
130130
) -> BoxFuture<'a, serde_json::Value> {
131131
async move {
132-
let log = &opctx.log;
133-
info!(
134-
&log,
135-
"region snapshot replacement garbage collect task started",
136-
);
137-
138132
let mut status =
139133
RegionSnapshotReplacementGarbageCollectStatus::default();
140134

@@ -144,11 +138,6 @@ impl BackgroundTask for RegionSnapshotReplacementGarbageCollect {
144138
)
145139
.await;
146140

147-
info!(
148-
&log,
149-
"region snapshot replacement garbage collect task done"
150-
);
151-
152141
json!(status)
153142
}
154143
.boxed()

nexus/src/app/background/tasks/region_snapshot_replacement_start.rs

-5
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,6 @@ impl BackgroundTask for RegionSnapshotReplacementDetector {
232232
opctx: &'a OpContext,
233233
) -> BoxFuture<'a, serde_json::Value> {
234234
async {
235-
let log = &opctx.log;
236-
info!(&log, "region snapshot replacement start task started");
237-
238235
let mut status = RegionSnapshotReplacementStartStatus::default();
239236

240237
self.create_requests_for_region_snapshots_on_expunged_disks(
@@ -249,8 +246,6 @@ impl BackgroundTask for RegionSnapshotReplacementDetector {
249246
)
250247
.await;
251248

252-
info!(&log, "region snapshot replacement start task done");
253-
254249
json!(status)
255250
}
256251
.boxed()

0 commit comments

Comments
 (0)