@@ -758,13 +758,18 @@ fn parse_memcached_output(
758758 * output += prev. as_str ( ) ;
759759 * output += matched. as_str ( ) ;
760760
761- Ok ( MemcachedShardedResult {
762- b_threads,
763- b_mem,
764- b_queries,
765- b_time,
766- b_thpt,
767- } )
761+ if output. contains ( "MEMORY ALLOCATION FAILURE" ) {
762+ println ! ( "Detected memory allocation error in memcached output" ) ;
763+ Err ( "Memory allocation failure" . into ( ) )
764+ } else {
765+ Ok ( MemcachedShardedResult {
766+ b_threads,
767+ b_mem,
768+ b_queries,
769+ b_time,
770+ b_thpt,
771+ } )
772+ }
768773}
769774
770775#[ cfg( not( feature = "baremetal" ) ) ]
@@ -804,12 +809,12 @@ fn rackscale_memcached_checkout() {
804809 }
805810
806811 println ! (
807- "CHECKOUT 0d90d53b99c3890b6e47efe08446e5180711ff09 {:?}" ,
812+ "CHECKOUT e585c23e578d79b18d703b06f26b6e10a502d129 {:?}" ,
808813 out_dir
809814 ) ;
810815
811816 let res = Command :: new ( "git" )
812- . args ( & [ "checkout" , "0d90d53b99c3890b6e47efe08446e5180711ff09 " ] )
817+ . args ( & [ "checkout" , "e585c23e578d79b18d703b06f26b6e10a502d129 " ] )
813818 . current_dir ( out_dir_path. as_path ( ) )
814819 . output ( )
815820 . expect ( "git checkout failed" ) ;
@@ -902,7 +907,9 @@ fn s11_rackscale_memcached_benchmark_sharded_linux() {
902907 format ! ( "tcp://localhost:{}" , 11212 + id)
903908 } else {
904909 let pathname = config. path . join ( format ! ( "memcached{id}.sock" ) ) ;
905- remove_file ( pathname. clone ( ) ) ; // make sure the socket file is removed
910+ if pathname. is_file ( ) {
911+ remove_file ( pathname. clone ( ) ) . expect ( "Failed to remove path" ) ; // make sure the socket file is removed
912+ }
906913 format ! ( "unix://{}" , pathname. display( ) )
907914 } ;
908915
@@ -1020,7 +1027,7 @@ fn s11_rackscale_memcached_benchmark_sharded_linux() {
10201027 let r = csv_file. write ( out. as_bytes ( ) ) ;
10211028 assert ! ( r. is_ok( ) ) ;
10221029
1023- let r = pty. process . kill ( SIGKILL ) ;
1030+ let _r = pty. process . kill ( SIGKILL ) ;
10241031
10251032 // single node
10261033 for protocol in & [ "tcp" , "unix" ] {
@@ -1073,11 +1080,11 @@ fn s11_rackscale_memcached_benchmark_sharded_linux() {
10731080 println ! ( "Timeout while waiting for {} ms\n " , timeout. as_millis( ) ) ;
10741081 println ! ( "Expected: `{expected}`\n " ) ;
10751082 println ! ( "Got:" , ) ;
1076- for l in got. lines ( ) . take ( 5 ) {
1083+ for l in got. lines ( ) . take ( 20 ) {
10771084 println ! ( " > {l}" ) ;
10781085 }
10791086 } else {
1080- println ! ( "error: {}" , e) ;
1087+ panic ! ( "error: {}" , e) ;
10811088 }
10821089
10831090 let r = csv_file. write ( format ! ( "{}," , env!( "GIT_HASH" ) ) . as_bytes ( ) ) ;
@@ -1379,7 +1386,9 @@ fn s11_rackscale_memcached_benchmark_sharded_nros() {
13791386 } ;
13801387 bench. run_bench ( false , is_smoke) ;
13811388 for mut ping in pings. into_iter ( ) {
1382- ping. process . kill ( SIGKILL ) ;
1389+ if !ping. process . kill ( SIGKILL ) . is_ok ( ) {
1390+ println ! ( "Failed to kill ping process" ) ;
1391+ }
13831392 }
13841393}
13851394
0 commit comments