external_service icon indicating copy to clipboard operation
external_service copied to clipboard

Using `:fault_injection` strategy causes `:fuse_monitor` to fail

Open davidsulc opened this issue 5 years ago • 4 comments

Using v 0.9.1, execute the following in iex:

ExternalService.start(:some_name, fuse_strategy: {:fault_injection, 0.5, 5, 1_000})

If you wait a while (1 minute?), it fails with:

20:59:03.131 [error] GenServer :fuse_monitor terminating
** (FunctionClauseError) no function clause matching in :fuse_monitor.update/2

With a reference to fuse/src/fuse_monitor.erl:91: :fuse_monitor.update({:some_name, {:gradual, 0.5}}, [])

davidsulc avatar Mar 11 '19 20:03 davidsulc

Thanks @davidsulc, I'll take a look into this.

jvoegele avatar Mar 12 '19 12:03 jvoegele

FYI it seems this in an upstream issue: https://github.com/jlouis/fuse/issues/28

davidsulc avatar Mar 17 '19 19:03 davidsulc

There should be a fix of this as of 2.4.5 (which hasn't been released yet, but I'll do that once tests have been run, etc).

jlouis avatar Jul 01 '21 11:07 jlouis

Updated to fuse 2.5 so this should be resolved.

@davidsulc: Please verify if this is still an issue for you.

jvoegele avatar Sep 30 '21 20:09 jvoegele