esl / MongooseIM

MongooseIM is Erlang Solutions' robust, scalable and efficient XMPP server, aimed at large installations. Specifically designed for enterprise purposes, it is fault-tolerant and can utilise the resources of multiple clustered machines.
Other
1.64k stars 420 forks source link

Revert dist blocker #4251

Closed chrzaszcz closed 1 month ago

chrzaszcz commented 1 month ago

The dist_blocker feature was introduced to protect a disconnected node from reconnecting before other nodes finished the cleanup to avoid issues with inconsistent CETS tables. The solution was to change the cookie value on nodeup (sic!) for the particular node until the cleanup for that node is finished.

There are following issues with that solution:

Because of these concerns, dist_blocker is disabled in this PR. It is enough to disable it in MIM, because CETS does not enable it by default.

The MongooseHelm tests have shown that after https://github.com/esl/MongooseIM/pull/4250 it is difficult to reproduce the issue - it occurred only once in about 50 tests, which try to quickly restart MIM to trigger the issue. Keep in mind, that with dist_blocker it has also failed at least twice on CI.

We can prevent the issues in different ways, and we can do so in separate PR's.

mongoose-im commented 1 month ago

elasticsearch_and_cassandra_26 / elasticsearch_and_cassandra_mnesia / 509759e917f4c152f12e50a6b42488c7a51bf0fc Reports root/ big OK: 437 / Failed: 0 / User-skipped: 43 / Auto-skipped: 0


small_tests_25 / small_tests / 509759e917f4c152f12e50a6b42488c7a51bf0fc Reports root / small


small_tests_26 / small_tests / 509759e917f4c152f12e50a6b42488c7a51bf0fc Reports root / small


small_tests_26_arm64 / small_tests / 509759e917f4c152f12e50a6b42488c7a51bf0fc Reports root / small


ldap_mnesia_25 / ldap_mnesia / 509759e917f4c152f12e50a6b42488c7a51bf0fc Reports root/ big OK: 2284 / Failed: 0 / User-skipped: 895 / Auto-skipped: 0


dynamic_domains_mysql_redis_26 / mysql_redis / 509759e917f4c152f12e50a6b42488c7a51bf0fc Reports root/ big OK: 4506 / Failed: 0 / User-skipped: 144 / Auto-skipped: 0


ldap_mnesia_26 / ldap_mnesia / 509759e917f4c152f12e50a6b42488c7a51bf0fc Reports root/ big OK: 2284 / Failed: 0 / User-skipped: 895 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_26 / pgsql_mnesia / 509759e917f4c152f12e50a6b42488c7a51bf0fc Reports root/ big OK: 4539 / Failed: 0 / User-skipped: 111 / Auto-skipped: 0


internal_mnesia_26 / internal_mnesia / 509759e917f4c152f12e50a6b42488c7a51bf0fc Reports root/ big OK: 2424 / Failed: 0 / User-skipped: 755 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_26 / odbc_mssql_mnesia / 509759e917f4c152f12e50a6b42488c7a51bf0fc Reports root/ big OK: 4535 / Failed: 1 / User-skipped: 114 / Auto-skipped: 0

graphql_SUITE:tls_enabled:tls_connect_admin_selfsigned_certificate ```erlang {error,{{assertMatch,[{module,graphql_SUITE}, {line,259}, {expression,"Result"}, {pattern,"{ error , { tls_alert , { bad_certificate , _ } } }"}, {value,{error,connection_closed}}]}, [{graphql_SUITE,tls_connect_admin_selfsigned_certificate,1, [{file,"/home/circleci/project/big_tests/tests/graphql_SUITE.erl"}, {line,259}]}, {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1793}]}, {test_server,run_test_case_eval1,6, [{file,"test_server.erl"},{line,1302}]}, {test_server,run_test_case_eval,9, [{file,"test_server.erl"},{line,1234}]}]}} ``` [Report log](https://circleci-mim-results.s3.eu-central-1.amazonaws.com/PR/4251/213558/odbc_mssql_mnesia.26.1.2-amd64/big/ct_run.test%4069cf39922e4d.2024-03-27_08.45.20/big_tests.tests.graphql_SUITE.logs/run.2024-03-27_08.47.54/graphql_suite.tls_connect_admin_selfsigned_certificate.25347.html)

pgsql_mnesia_25 / pgsql_mnesia / 509759e917f4c152f12e50a6b42488c7a51bf0fc Reports root/ big OK: 4928 / Failed: 0 / User-skipped: 118 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 509759e917f4c152f12e50a6b42488c7a51bf0fc Reports root/ big OK: 4539 / Failed: 0 / User-skipped: 111 / Auto-skipped: 0


pgsql_mnesia_26 / pgsql_mnesia / 509759e917f4c152f12e50a6b42488c7a51bf0fc Reports root/ big OK: 4928 / Failed: 0 / User-skipped: 118 / Auto-skipped: 0


mysql_redis_26 / mysql_redis / 509759e917f4c152f12e50a6b42488c7a51bf0fc Reports root/ big OK: 4907 / Failed: 0 / User-skipped: 139 / Auto-skipped: 0


mssql_mnesia_26 / odbc_mssql_mnesia / 509759e917f4c152f12e50a6b42488c7a51bf0fc Reports root/ big OK: 4925 / Failed: 0 / User-skipped: 121 / Auto-skipped: 0


pgsql_cets_26 / pgsql_cets / 509759e917f4c152f12e50a6b42488c7a51bf0fc Reports root/ big OK: 4454 / Failed: 0 / User-skipped: 178 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_26 / odbc_mssql_mnesia / 509759e917f4c152f12e50a6b42488c7a51bf0fc Reports root/ big OK: 4536 / Failed: 0 / User-skipped: 114 / Auto-skipped: 0

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 84.43%. Comparing base (e284af4) to head (509759e).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## consistent-node-cleanup #4251 +/- ## =========================================================== - Coverage 84.44% 84.43% -0.02% =========================================================== Files 552 552 Lines 33549 33546 -3 =========================================================== - Hits 28331 28324 -7 - Misses 5218 5222 +4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.