fping icon indicating copy to clipboard operation
fping copied to clipboard

Reachability status are not reliable when we execute the fping in parallel

Open vthangar0202 opened this issue 5 years ago • 6 comments

We are hitting this issue in Fping Version 4.2.

for one our requirement , we are doing icmp ping in batch by batch (60 devices ip per batch) with multiple java thread.

in this case , we are getting the status as alive even if the particular IP is un-reachable. if i ping that device alone immediately , its showing the status as Un-reachable. Hitting this issue inconsistently. Any known issues? Please let me know.

vthangar0202 avatar Jun 02 '20 09:06 vthangar0202

Same scenario is working fine with the fping version 3.10

vthangar0202 avatar Jun 02 '20 09:06 vthangar0202

I think this is a side effect of https://github.com/schweikert/fping/commit/1486bf209baa49724c7f776463d2ba5858fa0ff4

That commit should be reverted until we can do it properly. I've got some work-in-progress stuff in my own tree to that end.

tycho avatar Jun 21 '20 19:06 tycho

@tycho note that 1486bf2 is not part of fping 4.2, but it could be the same issue that you wanted to fix with that patch.

schweikert avatar Jun 22 '20 05:06 schweikert

Well maybe it's a different issue then, but the symptoms are similar. If I did fping in parallel after commit 1486bf2, sometimes different fping processes would incorrectly think that the response was intended for them. I added this commit in my tree which resolved it there: https://github.com/tycho/fping/commit/d2dda2d99a96cfd2fbfc031b4b784f008fdbf2d9

tycho avatar Jun 22 '20 05:06 tycho

Can you reproduce with fping 5.0?

schweikert avatar Aug 05 '20 12:08 schweikert

I had the same issue running fping 4.3-1. Now I upgraded to version 5 and the reachability status is fine again when running fping in parallel.

mhusmann avatar Aug 09 '20 14:08 mhusmann