You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yosukehara
changed the title
[leo_object_storage] elements in pid_pairs may leak when the exec time of a compaction|diagnose is too short
[data-compaction][leo_object_storage] elements in pid_pairs may leak when the exec time of a compaction|diagnose is too short
Feb 27, 2018
https://github.com/leo-project/leo_object_storage/blob/1.3.0/src/leo_compact_fsm_controller.erl#L694
As erlang:monitor is called in async according to its document,
so there is a possibility that a process which was supposed to be monitored died before getting to be monitored so that the controller process couldn't get a 'DOWN' message and the leak happened.
I believe that erlang:spawn_monitor will solve but just in case also initialize pid_pairs to empty when starting a compaction|diagnose
The text was updated successfully, but these errors were encountered: