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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:1">>}]},
     {watchdog,<0.27284.0>},
     {basic_group,mam_all},
     {configuration,rdbms_async_pool},
     {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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.mam_SUITE.logs/run.2022-01-25_16.25.52/mam_suite.querying_for_all_messages_with_jid.48898.html"},
     {tc_group_properties,[{name,mam04},parallel]},
     {tc_group_path,[[{name,rdbms_async_pool_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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.mam_SUITE.logs/run.2022-01-25_16.25.52/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_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@ebe8a8f9fc53.2022-01-25_16.21.59"

=== Started at 2022-01-25 16:26:18


*** CT 2022-01-25 16:26:18.179 *** View log from node mongooseim@localhost when started mongooseim@localhost_1018.html
*** CT 2022-01-25 16:26:18.180 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_541.html

*** User 2022-01-25 16:26:18.458 ***
alicE_unnamed_1040@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-01-25 16:26:18.458 ***
alicE_unnamed_1040@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ad9fac57a74737bf' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:26:18.458 ***
alicE_unnamed_1040@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-01-25 16:26:18.458 ***
alicE_unnamed_1040@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfMTA0MABtYXR5Z3J5c2E=</auth>



*** User 2022-01-25 16:26:18.460 ***
alicE_unnamed_1040@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:26:18.460 ***
alicE_unnamed_1040@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-01-25 16:26:18.461 ***
alicE_unnamed_1040@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='de46c51211920ede' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:26:18.461 ***
alicE_unnamed_1040@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-01-25 16:26:18.461 ***
alicE_unnamed_1040@localhost/res1 out
<iq type='set' id='21b82b970b20ed3c8151421c60eee60d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:26:18.461 ***
alicE_unnamed_1040@localhost/res1 in
<iq id='21b82b970b20ed3c8151421c60eee60d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_1040@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:26:18.461 ***
alicE_unnamed_1040@localhost/res1 out
<iq type='set' id='6222f2e2678f1f861554ddf7f1e0bc6c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:26:18.462 ***
alicE_unnamed_1040@localhost/res1 in
<iq type='result' id='6222f2e2678f1f861554ddf7f1e0bc6c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:26:18.462 ***
alicE_unnamed_1040@localhost/res1 out
<presence/>



*** User 2022-01-25 16:26:18.466 ***
alicE_unnamed_1040@localhost/res1 in
<presence from='alicE_unnamed_1040@localhost/res1' to='alice_unnamed_1040@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:26:18.466 ***
alicE_unnamed_1040@localhost/res1 out
<iq type='set' id='cfd2bfd1b99619f364b07b616ae33523'>
	<query xmlns='urn:xmpp:mam:1'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1040@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-25 16:26:18.471 ***
alicE_unnamed_1040@localhost/res1 in
<message from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='75de4034-f2e5-4594-9c36-aef6f716572f'>
	<result xmlns='urn:xmpp:mam:1' id='BL905JF7E00E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-09T06:17:32Z' from='alice_unnamed_1040@localhost'/>
			<message from='alice_unnamed_1040@localhost' xmlns='jabber:client' to='bOb_unnamed_1040@localhost' type='chat'>
				<body>28eece19</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.471 ***
alicE_unnamed_1040@localhost/res1 in
<message from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='1435fb6f-d7bf-4144-98c5-f8676bf5ce87'>
	<result xmlns='urn:xmpp:mam:1' id='BL9JQJN7I009'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-10T05:44:36Z' from='alice_unnamed_1040@localhost'/>
			<message from='alice_unnamed_1040@localhost' xmlns='jabber:client' to='bOb_unnamed_1040@localhost' type='chat'>
				<body>1a1d4cb9</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.471 ***
alicE_unnamed_1040@localhost/res1 in
<message from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='7f00f576-9fe3-4972-a50a-a57902a03742'>
	<result xmlns='urn:xmpp:mam:1' id='BLAA5DBMVG0K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T08:23:35Z' from='alice_unnamed_1040@localhost'/>
			<message from='alice_unnamed_1040@localhost' xmlns='jabber:client' to='bOb_unnamed_1040@localhost' type='chat'>
				<body>ee99dcc8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.471 ***
alicE_unnamed_1040@localhost/res1 in
<message from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='8122fadf-4289-4748-99ed-52d660292c46'>
	<result xmlns='urn:xmpp:mam:1' id='BLB58NLH4G0G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T16:43:45Z' from='alice_unnamed_1040@localhost'/>
			<message from='alice_unnamed_1040@localhost' xmlns='jabber:client' to='bOb_unnamed_1040@localhost' type='chat'>
				<body>ad2feee0</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.471 ***
alicE_unnamed_1040@localhost/res1 in
<message from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='860c092d-5ed1-4b65-9797-28ec1508cc21'>
	<result xmlns='urn:xmpp:mam:1' id='BLBTTT6K900E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T22:09:06Z' from='alice_unnamed_1040@localhost'/>
			<message from='alice_unnamed_1040@localhost' xmlns='jabber:client' to='bOb_unnamed_1040@localhost' type='chat'>
				<body>366ffb27</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.471 ***
alicE_unnamed_1040@localhost/res1 in
<message from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='33980a1c-75fa-415f-97dd-1464e79b44a8'>
	<result xmlns='urn:xmpp:mam:1' id='BLCA1E9UO004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T12:36:00Z' from='alice_unnamed_1040@localhost'/>
			<message from='alice_unnamed_1040@localhost' xmlns='jabber:client' to='bOb_unnamed_1040@localhost' type='chat'>
				<body>39bc44c8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.471 ***
alicE_unnamed_1040@localhost/res1 in
<message from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='071d38c0-ec63-4c3c-accc-35cedd789163'>
	<result xmlns='urn:xmpp:mam:1' id='BLCKUO2RLG0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T01:37:23Z' from='alice_unnamed_1040@localhost'/>
			<message from='alice_unnamed_1040@localhost' xmlns='jabber:client' to='bOb_unnamed_1040@localhost' type='chat'>
				<body>2c23741a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.471 ***
alicE_unnamed_1040@localhost/res1 in
<message from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='ee60ea5e-6ab0-411f-85ae-619f752ffa44'>
	<result xmlns='urn:xmpp:mam:1' id='BLD7VL2OCG07'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T00:19:29Z' from='alice_unnamed_1040@localhost'/>
			<message from='alice_unnamed_1040@localhost' xmlns='jabber:client' to='bOb_unnamed_1040@localhost' type='chat'>
				<body>5cf932a7</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.472 ***
alicE_unnamed_1040@localhost/res1 in
<message from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='d2f04530-8774-4e3a-aa7f-2f4051b8c63f'>
	<result xmlns='urn:xmpp:mam:1' id='BLEE2VUIL001'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T21:47:06Z' from='alice_unnamed_1040@localhost'/>
			<message from='alice_unnamed_1040@localhost' xmlns='jabber:client' to='bOb_unnamed_1040@localhost' type='chat'>
				<body>d48063ac</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.472 ***
alicE_unnamed_1040@localhost/res1 in
<message from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='0ec92151-1452-402d-a421-3c79aa366372'>
	<result xmlns='urn:xmpp:mam:1' id='BLEH1CFC7G01'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T01:18:15Z' from='alice_unnamed_1040@localhost'/>
			<message from='alice_unnamed_1040@localhost' xmlns='jabber:client' to='bOb_unnamed_1040@localhost' type='chat'>
				<body>3514fa76</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.472 ***
alicE_unnamed_1040@localhost/res1 in
<message from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='a9575abe-78ff-40a9-b0d9-504052ff3cfb'>
	<result xmlns='urn:xmpp:mam:1' id='BLF98QJG6G0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T06:12:53Z' from='alice_unnamed_1040@localhost'/>
			<message from='alice_unnamed_1040@localhost' xmlns='jabber:client' to='bOb_unnamed_1040@localhost' type='chat'>
				<body>d815ab04</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.472 ***
alicE_unnamed_1040@localhost/res1 in
<message from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='3876b6d6-bbe3-4b91-b67f-740158f70b79'>
	<result xmlns='urn:xmpp:mam:1' id='BLG56KFQ900I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T15:32:18Z' from='alice_unnamed_1040@localhost'/>
			<message from='alice_unnamed_1040@localhost' xmlns='jabber:client' to='bOb_unnamed_1040@localhost' type='chat'>
				<body>c1ac274b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.472 ***
alicE_unnamed_1040@localhost/res1 in
<message from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='f7644053-9998-43d7-82d4-8434373b4739'>
	<result xmlns='urn:xmpp:mam:1' id='BLGLF9SPIG02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T10:57:01Z' from='alice_unnamed_1040@localhost'/>
			<message from='alice_unnamed_1040@localhost' xmlns='jabber:client' to='bOb_unnamed_1040@localhost' type='chat'>
				<body>880372e9</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.472 ***
alicE_unnamed_1040@localhost/res1 in
<message from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='292a91b3-7f8e-43f2-aa3f-39136547627b'>
	<result xmlns='urn:xmpp:mam:1' id='BLHEP935B001'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T17:08:54Z' from='alice_unnamed_1040@localhost'/>
			<message from='alice_unnamed_1040@localhost' xmlns='jabber:client' to='bOb_unnamed_1040@localhost' type='chat'>
				<body>9369e6f4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.472 ***
alicE_unnamed_1040@localhost/res1 in
<message from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='38cf11bf-53dd-4b55-a40c-8c8239b0629b'>
	<result xmlns='urn:xmpp:mam:1' id='BLHO2ROQ1G04'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T04:14:35Z' from='alice_unnamed_1040@localhost'/>
			<message from='alice_unnamed_1040@localhost' xmlns='jabber:client' to='bOb_unnamed_1040@localhost' type='chat'>
				<body>d67518a1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.473 ***
alicE_unnamed_1040@localhost/res1 in
<message from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='09561db4-91fa-4b24-aaee-eb299f7816c7'>
	<result xmlns='urn:xmpp:mam:1' id='BLIHLSKSLG0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T10:46:43Z' from='alice_unnamed_1040@localhost'/>
			<message from='alice_unnamed_1040@localhost' xmlns='jabber:client' to='bOb_unnamed_1040@localhost' type='chat'>
				<body>1a3b4314</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.473 ***
alicE_unnamed_1040@localhost/res1 in
<message from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='e8b9ab0b-503f-4a69-911d-b175a24828e0'>
	<result xmlns='urn:xmpp:mam:1' id='BLJ0BGD8D00J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T04:17:14Z' from='alice_unnamed_1040@localhost'/>
			<message from='alice_unnamed_1040@localhost' xmlns='jabber:client' to='bOb_unnamed_1040@localhost' type='chat'>
				<body>51fb51a2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.473 ***
alicE_unnamed_1040@localhost/res1 in
<iq from='alicE_unnamed_1040@localhost' to='alicE_unnamed_1040@localhost/res1' id='cfd2bfd1b99619f364b07b616ae33523' type='result'>
	<fin xmlns='urn:xmpp:mam:1' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BL905JF7E00E</first>
			<last>BLJ0BGD8D00J</last>
			<count>17</count>
		</set>
	</fin>
</iq>



*** User 2022-01-25 16:26:18.473 ***
alicE_unnamed_1040@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:26:18.473 ***
alicE_unnamed_1040@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:26:18.530 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_541.html
*** CT 2022-01-25 16:26:18.531 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1018.html



=== Ended at 2022-01-25 16:26:18
=== successfully completed test case
=== === Returned value: ok