Skip to content
Permalink
Browse files
bin_leak issues over long process lists solved.
nodes with lots of processes can see the GC call fail if said
processes failed between long calls within the `bin_leak` function call.

This patch inserts correct dummy values to avoid the issue.
  • Loading branch information
ferd committed Aug 15, 2013
1 parent e293c18 commit 9c356fc53701dddf373c71e0db66f40fcb1e651e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
@@ -12,6 +12,9 @@ Documentation for the library can be obtained at http://ferd.github.io/recon/
Changelog
---------

- 0.4.1: fixed bug where nodes with lots of processes could see the GC call
fail if said processes failed between long calls within the `bin_leak`
function call.
- 0.4.0: fixed bug where nodes with lots of processes or ports could see their
count or window functions fail because a process or socket closed between the
time the function started and before it finished. This ends up changing the
@@ -1,6 +1,6 @@
{application, recon,
[{description, "Diagnostic tools for production use"},
{vsn, "0.4.0"},
{vsn, "0.4.1"},
{modules, [recon]},
{registered, []},
{applications, [kernel, stdlib]}]}.
@@ -214,7 +214,7 @@ bin_leak(N) ->
{ok, {_,Post,_}} = recon_lib:proc_attrs(binary, Pid),
{Pid, length(Post)-length(Pre), Id}
catch
_:_ -> {Pid, 0}
_:_ -> {Pid, 0, []}
end || Pid <- processes()]),
N).

0 comments on commit 9c356fc

Please sign in to comment.