New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mod_offline_SUITE:messages_after_relogin sometimes fails #1799
Comments
Fixes one common test failure similar to #1799
Another similar bug even in 596fbc5 ====== Suite FAILED: mod_blocking_SUITE (1 of 20 tests failed)
====== Test name: messages_arrive_after_unblock_and_relogin
====== Reason: {test_case_failed,
{has_stanzas_but_shouldnt,
{client,<<"alicE@localhost/res1">>,escalus_tcp,
<0.8752.3>,
[{event_manager,<0.8751.3>},
{server,<<"localhost">>},
{username,<<"alicE">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.8751.3>},
{server,<<"localhost">>},
{username,<<"alicE">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,<<"alicE">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,<<"alicE">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>},
{stream_id,<<"55B52BA9532F2F00">>}]},
[{xmlel,<<"presence">>,
[{<<"from">>,<<"alicE@localhost/res1">>},
{<<"to">>,<<"alice@localhost/res1">>},
{<<"type">>,<<"unavailable">>}],
[]}]}} |
One way to fix it is in mongoose to force keeping sids (session identifiers) in state of ejabberd_c2s together with presence subscription lists. But it would require more space. In theory, it would allow faster presence update broadcasts (woohoo, without reading session manager). Still. it would require more space to store (i.e. not cool). Another way is "just" force to use Another solution just for this set of tests is to use a different resource for each story. If we use "alice@localhost/res1_storyid", than we would avoid the old presences to begin with. Here "storyid" should be a unique value for each call of |
@arcusfelis I believe this was fixed already is that right? At least I didn't see it failing for a month already. |
Haven't seen it failing as well. Closing for now. |
MongooseIM version: b076e4a
Installed from: source
Erlang/OTP version: 20
in messages_after_relogin
detected, during ODBC refactoring.
This version of test would work.
But we actually need to fix bug, because this presence unavailable should be not pushed to the client.
I suspect this presence is sent from old alice process to a new one.
The text was updated successfully, but these errors were encountered: