Branch: 1.9.0-beta
Erl: 20.3
When deploying we've noticed a number of nodes with crashes caused by corrupted GeoLite2-City.mmdb.gz downloads and it has been quite difficult to replicate
After trial and error playing with netem to introduce network issues we seem to be able to consistently replicate when introducing packet loss.
I'm not sure if this is a bug in locus or in httpc stream handling as there are no errors received in locus_http_download:handle_httpc_message/2
It runs through the intended stream_start -> stream -> stream_end with no errors, but the resulting data is corrupt
To replicate consistently I used a fairly high packet loss setting:
sudo tc qdisc add dev eth0 root netem loss 25%
to disable after testing use:
sudo tc qdisc del dev eth0 root
diff and console output: https://gist.github.com/leonardb/4d2b1755d13af1e65830b61767d18c68
Branch: 1.9.0-beta
Erl: 20.3
When deploying we've noticed a number of nodes with crashes caused by corrupted GeoLite2-City.mmdb.gz downloads and it has been quite difficult to replicate
After trial and error playing with
netemto introduce network issues we seem to be able to consistently replicate when introducing packet loss.I'm not sure if this is a bug in locus or in httpc stream handling as there are no errors received in
locus_http_download:handle_httpc_message/2It runs through the intended
stream_start->stream->stream_endwith no errors, but the resulting data is corruptTo replicate consistently I used a fairly high packet loss setting:
sudo tc qdisc add dev eth0 root netem loss 25%to disable after testing use:
sudo tc qdisc del dev eth0 rootdiff and console output: https://gist.github.com/leonardb/4d2b1755d13af1e65830b61767d18c68