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

Routing shouldnt create new accs if ones are already available #3314

Merged
merged 2 commits into from
Oct 4, 2021

Conversation

NelsonVides
Copy link
Collaborator

Again, those accs might contain useful data we don't want to calculate again. In the case of carbons for example, hostypes, lservers, and timestamps, are the same for all copies, no need to recalculate again.

@mongoose-im

This comment has been minimized.

@codecov
Copy link

codecov bot commented Oct 1, 2021

Codecov Report

Merging #3314 (56ba94d) into master (09204c1) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3314   +/-   ##
=======================================
  Coverage   80.70%   80.70%           
=======================================
  Files         397      397           
  Lines       32439    32439           
=======================================
+ Hits        26180    26181    +1     
+ Misses       6259     6258    -1     
Impacted Files Coverage Δ
src/mod_carboncopy.erl 88.40% <100.00%> (ø)
src/mod_commands.erl 92.56% <100.00%> (ø)
src/domain/mongoose_domain_sql.erl 82.85% <0.00%> (-2.86%) ⬇️
...c/global_distrib/mod_global_distrib_server_mgr.erl 74.57% <0.00%> (-2.26%) ⬇️
src/global_distrib/mod_global_distrib_receiver.erl 78.88% <0.00%> (-2.23%) ⬇️
src/ejabberd_c2s.erl 89.29% <0.00%> (-0.23%) ⬇️
src/mod_muc_room.erl 77.18% <0.00%> (+0.05%) ⬆️
src/pubsub/mod_pubsub.erl 73.40% <0.00%> (+0.23%) ⬆️
src/mod_bosh.erl 93.87% <0.00%> (+2.04%) ⬆️
src/ejabberd_zlib.erl 70.27% <0.00%> (+2.70%) ⬆️
... and 1 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 09204c1...56ba94d. Read the comment docs.

@NelsonVides NelsonVides changed the title Carbons shouldnt create new accs Routing shouldnt create new accs if ones are already available Oct 1, 2021
@mongoose-im

This comment has been minimized.

@mongoose-im
Copy link
Collaborator

mongoose-im commented Oct 4, 2021

small_tests_24 / small_tests / 56ba94d
Reports root / small


internal_mnesia_24 / internal_mnesia / 56ba94d
Reports root/ big
OK: 1589 / Failed: 0 / User-skipped: 297 / Auto-skipped: 0


small_tests_23 / small_tests / 56ba94d
Reports root / small


dynamic_domains_24 / pgsql_mnesia / 56ba94d
Reports root/ big
OK: 2702 / Failed: 0 / User-skipped: 184 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / 56ba94d
Reports root/ big
OK: 1486 / Failed: 0 / User-skipped: 400 / Auto-skipped: 0


dynamic_domains_23 / pgsql_mnesia / 56ba94d
Reports root/ big
OK: 2702 / Failed: 0 / User-skipped: 184 / Auto-skipped: 0


ldap_mnesia_23 / ldap_mnesia / 56ba94d
Reports root/ big
OK: 1486 / Failed: 0 / User-skipped: 400 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 56ba94d
Reports root/ big
OK: 3089 / Failed: 1 / User-skipped: 211 / Auto-skipped: 0

jingle_SUITE:all:resp_4xx_from_sip_proxy_results_in_session_terminate
{error,
  {{assertion_failed,assert,is_iq_result,
     {xmlel,<<"iq">>,
       [{<<"from">>,<<"error.480@localhost">>},
        {<<"to">>,
         <<"alice_resp_4xx_from_sip_proxy_results_in_session_terminate_28.781492@localhost/res1">>},
        {<<"id">>,<<"f7960385-8216-43a6-9c46-02a9292ffff5">>},
        {<<"type">>,<<"set">>}],
       [{xmlel,<<"jingle">>,
          [{<<"xmlns">>,<<"urn:xmpp:jingle:1">>},
           {<<"action">>,<<"session-terminate">>},
           {<<"sid">>,<<"b81579c1-f28f-4d7c-8495-612fef933cfb">>}],
          [{xmlel,<<"reason">>,[],
             [{xmlel,<<"general-error">>,[],[]},
            {xmlel,<<"sip-error">>,
              [{<<"code">>,<<"480">>}],
              [{xmlcdata,<<"Temporarily Unavailable">>}]}]}]}]},
     "<iq from='error.480@localhost' to='alice_resp_4xx_from_sip_proxy_results_in_session_terminate_28.781492@localhost/res1' id='f7960385-8216-43a6-9c46-02a9292ffff5' type='set'><jingle xmlns='urn:xmpp:jingle:1' action='session-terminate' sid='b81579c1-f28f-4d7c-8495-612fef933cfb'><reason><general-error/><sip-error code='480'>Temporarily Unavailable</sip-error></reason></jingle></iq>"},
   [{escalus_new_assert,assert_true,2,
      [{file,
         "/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
       {line,84}]},
    {jingle_SUITE,send_initiate_and_wait_for_first_iq_set,2,
      [{file,"/home/circleci/app/big_tests/tests/jingle_SUITE.erl"},
       {line,395}]},
    {jingle_SUITE,
      '-res...

Report log


elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 56ba94d
Reports root/ big
OK: 1870 / Failed: 1 / User-skipped: 323 / Auto-skipped: 0

connect_SUITE:just_tls:feature_order:auth_compression_bind_session
{error,
  {{badmatch,
     {error,
       {connection_step_failed,
         {{escalus_session,maybe_use_compression},
          {client,
            <<"secure_joe_auth_compression_bind_session_18.867048@localhost">>,
            escalus_tcp,<0.11885.0>,undefined,
            [{username,
               <<"secure_joe_auth_compression_bind_session_18.867048">>},
             {server,<<"localhost">>},
             {password,<<"break_me">>},
             {compression,<<"zlib">>},
             {starttls,required},
             {host,<<"localhost">>},
             {stream_id,<<"ce4acbf17736adea">>}]},
          [{compression,[<<"zlib">>]},
           {starttls,false},
           {stream_management,true},
           {advanced_message_processing,true},
           {client_state_indication,false},
           {sasl_mechanisms,[<<"SCRAM-SHA-256">>,<<"PLAIN">>]},
           {caps,undefined}]},
         {timeout,compressed}}}},
   [{connect_SUITE,auth_compression_bind_session,1,
      [{file,"/home/circleci/app/big_tests/tests/connect_SUITE.erl"},
       {line,517}]},
    {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


mysql_redis_24 / mysql_redis / 56ba94d
Reports root/ big
OK: 3079 / Failed: 1 / User-skipped: 228 / Auto-skipped: 0

rest_client_SUITE:muc:messages_can_be_paginated_in_room
{error,
  {{assertion_failed,assert,is_chat_message,
     [<<"013e08e3">>],
     {xmlel,<<"message">>,
       [{<<"to">>,<<"1633-347121-58782@muclight.localhost">>},
        {<<"type">>,<<"chat">>}],
       [{xmlel,<<"body">>,[],[{xmlcdata,<<"9dc06d78">>}]}]},
     "<message to='1633-347121-58782@muclight.localhost' type='chat'><body>9dc06d78</body></message>"},
   [{escalus_new_assert,assert_true,2,
      [{file,
         "/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
       {line,84}]},
    {rest_client_SUITE,assert_room_messages,2,
      [{file,"/home/circleci/app/big_tests/tests/rest_client_SUITE.erl"},
       {line,772}]},
    {escalus_story,story,4,
      [{file,
         "/home/circleci/app/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 / 56ba94d
Reports root/ big
OK: 3071 / Failed: 0 / User-skipped: 211 / Auto-skipped: 0


mssql_mnesia_24 / odbc_mssql_mnesia / 56ba94d
Reports root/ big
OK: 3071 / Failed: 0 / User-skipped: 211 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / 56ba94d
Reports root/ big
OK: 1709 / Failed: 0 / User-skipped: 326 / Auto-skipped: 0

@vkatsuba vkatsuba merged commit dd2ebc5 into master Oct 4, 2021
@vkatsuba vkatsuba deleted the acc/less_news branch October 4, 2021 11:51
@Premwoik Premwoik added this to the 5.0.0 milestone Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants