@@ -47,7 +47,6 @@ use std::ops::Deref;
4747
4848use await_tree:: InstrumentAwait ;
4949use fastrace:: future:: FutureExt ;
50- use fastrace:: trace;
5150use once_cell:: sync:: OnceCell ;
5251use std:: str:: FromStr ;
5352use std:: sync:: atomic:: AtomicU64 ;
@@ -407,7 +406,6 @@ impl HybridStore {
407406 Ok ( ratio)
408407 }
409408
410- #[ trace]
411409 async fn watermark_spill ( & self ) -> Result < ( ) > {
412410 let timer = Instant :: now ( ) ;
413411 let mem_target =
@@ -419,6 +417,7 @@ impl HybridStore {
419417 timer. elapsed( ) . as_millis( )
420418 ) ;
421419
420+ let partition_num = buffers. len ( ) ;
422421 let timer = Instant :: now ( ) ;
423422 let mut flushed_size = 0u64 ;
424423 for ( uid, buffer) in buffers {
@@ -430,7 +429,8 @@ impl HybridStore {
430429 flushed_size += flushed?;
431430 }
432431 info ! (
433- "[Spill] Picked up blocks that should be async flushed with {}(bytes) that costs {}(ms)." ,
432+ "[Spill] Picked up {} partition blocks that should be async flushed with {}(bytes) that costs {}(ms)." ,
433+ partition_num,
434434 flushed_size,
435435 timer. elapsed( ) . as_millis( )
436436 ) ;
@@ -486,7 +486,6 @@ impl Store for HybridStore {
486486 insert_result
487487 }
488488
489- #[ trace]
490489 async fn get ( & self , ctx : ReadingViewContext ) -> Result < ResponseData , WorkerError > {
491490 match ctx. reading_options {
492491 ReadingOptions :: MEMORY_LAST_BLOCK_ID_AND_MAX_SIZE ( _, _) => {
@@ -496,15 +495,13 @@ impl Store for HybridStore {
496495 }
497496 }
498497
499- #[ trace]
500498 async fn get_index (
501499 & self ,
502500 ctx : ReadingIndexViewContext ,
503501 ) -> Result < ResponseDataIndex , WorkerError > {
504502 self . warm_store . as_ref ( ) . unwrap ( ) . get_index ( ctx) . await
505503 }
506504
507- #[ trace]
508505 async fn purge ( & self , ctx : PurgeDataContext ) -> Result < i64 > {
509506 let app_id = & ctx. app_id ;
510507 let mut removed_size = 0i64 ;
@@ -522,7 +519,6 @@ impl Store for HybridStore {
522519 Ok ( removed_size)
523520 }
524521
525- #[ trace]
526522 async fn is_healthy ( & self ) -> Result < bool > {
527523 async fn check_healthy ( store : Option < & Box < dyn PersistentStore > > ) -> Result < bool > {
528524 match store {
@@ -539,7 +535,6 @@ impl Store for HybridStore {
539535 Ok ( self . hot_store . is_healthy ( ) . await ? && warm && cold)
540536 }
541537
542- #[ trace]
543538 async fn require_buffer (
544539 & self ,
545540 ctx : RequireBufferContext ,
@@ -551,12 +546,10 @@ impl Store for HybridStore {
551546 . await
552547 }
553548
554- #[ trace]
555549 async fn release_ticket ( & self , ctx : ReleaseTicketContext ) -> Result < i64 , WorkerError > {
556550 self . hot_store . release_ticket ( ctx) . await
557551 }
558552
559- #[ trace]
560553 async fn register_app ( & self , ctx : RegisterAppContext ) -> Result < ( ) > {
561554 self . hot_store . register_app ( ctx. clone ( ) ) . await ?;
562555 if self . warm_store . is_some ( ) {
@@ -576,12 +569,10 @@ impl Store for HybridStore {
576569 Ok ( ( ) )
577570 }
578571
579- #[ trace]
580572 async fn name ( & self ) -> StorageType {
581573 unimplemented ! ( )
582574 }
583575
584- #[ trace]
585576 async fn spill_insert ( & self , _ctx : SpillWritingViewContext ) -> Result < ( ) , WorkerError > {
586577 todo ! ( )
587578 }
0 commit comments