incubator-pegasus icon indicating copy to clipboard operation
incubator-pegasus copied to clipboard

used call_rpcs_sync function maybe cause crash or infinite loop

Open xihong08 opened this issue 2 years ago • 1 comments

Bug Report We used pegasus 2.0 and pegasus_shell disk_capacity command to query cluster disk's Usage sometimes disk_capacity -d cause crash, sometimes cause infinite loop, it Occurs occasionally. I tracked the pegasus_shell dead and cpu 100% when i frequent use disk_capacity -d the stack roughly as follows:

#0 in std::_Rb_tree_increment(std::_Rb_tree_node_base const*) 
#1 in std::_Rb_tree_const_iterator  gcc10/include/10.2.0/bits/stl_tree.h:376
#2 in std::_Rb_tree    stl_tree.h:2531
#3 in std::_Rb_tree    stl_tree.h:2542
#4 in std::map           stl_map.h:1069
#5 in call_rpcs_sync   replication_ddl_client.h:306

rpcs.erase(rpc.first) cause this proplem The above bug most likely multithreading cause by Insecure operation at variable rpcs

xihong08 avatar Aug 06 '22 00:08 xihong08

Thanks for your report, we'll fix it later.

acelyc111 avatar Aug 11 '22 03:08 acelyc111

I want to work on this issue please assign me this issue

VirendraYadav1234 avatar Jan 13 '23 05:01 VirendraYadav1234

I want to work on this issue please assign me this issue

@VirendraYadav1234 Thanks, assigned.

acelyc111 avatar Jan 13 '23 06:01 acelyc111