Skip to content
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

Worker pool cleanups #3419

Merged
merged 6 commits into from
Nov 29, 2021
Merged

Worker pool cleanups #3419

merged 6 commits into from
Nov 29, 2021

Conversation

NelsonVides
Copy link
Collaborator

This PR is a general cleanup. It removes an unused header file, removes long-begone comments, recovers a configuration key for the pool sizes, increases symmetry between both async workers, and perhaps the only functional change, it stores the pool name on the same record that stores the pool details, instead of continuously generating the name again and again – this is a change in line with inaka/worker_pool#181.

I suspect this might also have somehow better concurrency
characteristics, as generating the name generates atoms, and therefore
needs to grab locks on the atom table, which is not optimised for
writes, even if the write is idempotent as the atom already exists, but
this one is mostly guessing. Sequential performance is surely much
better.
@NelsonVides NelsonVides requested review from arcusfelis and chrzaszcz and removed request for arcusfelis November 29, 2021 10:08
@mongoose-im
Copy link
Collaborator

mongoose-im commented Nov 29, 2021

small_tests_24 / small_tests / 928eb74
Reports root / small


small_tests_23 / small_tests / 928eb74
Reports root / small


dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 928eb74
Reports root/ big
OK: 2722 / Failed: 0 / User-skipped: 186 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 928eb74
Reports root/ big
OK: 2722 / Failed: 0 / User-skipped: 186 / Auto-skipped: 0


dynamic_domains_mysql_redis_24 / mysql_redis / 928eb74
Reports root/ big
OK: 2705 / Failed: 0 / User-skipped: 203 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 928eb74
Reports root/ big
OK: 2722 / Failed: 0 / User-skipped: 186 / Auto-skipped: 0


ldap_mnesia_23 / ldap_mnesia / 928eb74
Reports root/ big
OK: 1502 / Failed: 0 / User-skipped: 382 / Auto-skipped: 0


internal_mnesia_24 / internal_mnesia / 928eb74
Reports root/ big
OK: 1586 / Failed: 1 / User-skipped: 297 / Auto-skipped: 0

amp_big_SUITE:offline:offline_success:notify_deliver_to_offline_user_recipient_privacy_test
{error,
  {{assertion_failed,assert,is_presence,
     {xmlel,<<"stream:error">>,[],
       [{xmlel,<<"conflict">>,
          [{<<"xmlns">>,<<"urn:ietf:params:xml:ns:xmpp-streams">>}],
          []},
        {xmlel,<<"text">>,
          [{<<"xml:lang">>,<<"en">>},
           {<<"xmlns">>,<<"urn:ietf:params:xml:ns:xmpp-streams">>}],
          [{xmlcdata,<<"Replaced by new connection">>}]}]},
     "<stream:error><conflict xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xml:lang='en' xmlns='urn:ietf:params:xml:ns:xmpp-streams'>Replaced by new connection</text></stream:error>"},
   [{escalus_new_assert,assert_true,2,
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
       {line,84}]},
    {escalus_story,'-drop_presences/2-lc$^0/1-0-',1,
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
       {line,190}]},
    {escalus_story,drop_presences,2,
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
       {line,190}]},
    {escalus_story,'-start_ready_clients/2-fun-0-',3,
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
       {line,135}]},
    {lists,foldl,3,[{file,"lists.erl"},{line,1267}]},
    {escalus_story,start_ready_clients,2,
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
    ...

Report log


pgsql_mnesia_23 / pgsql_mnesia / 928eb74
Reports root/ big
OK: 3109 / Failed: 0 / User-skipped: 195 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / 928eb74
Reports root/ big
OK: 1502 / Failed: 0 / User-skipped: 382 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 928eb74
Reports root/ big
OK: 3109 / Failed: 0 / User-skipped: 195 / Auto-skipped: 0


mysql_redis_24 / mysql_redis / 928eb74
Reports root/ big
OK: 3104 / Failed: 0 / User-skipped: 200 / Auto-skipped: 0


elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 928eb74
Reports root/ big
OK: 1880 / Failed: 0 / User-skipped: 309 / Auto-skipped: 0


mssql_mnesia_24 / odbc_mssql_mnesia / 928eb74
Reports root/ big
OK: 3109 / Failed: 0 / User-skipped: 195 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / 928eb74
Reports root/ big
OK: 1726 / Failed: 0 / User-skipped: 310 / Auto-skipped: 0

@codecov
Copy link

codecov bot commented Nov 29, 2021

Codecov Report

Merging #3419 (eee8837) into master (c3865ff) will increase coverage by 0.05%.
The diff coverage is 87.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3419      +/-   ##
==========================================
+ Coverage   80.73%   80.78%   +0.05%     
==========================================
  Files         414      414              
  Lines       32298    32302       +4     
==========================================
+ Hits        26075    26095      +20     
+ Misses       6223     6207      -16     
Impacted Files Coverage Δ
src/mam/mod_mam_meta.erl 92.39% <ø> (ø)
src/mam/mod_mam_muc_rdbms_async_pool_writer.erl 71.42% <ø> (ø)
src/wpool/mongoose_wpool_mgr.erl 76.05% <ø> (ø)
src/wpool/mongoose_wpool.erl 85.57% <66.66%> (-0.84%) ⬇️
src/mam/mod_mam_rdbms_async_pool_writer.erl 70.58% <100.00%> (ø)
src/metrics/mongoose_metrics_mam_hooks.erl 87.87% <100.00%> (+0.78%) ⬆️
src/mongoose_hooks.erl 95.13% <100.00%> (+0.02%) ⬆️
src/domain/mongoose_domain_loader.erl 77.35% <0.00%> (-1.89%) ⬇️
src/mod_muc_log.erl 78.11% <0.00%> (ø)
src/mod_roster.erl 78.99% <0.00%> (+0.23%) ⬆️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c3865ff...eee8837. Read the comment docs.

@mongoose-im
Copy link
Collaborator

mongoose-im commented Nov 29, 2021

small_tests_23 / small_tests / 80b1197
Reports root / small


small_tests_24 / small_tests / 80b1197
Reports root / small


dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 80b1197
Reports root/ big
OK: 2722 / Failed: 0 / User-skipped: 186 / Auto-skipped: 0


dynamic_domains_mysql_redis_24 / mysql_redis / 80b1197
Reports root/ big
OK: 2711 / Failed: 1 / User-skipped: 203 / Auto-skipped: 0

mam_SUITE:rdbms_prefs_cases:prefs_set_request
{error,{test_case_failed,"ASSERT EQUAL\n\tExpected {prefs_result_iq,<<\"roster\">>,\n                  [<<\"[email protected]\">>],\n                  [<<\"[email protected]\">>]}\n\tValue {prefs_result_iq,<<\"always\">>,\n                 [<<\"[email protected]\">>],\n                 [<<\"[email protected]\">>]}\n"}}

Report log


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 80b1197
Reports root/ big
OK: 2722 / Failed: 0 / User-skipped: 186 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 80b1197
Reports root/ big
OK: 2722 / Failed: 0 / User-skipped: 186 / Auto-skipped: 0


ldap_mnesia_23 / ldap_mnesia / 80b1197
Reports root/ big
OK: 1502 / Failed: 0 / User-skipped: 382 / Auto-skipped: 0


internal_mnesia_24 / internal_mnesia / 80b1197
Reports root/ big
OK: 1587 / Failed: 0 / User-skipped: 297 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / 80b1197
Reports root/ big
OK: 1530 / Failed: 1 / User-skipped: 382 / Auto-skipped: 0

sm_SUITE:parallel:messages_are_properly_flushed_during_resumption
{error,
  {{badmatch,
     {error,
       {connection_step_failed,
         {#Fun<sm_SUITE.11.68776247>,
          {client,
            <<"alicE_messages_are_properly_flushed_during_resumption_9.850405@localhost">>,
            escalus_tcp,<0.17941.1>,undefined,
            [{username,
               <<"alicE_messages_are_properly_flushed_during_resumption_9.850405">>},
             {server,<<"localhost">>},
             {password,<<"matygrysa">>},
             {stream_management,true},
             {host,<<"localhost">>},
             {stream_id,<<"9321f8e2d31d952d">>}]},
          [{compression,[<<"zlib">>]},
           {starttls,true},
           {stream_management,true},
           {advanced_message_processing,true},
           {client_state_indication,false},
           {sasl_mechanisms,[<<"PLAIN">>]},
           {caps,undefined}]},
         {timeout,get_resumed}}}},
   [{sm_SUITE,'-messages_are_properly_flushed_during_resumption/1-fun-1-',
      3,
      [{file,"/home/circleci/project/big_tests/tests/sm_SUITE.erl"},
       {line,1226}]},
    {escalus_story,story,4,
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
       {line,72}]},
    {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
    {test_server,run_test_case_eval1,6,
      [{file,"test_server.erl"},{line,1292}]},
    {test_server,run_test_case_eval,9,
      [{file,"test_server.erl"},{line,1224}]}]}}

Report log


pgsql_mnesia_23 / pgsql_mnesia / 80b1197
Reports root/ big
OK: 3109 / Failed: 0 / User-skipped: 195 / Auto-skipped: 0


mysql_redis_24 / mysql_redis / 80b1197
Reports root/ big
OK: 3110 / Failed: 1 / User-skipped: 200 / Auto-skipped: 0

mam_SUITE:rdbms_async_cache_prefs_cases:messages_filtered_when_prefs_default_policy_is_roster
{error,{test_case_failed,"ASSERT EQUAL\n\tExpected []\n\tValue [ok]\n"}}

Report log


elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 80b1197
Reports root/ big
OK: 1880 / Failed: 0 / User-skipped: 309 / Auto-skipped: 0


mssql_mnesia_24 / odbc_mssql_mnesia / 80b1197
Reports root/ big
OK: 3109 / Failed: 0 / User-skipped: 195 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 80b1197
Reports root/ big
OK: 3109 / Failed: 0 / User-skipped: 195 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / 80b1197
Reports root/ big
OK: 1726 / Failed: 0 / User-skipped: 310 / Auto-skipped: 0

@mongoose-im
Copy link
Collaborator

mongoose-im commented Nov 29, 2021

small_tests_24 / small_tests / 301a30d
Reports root / small


small_tests_23 / small_tests / 301a30d
Reports root / small


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 301a30d
Reports root/ big
OK: 2722 / Failed: 0 / User-skipped: 186 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 301a30d
Reports root/ big
OK: 2722 / Failed: 0 / User-skipped: 186 / Auto-skipped: 0


dynamic_domains_mysql_redis_24 / mysql_redis / 301a30d
Reports root/ big
OK: 2705 / Failed: 0 / User-skipped: 203 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 301a30d
Reports root/ big
OK: 2722 / Failed: 0 / User-skipped: 186 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / 301a30d
Reports root/ big
OK: 1502 / Failed: 0 / User-skipped: 382 / Auto-skipped: 0


ldap_mnesia_23 / ldap_mnesia / 301a30d
Reports root/ big
OK: 1502 / Failed: 0 / User-skipped: 382 / Auto-skipped: 0


internal_mnesia_24 / internal_mnesia / 301a30d
Reports root/ big
OK: 1587 / Failed: 0 / User-skipped: 297 / Auto-skipped: 0


pgsql_mnesia_23 / pgsql_mnesia / 301a30d
Reports root/ big
OK: 3109 / Failed: 0 / User-skipped: 195 / Auto-skipped: 0


mysql_redis_24 / mysql_redis / 301a30d
Reports root/ big
OK: 3110 / Failed: 1 / User-skipped: 200 / Auto-skipped: 0

mam_SUITE:rdbms_cache_prefs_cases:messages_filtered_when_prefs_default_policy_is_never
{error,{test_case_failed,"ASSERT EQUAL\n\tExpected []\n\tValue [ok,ok]\n"}}

Report log


mssql_mnesia_24 / odbc_mssql_mnesia / 301a30d
Reports root/ big
OK: 3109 / Failed: 0 / User-skipped: 195 / Auto-skipped: 0


elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 301a30d
Reports root/ big
OK: 1880 / Failed: 0 / User-skipped: 309 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 301a30d
Reports root/ big
OK: 3109 / Failed: 0 / User-skipped: 195 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / 301a30d
Reports root/ big
OK: 1725 / Failed: 1 / User-skipped: 310 / Auto-skipped: 0

amp_big_SUITE:offline:offline_success:notify_deliver_to_online_user_broken_connection_test
{error,
  {test_case_failed,
    {has_stanzas_but_shouldnt,
      {client,
        <<"alicE_notify_deliver_to_online_user_broken_connection_test_74.140634@localhost/res1">>,
        escalus_tcp,<0.4154.0>,
        [{event_manager,<0.3872.0>},
         {server,<<"localhost">>},
         {username,
           <<"alicE_notify_deliver_to_online_user_broken_connection_test_74.140634">>},
         {resource,<<"res1">>}],
        [{event_client,
           [{event_manager,<0.3872.0>},
            {server,<<"localhost">>},
            {username,
              <<"alicE_notify_deliver_to_online_user_broken_connection_test_74.140634">>},
            {resource,<<"res1">>}]},
         {resource,<<"res1">>},
         {username,
           <<"alicE_notify_deliver_to_online_user_broken_connection_test_74.140634">>},
         {server,<<"localhost">>},
         {host,<<"localhost">>},
         {port,5222},
         {auth,{escalus_auth,auth_plain}},
         {wspath,undefined},
         {username,
           <<"alicE_notify_deliver_to_online_user_broken_connection_test_74.140634">>},
         {server,<<"localhost">>},
         {password,<<"matygrysa">>},
         {stream_id,<<"257f06ac6d4e136b">>}]},
      [{xmlel,<<"stream:error">>,[],
         [{xmlel,<<"conflict">>,
            [{<<"xmlns">>,
            <<"urn:ietf:params:xml:ns:xmpp-streams">>}],
            []},
          {xmlel,<<"text">>,
            [{<<"xml:lang">>,<<"en">>},
             {<<"xmlns">>,
            <<"urn:ietf:params:x...

Report log


riak_mnesia_24 / riak_mnesia / 301a30d
Reports root/ big
OK: 1726 / Failed: 0 / User-skipped: 310 / Auto-skipped: 0

Copy link
Member

@chrzaszcz chrzaszcz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I just think it would be good to use the config defaults when introducing new options (and add a test line to test the default in config_parser_SUITE).

src/mongoose_hooks.erl Outdated Show resolved Hide resolved
@NelsonVides
Copy link
Collaborator Author

Looks good. I just think it would be good to use the config defaults when introducing new options (and add a test line to test the default in config_parser_SUITE).

Sounds good, but, how to do so exactly? I thought we aren't doing defaults for modules yet, so far only global options were done, right? 🤔

@mongoose-im
Copy link
Collaborator

mongoose-im commented Nov 29, 2021

small_tests_23 / small_tests / eee8837
Reports root / small


small_tests_24 / small_tests / eee8837
Reports root / small


dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / eee8837
Reports root/ big
OK: 2722 / Failed: 0 / User-skipped: 186 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / eee8837
Reports root/ big
OK: 2722 / Failed: 0 / User-skipped: 186 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / eee8837
Reports root/ big
OK: 2727 / Failed: 1 / User-skipped: 186 / Auto-skipped: 0

rest_client_SUITE:roster:add_contact_and_invite
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"[email protected]/res1">>,
          escalus_tcp,<0.25128.1>,
          [{event_manager,<0.25097.1>},
           {server,<<"domain.example.com">>},
           {username,<<"alicE_add_contact_and_invite_44.662483">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.25097.1>},
            {server,<<"domain.example.com">>},
            {username,
              <<"alicE_add_contact_and_invite_44.662483">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,<<"alicE_add_contact_and_invite_44.662483">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,{escalus_auth,auth_plain}},
           {wspath,undefined},
           {username,<<"alicE_add_contact_and_invite_44.662483">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"b058b0504f0b2abd">>}]},
        5000],
       [{file,
          "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
        {line,136}]},
     {rest_client_SUITE,'-add_contact_and_invite/1-fun-0-',2,
       [{file,
          "/home/circleci/project/big_tests/tests/rest_client_SUITE.erl"},
        {line,1106}]},
     {escalus_st...

Report log


dynamic_domains_mysql_redis_24 / mysql_redis / eee8837
Reports root/ big
OK: 2721 / Failed: 1 / User-skipped: 203 / Auto-skipped: 0

vcard_SUITE:ro_full:retrieve_own_card
{error,{test_case_failed,"Expected <<\"alice\">> got undefined\n"}}

Report log


ldap_mnesia_23 / ldap_mnesia / eee8837
Reports root/ big
OK: 1502 / Failed: 0 / User-skipped: 382 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / eee8837
Reports root/ big
OK: 1509 / Failed: 1 / User-skipped: 382 / Auto-skipped: 0

sm_SUITE:parallel_manual_ack_freq_1:resume_session_state_send_message
{error,
  {{assertion_failed,assert_many,true,
     [#Fun<sm_SUITE.22.68776247>,#Fun<sm_SUITE.22.68776247>,
      #Fun<sm_SUITE.22.68776247>],
     [{xmlel,<<"presence">>,
        [{<<"from">>,
        <<"alicE_resume_session_state_send_message_15.192148@localhost/escalus-default-resource">>},
         {<<"to">>,
        <<"alice_resume_session_state_send_message_15.192148@localhost/escalus-default-resource">>},
         {<<"xml:lang">>,<<"en">>}],
        []},
      {xmlel,<<"message">>,
        [{<<"from">>,
        <<"bOb_resume_session_state_send_message_15.167356@localhost/escalus-default-resource">>},
         {<<"to">>,
        <<"alicE_resume_session_state_send_message_15.192148@localhost">>},
         {<<"xml:lang">>,<<"en">>},
         {<<"type">>,<<"chat">>}],
        [{xmlel,<<"body">>,[],[{xmlcdata,<<"msg-1">>}]},
         {xmlel,<<"delay">>,
           [{<<"xmlns">>,<<"urn:xmpp:delay">>},
          {<<"stamp">>,<<"2021-11-29T13:31:55.203006Z">>},
          {<<"from">>,<<"localhost">>}],
           [{xmlcdata,<<"SM Storage">>}]}]},
      {xmlel,<<"message">>,
        [{<<"from">>,
        <<"bOb_resume_session_state_send_message_15.167356@localhost/escalus-default-resource">>},
         {<<"to">>,
        <<"alicE_resume_session_state_send_message_15.192148@localhost">>},
         {<<"xml:lang">>,<<"en">>},
         {<<"type">>,<<"chat">>}],
        [{xmlel,<<"body">>,[],[{xmlcdata,<<"msg-2">>}]},
         {xmlel,<<"delay">>,
           [{<<"xmlns">>,<<"urn:xmpp:...

Report log


internal_mnesia_24 / internal_mnesia / eee8837
Reports root/ big
OK: 1586 / Failed: 1 / User-skipped: 297 / Auto-skipped: 0

amp_big_SUITE:basic:notify_deliver_to_offline_user_recipient_privacy_test
{error,
  {test_case_failed,
    {has_stanzas_but_shouldnt,
      {client,
        <<"alicE_notify_deliver_to_offline_user_recipient_privacy_test_61.237092@localhost/res1">>,
        escalus_tcp,<0.3018.0>,
        [{event_manager,<0.2716.0>},
         {server,<<"localhost">>},
         {username,
           <<"alicE_notify_deliver_to_offline_user_recipient_privacy_test_61.237092">>},
         {resource,<<"res1">>}],
        [{event_client,
           [{event_manager,<0.2716.0>},
            {server,<<"localhost">>},
            {username,
              <<"alicE_notify_deliver_to_offline_user_recipient_privacy_test_61.237092">>},
            {resource,<<"res1">>}]},
         {resource,<<"res1">>},
         {username,
           <<"alicE_notify_deliver_to_offline_user_recipient_privacy_test_61.237092">>},
         {server,<<"localhost">>},
         {host,<<"localhost">>},
         {port,5222},
         {auth,{escalus_auth,auth_plain}},
         {wspath,undefined},
         {username,
           <<"alicE_notify_deliver_to_offline_user_recipient_privacy_test_61.237092">>},
         {server,<<"localhost">>},
         {password,<<"matygrysa">>},
         {stream_id,<<"877e6efbb655ace0">>}]},
      [{xmlel,<<"stream:error">>,[],
         [{xmlel,<<"conflict">>,
            [{<<"xmlns">>,
            <<"urn:ietf:params:xml:ns:xmpp-streams">>}],
            []},
          {xmlel,<<"text">>,
            [{<<"xml:lang">>,<<"en">>},
             {<<"xmlns">>,
            <<"urn:ietf:par...

Report log


elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / eee8837
Reports root/ big
OK: 1880 / Failed: 0 / User-skipped: 309 / Auto-skipped: 0


pgsql_mnesia_23 / pgsql_mnesia / eee8837
Reports root/ big
OK: 3109 / Failed: 0 / User-skipped: 195 / Auto-skipped: 0


mssql_mnesia_24 / odbc_mssql_mnesia / eee8837
Reports root/ big
OK: 3109 / Failed: 0 / User-skipped: 195 / Auto-skipped: 0


mysql_redis_24 / mysql_redis / eee8837
Reports root/ big
OK: 3104 / Failed: 0 / User-skipped: 200 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / eee8837
Reports root/ big
OK: 3109 / Failed: 0 / User-skipped: 195 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / eee8837
Reports root/ big
OK: 1726 / Failed: 0 / User-skipped: 310 / Auto-skipped: 0


internal_mnesia_24 / internal_mnesia / eee8837
Reports root/ big
OK: 1592 / Failed: 3 / User-skipped: 297 / Auto-skipped: 0

amp_big_SUITE:offline:offline_success:notify_deliver_to_offline_user_recipient_privacy_test
{error,
  {{assertion_failed,assert,is_presence,
     {xmlel,<<"stream:error">>,[],
       [{xmlel,<<"conflict">>,
          [{<<"xmlns">>,<<"urn:ietf:params:xml:ns:xmpp-streams">>}],
          []},
        {xmlel,<<"text">>,
          [{<<"xml:lang">>,<<"en">>},
           {<<"xmlns">>,<<"urn:ietf:params:xml:ns:xmpp-streams">>}],
          [{xmlcdata,<<"Replaced by new connection">>}]}]},
     "<stream:error><conflict xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xml:lang='en' xmlns='urn:ietf:params:xml:ns:xmpp-streams'>Replaced by new connection</text></stream:error>"},
   [{escalus_new_assert,assert_true,2,
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
       {line,84}]},
    {escalus_story,'-drop_presences/2-lc$^0/1-0-',1,
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
       {line,190}]},
    {escalus_story,drop_presences,2,
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
       {line,190}]},
    {escalus_story,'-start_ready_clients/2-fun-0-',3,
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
       {line,135}]},
    {lists,foldl,3,[{file,"lists.erl"},{line,1267}]},
    {escalus_story,start_ready_clients,2,
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
    ...

Report log

sm_SUITE:parallel_manual_ack_freq_1:resume_session_state_send_message
{error,
  {{assertion_failed,assert_many,true,
     [#Fun<sm_SUITE.22.68776247>,#Fun<sm_SUITE.22.68776247>,
      #Fun<sm_SUITE.22.68776247>],
     [{xmlel,<<"presence">>,
        [{<<"from">>,
        <<"alicE_resume_session_state_send_message_22.576770@localhost/escalus-default-resource">>},
         {<<"to">>,
        <<"alice_resume_session_state_send_message_22.576770@localhost/escalus-default-resource">>},
         {<<"xml:lang">>,<<"en">>}],
        []},
      {xmlel,<<"message">>,
        [{<<"from">>,
        <<"bOb_resume_session_state_send_message_22.568339@localhost/escalus-default-resource">>},
         {<<"to">>,
        <<"alicE_resume_session_state_send_message_22.576770@localhost">>},
         {<<"xml:lang">>,<<"en">>},
         {<<"type">>,<<"chat">>}],
        [{xmlel,<<"body">>,[],[{xmlcdata,<<"msg-1">>}]},
         {xmlel,<<"delay">>,
           [{<<"xmlns">>,<<"urn:xmpp:delay">>},
          {<<"stamp">>,<<"2021-11-29T14:17:02.588668Z">>},
          {<<"from">>,<<"localhost">>}],
           [{xmlcdata,<<"SM Storage">>}]}]},
      {xmlel,<<"message">>,
        [{<<"from">>,
        <<"bOb_resume_session_state_send_message_22.568339@localhost/escalus-default-resource">>},
         {<<"to">>,
        <<"alicE_resume_session_state_send_message_22.576770@localhost">>},
         {<<"xml:lang">>,<<"en">>},
         {<<"type">>,<<"chat">>}],
        [{xmlel,<<"body">>,[],[{xmlcdata,<<"msg-2">>}]},
         {xmlel,<<"delay">>,
           [{<<"xmlns">>,<<"urn:xmpp:...

Report log

sm_SUITE:parallel_manual_ack_freq_1:resume_session_state_stop_c2s
{error,{thrown,{timeout,msg}}}

Report log


internal_mnesia_24 / internal_mnesia / eee8837
Reports root/ big
OK: 1587 / Failed: 0 / User-skipped: 297 / Auto-skipped: 0

@chrzaszcz
Copy link
Member

chrzaszcz commented Nov 29, 2021

Sounds good, but, how to do so exactly? I thought we aren't doing defaults for modules yet, so far only global options were done, right? 🤔

Let's leave it for later as I've looked at the muc and pm sections and they make it non-trivial.

Copy link
Contributor

@arcusfelis arcusfelis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@chrzaszcz
Copy link
Member

Actually I think (correct me if I'm wrong) that this pool size option does nothing, the pool size is always 32 regardless of what I set there (in pm, muc or globally), because this option is never propagated to the async writer module (as some other options that are already there).

@NelsonVides
Copy link
Collaborator Author

As discussed with @chrzaszcz, turns out many options are not passed to the async workers, but this was broken before this PR, so here no bugs are introduced, and correctly passing the params to the workers can be done in a separate PR as a bug-fix.

@chrzaszcz chrzaszcz merged commit 8cfcc28 into master Nov 29, 2021
@chrzaszcz chrzaszcz deleted the worker_pool_cleanups branch November 29, 2021 15:41
@Premwoik Premwoik modified the milestone: 5.1.0 May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants