You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the problem comes out from the fact, that OTP gracefully handles situation when system_get_state/1 callback returns different value than {ok, term()}:
Are you calling partisan_sys:get_state/1 on a partisan_gen_statem process or are you calling sys:get_state/1 on it?
Cause using any sys functions on partisan_gen_* is not supported.
It seems that the problem comes out from the fact, that OTP gracefully handles situation when
system_get_state/1
callback returns different value than{ok, term()}
:https://github.com/erlang/otp/blob/412bff5196fc0ab88a61fe37ca30e5226fc7872d/lib/stdlib/src/sys.erl#L511-L512
Copying this code to
priv/otp/24/partisan_sys.erl
fixes the problem.The text was updated successfully, but these errors were encountered: