@@ -216,10 +216,6 @@ fn check_first_evict_bench() {
216216}
217217
218218fn trigger_eviction ( eviction_channel : Sender < EvictorMessage > ) -> io:: Result < ( ) > {
219- tracing:: info!(
220- "[trigger_eviction] Thread {:?} triggering eviction and BLOCKING for response" ,
221- std:: thread:: current( ) . id( )
222- ) ;
223219 let ( resp_tx, resp_rx) = flume:: bounded ( 1 ) ;
224220 if let Err ( e) = eviction_channel. send ( EvictorMessage { sender : resp_tx } ) {
225221 tracing:: error!( "[append] Failed to send eviction message: {}" , e) ;
@@ -229,18 +225,9 @@ fn trigger_eviction(eviction_channel: Sender<EvictorMessage>) -> io::Result<()>
229225 ) ) ;
230226 } ;
231227
232- tracing:: info!(
233- "[trigger_eviction] Thread {:?} WAITING for eviction response..." ,
234- std:: thread:: current( ) . id( )
235- ) ;
236228 match resp_rx. recv ( ) {
237229 Ok ( result) => match result {
238- Ok ( _) => {
239- tracing:: info!(
240- "[trigger_eviction] Thread {:?} eviction completed successfully, UNBLOCKING" ,
241- std:: thread:: current( ) . id( )
242- ) ;
243- }
230+ Ok ( _) => { }
244231 Err ( e) => {
245232 tracing:: error!(
246233 "[trigger_eviction] Thread {:?} eviction FAILED: {}" ,
@@ -292,21 +279,13 @@ impl Zoned {
292279 } ,
293280 Err ( error) => match error {
294281 ZoneObtainFailure :: EvictNow => {
295- tracing:: warn!( "[get_free_zone] Thread {:?} got EvictNow (is_eviction={})" ,
296- std:: thread:: current( ) . id( ) , is_eviction) ;
297282 Err ( io:: Error :: new ( ErrorKind :: StorageFull , "Cache is full" ) )
298283 }
299284 ZoneObtainFailure :: Wait => {
300- tracing:: info!( "[get_free_zone] Thread {:?} entering condvar wait (is_eviction={}, free={}, open={})" ,
301- std:: thread:: current( ) . id( ) , is_eviction, zone_list. free_zones. len( ) , zone_list. open_zones. len( ) ) ;
302285 loop {
303286 zone_list = wait_notify. wait ( zone_list) . unwrap ( ) ;
304- tracing:: info!( "[get_free_zone] Thread {:?} woke up from condvar (is_eviction={}, free={}, open={})" ,
305- std:: thread:: current( ) . id( ) , is_eviction, zone_list. free_zones. len( ) , zone_list. open_zones. len( ) ) ;
306287 match zone_list. remove_with_eviction_bypass ( is_eviction) {
307288 Ok ( idx) => {
308- tracing:: info!( "[get_free_zone] Thread {:?} got zone {} after wait" ,
309- std:: thread:: current( ) . id( ) , idx) ;
310289 return Ok ( idx) ;
311290 } ,
312291 Err ( err) => match err {
@@ -316,8 +295,6 @@ impl Zoned {
316295 return Err ( io:: Error :: new ( ErrorKind :: Other , "Cache is full" ) ) ;
317296 }
318297 ZoneObtainFailure :: Wait => {
319- tracing:: info!( "[get_free_zone] Thread {:?} needs to wait again" ,
320- std:: thread:: current( ) . id( ) ) ;
321298 continue ;
322299 } ,
323300 } ,
@@ -342,12 +319,7 @@ impl Zoned {
342319 // come and try to open a new zone if needed.
343320 // Skip notification during eviction batch writes to avoid race condition
344321 if !suppress_notify {
345- tracing:: info!( "[complete_write] Zone {} finished, notifying ALL waiters (free={}, open={})" ,
346- zone_idx, zone_list. free_zones. len( ) , zone_list. open_zones. len( ) ) ;
347322 notify. notify_all ( ) ;
348- } else {
349- tracing:: info!( "[complete_write] Zone {} finished during eviction, SUPPRESSING notify (free={}, open={})" ,
350- zone_idx, zone_list. free_zones. len( ) , zone_list. open_zones. len( ) ) ;
351323 }
352324
353325 Ok ( ( ) )
@@ -735,7 +707,6 @@ impl Device for Zoned {
735707 // Remove from open_zones so no new chunks can be allocated from this zone
736708 zones. open_zones . retain ( |z| z != zone) ;
737709 }
738- tracing:: info!( "[Evict:Chunk] Locked {} zones for cleaning" , clean_locations. len( ) ) ;
739710 }
740711
741712 // Cleaning
@@ -791,12 +762,6 @@ impl Device for Zoned {
791762 // Writer callback
792763 |payloads : Vec < ( CacheKey , bytes:: Bytes ) > | {
793764 async move {
794- tracing:: info!(
795- "[evict:Chunk] Starting zone {} cleaning, {} valid chunks to relocate" ,
796- zone,
797- payloads. len( )
798- ) ;
799-
800765 // Remove old LRU entries FIRST, before reset_zone makes the zone available again
801766 // This prevents relocated chunks from being accidentaly added then removed
802767 {
@@ -813,11 +778,7 @@ impl Device for Zoned {
813778 . unwrap ( ) ;
814779 let ( zone_mtx, cv) = & * self_clone. zones ;
815780 let mut zones = zone_mtx. lock ( ) . unwrap ( ) ;
816- tracing:: info!( "[evict:Chunk] Resetting zone {} (free={}, open={} before reset)" ,
817- zone, zones. free_zones. len( ) , zones. open_zones. len( ) ) ;
818781 zones. reset_zone ( * zone, & * self_clone) ?;
819- tracing:: info!( "[evict:Chunk] Zone {} reset complete (free={}, open={} after reset)" ,
820- zone, zones. free_zones. len( ) , zones. open_zones. len( ) ) ;
821782 cv
822783 } ; // Drop the mutex, so we don't have to put it in an await
823784
@@ -827,17 +788,13 @@ impl Device for Zoned {
827788 let data_vec: Vec < _ > =
828789 payloads. iter ( ) . map ( |( _, data) | data. clone ( ) ) . collect ( ) ;
829790
830- // Used to verify no RACE, TODO: Remove!
831- // tokio::time::sleep(Duration::from_secs(5)).await;
832-
833791 let ( batch_tx, batch_rx) = flume:: bounded ( 1 ) ;
834792
835793 let batch_request = BatchWriteRequest {
836794 data : data_vec,
837795 responder : batch_tx,
838796 } ;
839797
840- tracing:: info!( "[evict:Chunk] Sending batch write for zone {} with {} chunks" , zone, batch_request. data. len( ) ) ;
841798 writer_pool. send_priority_batch ( batch_request) . await ?;
842799
843800 let batch_response =
@@ -866,12 +823,6 @@ impl Device for Zoned {
866823
867824 let write_results = write_results?;
868825
869- tracing:: info!(
870- "[evict:Chunk] Batch write completed for zone {}, {} chunks written, notifying ALL waiters" ,
871- zone,
872- write_results. len( )
873- ) ;
874-
875826 // Notify waiting writers AFTER batch write completes successfully
876827 cv. notify_all ( ) ;
877828
0 commit comments