=== Test case: mam_SUITE:querying_for_all_messages_with_jid/1 (click for source code)

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:2">>}]},
     {watchdog,<0.2142.1>},
     {basic_group,mam_all},
     {configuration,rdbms_async_cache},
     {wait_for_parallel_writer,[pm]},
     {mod_offline_loaded,false},
     {escalus_user_db,{module,escalus_ejabberd}},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/mam_SUITE_data"},
     {preset,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@c0783a4ae5cf.2022-02-03_16.28.29/big_tests.tests.mam_SUITE.logs/run.2022-02-03_16.32.18/mam_suite.querying_for_all_messages_with_jid.57859.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@c0783a4ae5cf.2022-02-03_16.28.29/big_tests.tests.mam_SUITE.logs/run.2022-02-03_16.32.18/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,[#{acl => all,value => 10}]}}},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => [],mod_amp => [],mod_bosh => [],
        mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
        mod_carboncopy => [],mod_commands => [],
        mod_disco => [{users_can_see_hidden_services,false}],
        mod_mam => [{archive_groupchats,false}],
        mod_mam_cache_user => [{pm,true}],
        mod_mam_rdbms_arch => [{no_writer,true}],
        mod_mam_rdbms_arch_async => [{pm,[{flush_interval,1}]}],
        mod_mam_rdbms_prefs => [{pm,true}],
        mod_mam_rdbms_user => [{pm,true}],
        mod_muc =>
            [{host,{prefix,<<"muc.">>}},
             {backend,rdbms},
             {hibernate_timeout,2000},
             {hibernated_room_check_interval,1000},
             {hibernated_room_timeout,2000},
             {access,muc},
             {access_create,muc_create}],
        mod_muc_commands => [],mod_muc_light_commands => [],
        mod_muc_log => [{outdir,"/tmp/muclogs"},{access_log,muc}],
        mod_register =>
            [{access,register},
             {ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
             {welcome_message,{[],[]}}],
        mod_roster => [{backend,rdbms}],
        mod_sic => [],mod_stream_management => [],
        mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}},
     {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@c0783a4ae5cf.2022-02-03_16.28.29"

=== Started at 2022-02-03 16:32:55


*** CT 2022-02-03 16:32:55.849 *** View log from node mongooseim@localhost when started mongooseim@localhost_1496.html
*** CT 2022-02-03 16:32:55.850 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_541.html

*** User 2022-02-03 16:32:56.129 ***
alicE_unnamed_1274@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-02-03 16:32:56.130 ***
alicE_unnamed_1274@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7cd8e4f1578f67c5' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-02-03 16:32:56.130 ***
alicE_unnamed_1274@localhost/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-02-03 16:32:56.130 ***
alicE_unnamed_1274@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfMTI3NABtYXR5Z3J5c2E=</auth>



*** User 2022-02-03 16:32:56.132 ***
alicE_unnamed_1274@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-02-03 16:32:56.132 ***
alicE_unnamed_1274@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-02-03 16:32:56.132 ***
alicE_unnamed_1274@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ca9e9b480156ec7e' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-02-03 16:32:56.132 ***
alicE_unnamed_1274@localhost/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-02-03 16:32:56.132 ***
alicE_unnamed_1274@localhost/res1 out
<iq type='set' id='902cf477a33f52320174eac701c25f44'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-02-03 16:32:56.132 ***
alicE_unnamed_1274@localhost/res1 in
<iq id='902cf477a33f52320174eac701c25f44' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_1274@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-02-03 16:32:56.133 ***
alicE_unnamed_1274@localhost/res1 out
<iq type='set' id='2d8aabdd8db2de965c1fd861dec42a2e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-03 16:32:56.133 ***
alicE_unnamed_1274@localhost/res1 in
<iq type='result' id='2d8aabdd8db2de965c1fd861dec42a2e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-03 16:32:56.133 ***
alicE_unnamed_1274@localhost/res1 out
<presence/>



*** User 2022-02-03 16:32:56.135 ***
alicE_unnamed_1274@localhost/res1 in
<presence from='alicE_unnamed_1274@localhost/res1' to='alice_unnamed_1274@localhost/res1' xml:lang='en'/>



*** User 2022-02-03 16:32:56.135 ***
alicE_unnamed_1274@localhost/res1 out
<iq type='set' id='876138ab3a7ee9b4040fae124d540dbe'>
	<query xmlns='urn:xmpp:mam:2'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1274@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-02-03 16:32:56.138 ***
alicE_unnamed_1274@localhost/res1 in
<message from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='2b28ea71-29cc-466a-9faf-1d3cdffe7e35'>
	<result xmlns='urn:xmpp:mam:2' id='BLEOSEMN0G0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T10:39:53Z' from='alice_unnamed_1274@localhost'/>
			<message from='alice_unnamed_1274@localhost' xmlns='jabber:client' to='bOb_unnamed_1274@localhost' type='chat'>
				<body>97750948</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:56.138 ***
alicE_unnamed_1274@localhost/res1 in
<message from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='79203549-6d10-42df-a36e-af7e8dbdf1b7'>
	<result xmlns='urn:xmpp:mam:2' id='BLFMI5EC6G01'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T22:04:21Z' from='alice_unnamed_1274@localhost'/>
			<message from='alice_unnamed_1274@localhost' xmlns='jabber:client' to='bOb_unnamed_1274@localhost' type='chat'>
				<body>cfbf028f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:56.139 ***
alicE_unnamed_1274@localhost/res1 in
<message from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='a6cb0983-1d43-460b-9293-20ec5714590b'>
	<result xmlns='urn:xmpp:mam:2' id='BLG9MDV4B003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T20:53:58Z' from='alice_unnamed_1274@localhost'/>
			<message from='alice_unnamed_1274@localhost' xmlns='jabber:client' to='bOb_unnamed_1274@localhost' type='chat'>
				<body>4dee3d4a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:56.140 ***
alicE_unnamed_1274@localhost/res1 in
<message from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='c28209f6-9cd7-42f5-85ea-3a32a6913a54'>
	<result xmlns='urn:xmpp:mam:2' id='BLGR4N4TL00J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T17:42:50Z' from='alice_unnamed_1274@localhost'/>
			<message from='alice_unnamed_1274@localhost' xmlns='jabber:client' to='bOb_unnamed_1274@localhost' type='chat'>
				<body>9526e265</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:56.140 ***
alicE_unnamed_1274@localhost/res1 in
<message from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='367d5b53-9ac4-49d9-a43f-7b52af377ec9'>
	<result xmlns='urn:xmpp:mam:2' id='BLHFQL6RB00H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T18:23:34Z' from='alice_unnamed_1274@localhost'/>
			<message from='alice_unnamed_1274@localhost' xmlns='jabber:client' to='bOb_unnamed_1274@localhost' type='chat'>
				<body>0879c608</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:56.140 ***
alicE_unnamed_1274@localhost/res1 in
<message from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='a634c731-8442-413f-bd29-ddb7e89f41fc'>
	<result xmlns='urn:xmpp:mam:2' id='BLHV0RM83G07'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T12:31:11Z' from='alice_unnamed_1274@localhost'/>
			<message from='alice_unnamed_1274@localhost' xmlns='jabber:client' to='bOb_unnamed_1274@localhost' type='chat'>
				<body>72e0e556</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:56.140 ***
alicE_unnamed_1274@localhost/res1 in
<message from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='67438f82-3fb1-4cbf-a108-d26aa9b4ec69'>
	<result xmlns='urn:xmpp:mam:2' id='BLIMRML2900B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T16:57:38Z' from='alice_unnamed_1274@localhost'/>
			<message from='alice_unnamed_1274@localhost' xmlns='jabber:client' to='bOb_unnamed_1274@localhost' type='chat'>
				<body>75e3ec40</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:56.140 ***
alicE_unnamed_1274@localhost/res1 in
<message from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='9a5e53f8-8cb3-4403-b038-3e6832c237d6'>
	<result xmlns='urn:xmpp:mam:2' id='BLJ6RKCOK005'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T12:02:48Z' from='alice_unnamed_1274@localhost'/>
			<message from='alice_unnamed_1274@localhost' xmlns='jabber:client' to='bOb_unnamed_1274@localhost' type='chat'>
				<body>9dc57574</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:56.140 ***
alicE_unnamed_1274@localhost/res1 in
<message from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='3766f789-dd60-4eab-be97-0f79f6289c5c'>
	<result xmlns='urn:xmpp:mam:2' id='BLJM8PPKS00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T06:26:00Z' from='alice_unnamed_1274@localhost'/>
			<message from='alice_unnamed_1274@localhost' xmlns='jabber:client' to='bOb_unnamed_1274@localhost' type='chat'>
				<body>6e5c43ed</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:56.140 ***
alicE_unnamed_1274@localhost/res1 in
<message from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='30f3e1fa-e9f6-408c-8912-1f2918ca1174'>
	<result xmlns='urn:xmpp:mam:2' id='BLK9QH4N4009'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T05:45:44Z' from='alice_unnamed_1274@localhost'/>
			<message from='alice_unnamed_1274@localhost' xmlns='jabber:client' to='bOb_unnamed_1274@localhost' type='chat'>
				<body>71076e15</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:56.140 ***
alicE_unnamed_1274@localhost/res1 in
<message from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='a8c89ed9-ef2a-4bc7-ba61-1ad27ed21521'>
	<result xmlns='urn:xmpp:mam:2' id='BLL034TPB00B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-28T08:19:50Z' from='alice_unnamed_1274@localhost'/>
			<message from='alice_unnamed_1274@localhost' xmlns='jabber:client' to='bOb_unnamed_1274@localhost' type='chat'>
				<body>fdf8a47d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:56.140 ***
alicE_unnamed_1274@localhost/res1 in
<message from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='ac51b95f-bdf7-43f7-879c-0717ace93d46'>
	<result xmlns='urn:xmpp:mam:2' id='BLLF7L9A6004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-29T02:23:40Z' from='alice_unnamed_1274@localhost'/>
			<message from='alice_unnamed_1274@localhost' xmlns='jabber:client' to='bOb_unnamed_1274@localhost' type='chat'>
				<body>92e8a792</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:56.140 ***
alicE_unnamed_1274@localhost/res1 in
<message from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='9d0b0462-dab6-437f-8647-a2392517bb7c'>
	<result xmlns='urn:xmpp:mam:2' id='BLM51VHIHG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-30T04:25:47Z' from='alice_unnamed_1274@localhost'/>
			<message from='alice_unnamed_1274@localhost' xmlns='jabber:client' to='bOb_unnamed_1274@localhost' type='chat'>
				<body>6452f113</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:56.140 ***
alicE_unnamed_1274@localhost/res1 in
<message from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='6551d419-a254-4d7b-a388-a78cd10558d3'>
	<result xmlns='urn:xmpp:mam:2' id='BLMS8KRVT00K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-31T08:07:06Z' from='alice_unnamed_1274@localhost'/>
			<message from='alice_unnamed_1274@localhost' xmlns='jabber:client' to='bOb_unnamed_1274@localhost' type='chat'>
				<body>24bed02e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:56.140 ***
alicE_unnamed_1274@localhost/res1 in
<message from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='3e8c4df8-0ece-417f-adbd-b4f94fee1e3d'>
	<result xmlns='urn:xmpp:mam:2' id='BLNSFQUMV002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-01T22:33:50Z' from='alice_unnamed_1274@localhost'/>
			<message from='alice_unnamed_1274@localhost' xmlns='jabber:client' to='bOb_unnamed_1274@localhost' type='chat'>
				<body>f592e888</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:56.140 ***
alicE_unnamed_1274@localhost/res1 in
<message from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='bdc892cb-1d5c-4f54-ba35-ae6e77c85b8f'>
	<result xmlns='urn:xmpp:mam:2' id='BLO9TNF4SG0E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-02T14:35:29Z' from='alice_unnamed_1274@localhost'/>
			<message from='alice_unnamed_1274@localhost' xmlns='jabber:client' to='bOb_unnamed_1274@localhost' type='chat'>
				<body>f47a5ebb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:56.140 ***
alicE_unnamed_1274@localhost/res1 in
<message from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='3bb7ddee-3347-4545-8d6c-cf11446ede3d'>
	<result xmlns='urn:xmpp:mam:2' id='BLP5N5S8MG07'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-03T23:45:09Z' from='alice_unnamed_1274@localhost'/>
			<message from='alice_unnamed_1274@localhost' xmlns='jabber:client' to='bOb_unnamed_1274@localhost' type='chat'>
				<body>11a87fe1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:56.141 ***
alicE_unnamed_1274@localhost/res1 in
<iq from='alicE_unnamed_1274@localhost' to='alicE_unnamed_1274@localhost/res1' id='876138ab3a7ee9b4040fae124d540dbe' type='result'>
	<fin xmlns='urn:xmpp:mam:2' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BLEOSEMN0G0C</first>
			<last>BLP5N5S8MG07</last>
			<count>17</count>
		</set>
	</fin>
</iq>



*** User 2022-02-03 16:32:56.141 ***
alicE_unnamed_1274@localhost/res1 out
</stream:stream>

*** User 2022-02-03 16:32:56.141 ***
alicE_unnamed_1274@localhost/res1 in
</stream:stream>
*** CT 2022-02-03 16:32:56.151 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_541.html
*** CT 2022-02-03 16:32:56.153 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1496.html



=== Ended at 2022-02-03 16:32:56
=== successfully completed test case
=== === Returned value: ok