emqx / mria

Asynchronously replicated Mnesia-like database for Erlang/Elixir
https://www.emqx.com
Apache License 2.0
120 stars 23 forks source link

fix(status): don't subtract `undefined` when calculating shard lag #161

Closed thalesmg closed 1 year ago

thalesmg commented 1 year ago
Run stage failed: error:{exception,badarith,
                            [{erlang,'-',
                                 [5,undefined],
                                 [{error_info,#{module => erl_erts_errors}}]},
                             {mria_status,get_shard_lag,1,
                                 [{file,"/__w/mria/mria/src/mria_status.erl"},
                                  {line,187}]},
                             {mria_status,get_shard_stats,1,
                                 [{file,"/__w/mria/mria/src/mria_status.erl"},
                                  {line,256}]},
                             {mria_rlog,'-status/0-lc$^0/1-0-',1,
                                 [{file,"/__w/mria/mria/src/mria_rlog.erl"},
                                  {line,99}]},
                             {mria_rlog,status,0,
                                 [{file,"/__w/mria/mria/src/mria_rlog.erl"},
                                  {line,100}]},
                             {mria,info,0,
                                 [{file,"/__w/mria/mria/src/mria.erl"},
                                  {line,157}]},
                             {mria,do_join,3,
                                 [{file,"/__w/mria/mria/src/mria.erl"},
                                  {line,606}]},
                             {global,trans,4,
                                 [{file,"global.erl"},{line,477}]}]}

https://github.com/emqx/mria/actions/runs/6201007103/job/16836825159?pr=160#step:10:19086