Hi ,
I need help. I can’t figure it out.
We do live upgrades, and during the testing a weird error occurred.
{function_clause, [{lists,foldl, [#Fun<wep_workflow_executor.8.100719303>, #{{{mddb_wfm_check_endpoint,1},mddb_wfm_check_endpoint} => #{}, {{mddb_wfm_convert_input,2},mddb_wfm_convert_input} => #{}, {{mddb_wfm_gather_input,4},mddb_wfm_gather_input} => #{}, {{mddb_wfm_get,5},mddb_wfm_get} => #{}, {{mddb_wfm_redirect,3},mddb_wfm_redirect} => #{}}, []], [{file,"lists.erl"},{line,1266}]},
If I understand it correctly at some point is_function(F, 2) should return false to get this error.
foldl(F, Accu, [Hd|Tail]) -> foldl(F, F(Hd, Accu), Tail); foldl(F, Accu, []) when is_function(F, 2) -> Accu.
The thing is that is_function/2 gave me true even if the function not yet exists, hard purged from the vm.
I cannot reproduce this error, but already happened twice during live upgrade.
Any guess or idea what i am doing wrong?