-
Notifications
You must be signed in to change notification settings - Fork 428
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
Fix users number estimate in postgresql 14 #3319
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3319 +/- ##
=======================================
Coverage 80.68% 80.69%
=======================================
Files 397 397
Lines 32426 32430 +4
=======================================
+ Hits 26163 26169 +6
+ Misses 6263 6261 -2
Continue to review full report at Codecov.
|
small_tests_24 / small_tests / 3196bea internal_mnesia_24 / internal_mnesia / 3196bea small_tests_23 / small_tests / 3196bea dynamic_domains_24 / pgsql_mnesia / 3196bea ldap_mnesia_24 / ldap_mnesia / 3196bea ldap_mnesia_23 / ldap_mnesia / 3196bea amp_big_SUITE:offline:offline_failure:error_deliver_to_stranger_test{error,
{function_clause,
[{exml_query,attr,[undefined,<<"type">>,undefined],[]},
{amp_big_SUITE,contains_error,3,
[{file,"/home/circleci/app/big_tests/tests/amp_big_SUITE.erl"},
{line,916}]},
{escalus_new_assert,assert,3,
[{file,
"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
{line,37}]},
{amp_big_SUITE,'-error_deliver_to_stranger_test/1-fun-0-',2,
[{file,"/home/circleci/app/big_tests/tests/amp_big_SUITE.erl"},
{line,626}]},
{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,1784}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1293}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1225}]}]}} dynamic_domains_23 / pgsql_mnesia / 3196bea pgsql_mnesia_24 / pgsql_mnesia / 3196bea mysql_redis_24 / mysql_redis / 3196bea elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 3196bea pgsql_mnesia_23 / pgsql_mnesia / 3196bea mssql_mnesia_24 / odbc_mssql_mnesia / 3196bea riak_mnesia_24 / riak_mnesia / 3196bea ldap_mnesia_23 / ldap_mnesia / 3196bea |
3196bea
to
29056db
Compare
small_tests_24 / small_tests / 29056db internal_mnesia_24 / internal_mnesia / 29056db small_tests_23 / small_tests / 29056db dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 29056db service_domain_db_SUITE:db:db_keeps_syncing_after_cluster_join{error,{test_case_failed,{[<<"example1.com">>],
[<<"example1.com">>,<<"example2.com">>]}}} service_domain_db_SUITE:db:rest_with_auth:rest_delete_domain_cleans_data_from_mam{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,
<<"bob_rest_delete_domain_cleans_data_from_mam_87.408980@example.org/res1">>,
escalus_tcp,<0.28481.1>,
[{event_manager,<0.28475.1>},
{server,<<"example.org">>},
{username,
<<"bob_rest_delete_domain_cleans_data_from_mam_87.408980">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.28475.1>},
{server,<<"example.org">>},
{username,
<<"bob_rest_delete_domain_cleans_data_from_mam_87.408980">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,
<<"bob_rest_delete_domain_cleans_data_from_mam_87.408980">>},
{server,<<"example.org">>},
{host,<<"localhost">>},
{port,5232},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,
<<"bob_rest_delete_domain_cleans_data_from_mam_87.408980">>},
{server,<<"example.org">>},
{host,<<"localhost">>},
{password,<<"makota3">>},
{port,5232},
{stream_id,<<"9ef4d773c039c096">>}]},
5000],
[{file,
"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,136}]},
{service_domain_db_SUITE,
'-rest_delete_domain_cleans_data_from_mam/1-fun-0-',5... service_domain_db_SUITE:db:rest_without_auth:rest_delete_domain_cleans_data_from_mam{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,
<<"bob_rest_delete_domain_cleans_data_from_mam_95.387485@example.org/res1">>,
escalus_tcp,<0.29105.1>,
[{event_manager,<0.29099.1>},
{server,<<"example.org">>},
{username,
<<"bob_rest_delete_domain_cleans_data_from_mam_95.387485">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.29099.1>},
{server,<<"example.org">>},
{username,
<<"bob_rest_delete_domain_cleans_data_from_mam_95.387485">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,
<<"bob_rest_delete_domain_cleans_data_from_mam_95.387485">>},
{server,<<"example.org">>},
{host,<<"localhost">>},
{port,5232},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,
<<"bob_rest_delete_domain_cleans_data_from_mam_95.387485">>},
{server,<<"example.org">>},
{host,<<"localhost">>},
{password,<<"makota3">>},
{port,5232},
{stream_id,<<"0abcc5e49fcb9777">>}]},
5000],
[{file,
"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,136}]},
{service_domain_db_SUITE,
'-rest_delete_domain_cleans_data_from_mam/1-fun-0-',5... dynamic_domains_mysql_redis_24 / mysql_redis / 29056db ldap_mnesia_24 / ldap_mnesia / 29056db dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 29056db ldap_mnesia_23 / ldap_mnesia / 29056db elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 29056db pgsql_mnesia_24 / pgsql_mnesia / 29056db mysql_redis_24 / mysql_redis / 29056db mssql_mnesia_24 / odbc_mssql_mnesia / 29056db pgsql_mnesia_23 / pgsql_mnesia / 29056db riak_mnesia_24 / riak_mnesia / 29056db dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 29056db |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! The only thing I could point out is to check (either manually or automatically) that the query for the estimate can return something else than '-1'. I think you've already done that.
This handles the situation when table
users
has never yet been vacuumed or analyzed, and because of that, the estimated users number was -1According to the description of
reltuples
column: