=== Test case: mam_SUITE:limit_archive_request/1 (click for source code)
=== Config value:
[{props,[{mam_ns,<<"urn:xmpp:mam:2">>}]},
{watchdog,<0.50327.0>},
{basic_group,mam_all},
{configuration,rdbms_async_cache},
{wait_for_parallel_writer,[pm]},
{mam_meta_opts,#{cache =>
#{module => internal,strategy => fifo,
number_of_segments => 3,time_to_live => 480},
backend => rdbms,max_result_limit => 50,
send_message => mod_mam_utils,
pm =>
#{archive_groupchats => false,
same_mam_id_for_peers => false},
is_archivable_message => mod_mam_utils,
default_result_limit => 50,
enforce_simple_queries => false,
archive_chat_markers => false,full_text_search => true,
message_retraction => true,
async_writer =>
#{enabled => true,pool_size => 16,batch_size => 30,
flush_interval => 1},
no_stanzaid_element => false,user_prefs_store => rdbms,
cache_users => true}},
{mod_offline_loaded,false},
{escalus_user_db,{module,escalus_ejabberd}},
{preset,"pgsql_cets"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/mam_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.mam_SUITE.logs/run.2023-11-17_15.17.13/mam_suite.limit_archive_request.145282.html"},
{tc_group_properties,[{name,mam06},parallel]},
{tc_group_path,[[{name,rdbms_async_cache_mam_all},parallel]]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/mam_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.mam_SUITE.logs/run.2023-11-17_15.17.13/log_private/"},
{config_backup,#{[shaper,fast] => {ok,#{max_rate => 50000}},
[shaper,mam_shaper] => {ok,#{max_rate => 1}},
[shaper,normal] => {ok,#{max_rate => 1000}},
[{access,<<"localhost">>},max_user_sessions] =>
{ok,[#{value => 10,acl => all}]}}},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_amp => #{},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_sic => #{iqdisc => one_queue},
mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,backend => cets,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_muc_log =>
#{dirname => room_jid,outdir => "/tmp/muclogs",
file_format => html,css_file => false,timezone => local,
spam_prevention => true,
top_link => {"/","Home"},
access_log => muc,dirtype => subdirs},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => cets,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_muc =>
#{access => muc,
host => {prefix,<<"muc.">>},
backend => rdbms,online_backend => cets,max_users => 200,
room_shaper => none,http_auth_pool => none,
hibernate_timeout => 2000,history_size => 20,
hibernated_room_check_interval => 1000,
hibernated_room_timeout => 2000,access_create => muc_create,
access_admin => none,access_persistent => all,
default_room =>
#{public => true,description => <<>>,title => <<>>,
persistent => false,password => <<>>,subject => <<>>,
anonymous => true,affiliations => [],
allow_change_subj => true,allow_query_users => true,
allow_private_messages => true,
allow_visitor_status => true,
allow_visitor_nickchange => true,public_list => true,
moderated => true,members_by_default => true,
members_only => false,allow_user_invites => false,
allow_multiple_sessions => false,
password_protected => false,max_users => 200,
maygetmemberlist => [],logging => false,
subject_author => <<>>},
load_permanent_rooms_at_startup => false,
max_room_id => infinity,min_presence_interval => 0,
max_users_admin_threshold => 5,user_message_shaper => none,
user_presence_shaper => none,min_message_interval => 0,
max_user_conferences => 10,max_room_name => infinity,
max_room_desc => infinity}}},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]},
{kate,[{username,<<"kate">>},
{server,<<"localhost">>},
{password,<<"makrowe;p">>}]},
{carol,[{username,<<"carol">>},
{server,<<"localhost">>},
{password,<<"jinglebells">>},
{transport,escalus_bosh},
{path,<<"/http-bind">>},
{port,5280}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@1c2ae12cdb1a.2023-11-17_15.10.15"
=== Started at 2023-11-17 15:17:49
*** User 2023-11-17 15:17:49.530 ***🔗
waiting for archive_size is done in 100 miliseconds
*** User 2023-11-17 15:17:49.530 ***🔗
waiting for archive_size is done in 0 miliseconds
*** User 2023-11-17 15:17:49.531 ***🔗
waiting for archive_size is done in 0 miliseconds
*** User 2023-11-17 15:17:49.541 ***🔗
alicE_unnamed_2045@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:17:49.542 ***🔗
alicE_unnamed_2045@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='962c96fb6052342b' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:17:49.542 ***🔗
alicE_unnamed_2045@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2023-11-17 15:17:49.542 ***🔗
alicE_unnamed_2045@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfMjA0NQBtYXR5Z3J5c2E=</auth>
*** User 2023-11-17 15:17:49.543 ***🔗
alicE_unnamed_2045@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:17:49.543 ***🔗
alicE_unnamed_2045@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:17:49.543 ***🔗
alicE_unnamed_2045@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f12aedcaf1372f8d' from='localhost' version='1.0' xml:lang='en' to='alice_unnamed_2045@localhost'>
*** User 2023-11-17 15:17:49.543 ***🔗
alicE_unnamed_2045@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2023-11-17 15:17:49.543 ***🔗
alicE_unnamed_2045@localhost/res1 out
<iq type='set' id='65fd3300489baf7aa4e708477510870e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:17:49.543 ***🔗
alicE_unnamed_2045@localhost/res1 in
<iq id='65fd3300489baf7aa4e708477510870e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_unnamed_2045@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:17:49.544 ***🔗
alice_unnamed_2045@localhost/res1 out
<iq type='set' id='4cc6a7eb5e89819067c9f99102fb9ef6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:17:49.544 ***🔗
alice_unnamed_2045@localhost/res1 in
<iq from='localhost' to='alice_unnamed_2045@localhost/res1' id='4cc6a7eb5e89819067c9f99102fb9ef6' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:17:49.544 ***🔗
alice_unnamed_2045@localhost/res1 out
<presence/>
*** User 2023-11-17 15:17:49.546 ***🔗
alice_unnamed_2045@localhost/res1 in
<presence from='alice_unnamed_2045@localhost/res1' to='alice_unnamed_2045@localhost/res1'/>
*** User 2023-11-17 15:17:49.546 ***🔗
alice_unnamed_2045@localhost/res1 out
<iq type='set' id='6ac3311bad5b92bc236dded8c3076714'>
<query xmlns='urn:xmpp:mam:2'>
<x xmlns='jabber:x:data' type='submit'>
<field var='start'>
<value>2010-08-07T00:00:00Z</value>
</field>
</x>
<set>
<max>10</max>
</set>
</query>
</iq>
*** User 2023-11-17 15:17:49.547 ***🔗
alice_unnamed_2045@localhost/res1 in
<message from='alice_unnamed_2045@localhost' to='alice_unnamed_2045@localhost/res1' id='b92024d3-62db-4450-8d01-879493ef347e'>
<result xmlns='urn:xmpp:mam:2' id='C28SUJL68G07'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2023-11-01T20:17:13.000000Z' from='alice_unnamed_2045@localhost'/>
<message from='alice_unnamed_2045@localhost' xmlns='jabber:client' type='chat' to='bOb_unnamed_2045@localhost'>
<body>13a0157b</body>
</message>
</forwarded>
</result>
</message>
*** User 2023-11-17 15:17:49.549 ***🔗
alice_unnamed_2045@localhost/res1 in
<message from='alice_unnamed_2045@localhost' to='alice_unnamed_2045@localhost/res1' id='2a30d1a0-7144-46ab-9359-7febe4165f59'>
<result xmlns='urn:xmpp:mam:2' id='C28T189K6005'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2023-11-01T20:23:08.000000Z' from='alice_unnamed_2045@localhost'/>
<message from='alice_unnamed_2045@localhost' xmlns='jabber:client' type='chat' to='carol_unnamed_2045@localhost'>
<body>fc8db600</body>
</message>
</forwarded>
</result>
</message>
*** User 2023-11-17 15:17:49.549 ***🔗
alice_unnamed_2045@localhost/res1 in
<message from='alice_unnamed_2045@localhost' to='alice_unnamed_2045@localhost/res1' id='860b5af9-234a-4623-a609-e54f38cd835e'>
<result xmlns='urn:xmpp:mam:2' id='C2913CO8FG0I'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2023-11-02T01:14:15.000000Z' from='alice_unnamed_2045@localhost'/>
<message from='alice_unnamed_2045@localhost' xmlns='jabber:client' type='chat' to='bOb_unnamed_2045@localhost'>
<body>def0e7ec</body>
</message>
</forwarded>
</result>
</message>
*** User 2023-11-17 15:17:49.549 ***🔗
alice_unnamed_2045@localhost/res1 in
<message from='alice_unnamed_2045@localhost' to='alice_unnamed_2045@localhost/res1' id='9c15d51d-f284-478c-b5e5-cf3e1c9fefd4'>
<result xmlns='urn:xmpp:mam:2' id='C29F0V4IDG0K'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2023-11-02T17:50:59.000000Z' from='alice_unnamed_2045@localhost'/>
<message from='alice_unnamed_2045@localhost' xmlns='jabber:client' type='chat' to='carol_unnamed_2045@localhost'>
<body>038ea52f</body>
</message>
</forwarded>
</result>
</message>
*** User 2023-11-17 15:17:49.549 ***🔗
alice_unnamed_2045@localhost/res1 in
<message from='alice_unnamed_2045@localhost' to='alice_unnamed_2045@localhost/res1' id='4bc669e5-49b7-4a0f-9e1d-99ecbca7d6ea'>
<result xmlns='urn:xmpp:mam:2' id='C29RVR04R003'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2023-11-03T09:19:02.000000Z' from='alice_unnamed_2045@localhost'/>
<message from='alice_unnamed_2045@localhost' xmlns='jabber:client' type='chat' to='carol_unnamed_2045@localhost'>
<body>f0fd8a5c</body>
</message>
</forwarded>
</result>
</message>
*** User 2023-11-17 15:17:49.549 ***🔗
alice_unnamed_2045@localhost/res1 in
<message from='alice_unnamed_2045@localhost' to='alice_unnamed_2045@localhost/res1' id='1d7e1893-e03f-4940-a67f-1c8ddad394b9'>
<result xmlns='urn:xmpp:mam:2' id='C2A85STQVG0A'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2023-11-03T23:51:35.000000Z' from='alice_unnamed_2045@localhost'/>
<message from='alice_unnamed_2045@localhost' xmlns='jabber:client' type='chat' to='bOb_unnamed_2045@localhost'>
<body>73359764</body>
</message>
</forwarded>
</result>
</message>
*** User 2023-11-17 15:17:49.549 ***🔗
alice_unnamed_2045@localhost/res1 in
<message from='alice_unnamed_2045@localhost' to='alice_unnamed_2045@localhost/res1' id='b405b724-034b-43ac-b7cb-7cc5c5cdbdae'>
<result xmlns='urn:xmpp:mam:2' id='C2AHGGNV7G0J'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2023-11-04T10:59:35.000000Z' from='alice_unnamed_2045@localhost'/>
<message from='alice_unnamed_2045@localhost' xmlns='jabber:client' type='chat' to='bOb_unnamed_2045@localhost'>
<body>ed188b96</body>
</message>
</forwarded>
</result>
</message>
*** User 2023-11-17 15:17:49.549 ***🔗
alice_unnamed_2045@localhost/res1 in
<message from='alice_unnamed_2045@localhost' to='alice_unnamed_2045@localhost/res1' id='e1d5a8e0-c11e-4c17-9023-e4a56d6036c2'>
<result xmlns='urn:xmpp:mam:2' id='C2AHL0O45G06'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2023-11-04T11:09:39.000000Z' from='alice_unnamed_2045@localhost'/>
<message from='alice_unnamed_2045@localhost' xmlns='jabber:client' type='chat' to='carol_unnamed_2045@localhost'>
<body>045fa699</body>
</message>
</forwarded>
</result>
</message>
*** User 2023-11-17 15:17:49.549 ***🔗
alice_unnamed_2045@localhost/res1 in
<message from='alice_unnamed_2045@localhost' to='alice_unnamed_2045@localhost/res1' id='02fbe42d-efaf-4106-bb8f-916300280552'>
<result xmlns='urn:xmpp:mam:2' id='C2B3EJC2LG0I'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2023-11-05T08:23:47.000000Z' from='alice_unnamed_2045@localhost'/>
<message from='alice_unnamed_2045@localhost' xmlns='jabber:client' type='chat' to='bOb_unnamed_2045@localhost'>
<body>5a6880dd</body>
</message>
</forwarded>
</result>
</message>
*** User 2023-11-17 15:17:49.549 ***🔗
alice_unnamed_2045@localhost/res1 in
<message from='alice_unnamed_2045@localhost' to='alice_unnamed_2045@localhost/res1' id='7e3b2295-ec1e-4dd6-9d83-97eb9c1a6067'>
<result xmlns='urn:xmpp:mam:2' id='C2B6I7VJCG0C'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2023-11-05T12:06:41.000000Z' from='alice_unnamed_2045@localhost'/>
<message from='alice_unnamed_2045@localhost' xmlns='jabber:client' type='chat' to='carol_unnamed_2045@localhost'>
<body>e3e43782</body>
</message>
</forwarded>
</result>
</message>
*** User 2023-11-17 15:17:49.549 ***🔗
alice_unnamed_2045@localhost/res1 in
<iq from='alice_unnamed_2045@localhost' to='alice_unnamed_2045@localhost/res1' id='6ac3311bad5b92bc236dded8c3076714' type='result'>
<fin xmlns='urn:xmpp:mam:2'>
<set xmlns='http://jabber.org/protocol/rsm'>
<first index='0'>C28SUJL68G07</first>
<last>C2B6I7VJCG0C</last>
<count>34</count>
</set>
</fin>
</iq>
*** User 2023-11-17 15:17:49.550 ***🔗
alice_unnamed_2045@localhost/res1 out
</stream:stream>
*** User 2023-11-17 15:17:49.550 ***🔗
alice_unnamed_2045@localhost/res1 in
</stream:stream>
=== Ended at 2023-11-17 15:17:49
=== successfully completed test case
=== === Returned value: ok