[CDRIVER-4069] Investigate /Session/end/pooled failing on serverless Created: 09/Jul/21  Updated: 02/Jun/22

Status: Backlog
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Unknown
Reporter: Andreas Braun Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Serverless Proxy Testing

 Description   

/Session/end/single passes, but /Session/end/pooled fails.

Relevant trace:

[2021/07/08 13:43:01.308] Begin /Session/end/pooled, seed 2594501553
[2021/07/08 13:43:02.162] 2021/07/08 13:43:02.0162: [ 1434]:  WARNING:       client: Couldn't send "endSessions": Could not find node 6301844914-libmongoc-shard-00-01.2tzoa.mongodb-dev.net:27017
[2021/07/08 13:43:02.163] FAIL
[2021/07/08 13:43:02.163] Assert Failure: 0 == 1
[2021/07/08 13:43:02.163] /data/mci/bbde801ed605da6e99972a957045d9dd/mongoc/src/libmongoc/tests/test-mongoc-client-session.c:724  _test_end_sessions()
[2021/07/08 13:43:02.168] Aborted (core dumped)
[2021/07/08 13:43:02.168] Command failed: command encountered problem: error waiting on process '70b97077-e359-493c-8b5e-6954c1bdb6b1': exit status 134
[2021/07/08 13:43:02.169] Task completed - FAILURE.
[2021/07/08 13:43:02.187] Running post-task commands.
[2021/07/08 13:43:02.187] Running command 'shell.exec' in "backtrace" (step 1 of 6)
[2021/07/08 13:43:03.909] Debugging core files
[2021/07/08 13:43:03.909] dump_test-libmongoc.1434.core
[2021/07/08 13:43:06.939] Reading symbols from ./src/libmongoc/test-libmongoc...done.
[2021/07/08 13:43:06.939] [New LWP 1434]
[2021/07/08 13:43:06.939] [Thread debugging using libthread_db enabled]
[2021/07/08 13:43:06.939] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[2021/07/08 13:43:08.075] Core was generated by `./src/libmongoc/test-libmongoc --no-fork -d -F test-results.json -d'.
[2021/07/08 13:43:08.075] 51	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[2021/07/08 13:43:08.075] Program terminated with signal SIGABRT, Aborted.
[2021/07/08 13:43:08.075] warning: File "/data/mci/5351ca0dda06e2e916e966b5e0987313/mongoc/.gdbinit" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
[2021/07/08 13:43:08.075] #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
[2021/07/08 13:43:08.084] To enable execution of this file add
[2021/07/08 13:43:08.084] 	add-auto-load-safe-path /data/mci/5351ca0dda06e2e916e966b5e0987313/mongoc/.gdbinit
[2021/07/08 13:43:08.084] line to your configuration file "/home/ubuntu/.gdbinit".
[2021/07/08 13:43:08.084] To completely disable this security protection add
[2021/07/08 13:43:08.084] 	set auto-load safe-path /
[2021/07/08 13:43:08.084] line to your configuration file "/home/ubuntu/.gdbinit".
[2021/07/08 13:43:08.084] For more information about this security protection see the
[2021/07/08 13:43:08.084] "Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
[2021/07/08 13:43:08.084] 	info "(gdb)Auto-loading safe path"
[2021/07/08 13:43:08.177] (gdb) #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
[2021/07/08 13:43:08.177]         set = {__val = {0, 140445095044432, 4294967295, 140445095044560,
[2021/07/08 13:43:08.177]             140445511804672, 0, 0, 140445508315372, 140445508861872,
[2021/07/08 13:43:08.177]             140445511777984, 140445095044432, 140445507443571, 0,
[2021/07/08 13:43:08.177]             140445511777984, 140445095054400, 140445095153440}}
[2021/07/08 13:43:08.177]         pid = <optimized out>
[2021/07/08 13:43:08.177]         tid = <optimized out>
[2021/07/08 13:43:08.177]         ret = <optimized out>
[2021/07/08 13:43:08.177] #1  0x00007fbc03680921 in __GI_abort () at abort.c:79
[2021/07/08 13:43:08.182]         save_stage = 1
[2021/07/08 13:43:08.182]         act = {__sigaction_handler = {sa_handler = 0x1, sa_sigaction = 0x1},
[2021/07/08 13:43:08.182]           sa_mask = {__val = {94206336779768, 140737453457824,
[2021/07/08 13:43:08.182]               94206333766816, 140737453462880, 0, 0, 1, 140737453457824,
[2021/07/08 13:43:08.183]               94206335875161, 140737453457872, 94206335877076,
[2021/07/08 13:43:08.183]               94206357992128, 94206357674928, 94206357146464, 0,
[2021/07/08 13:43:08.183]               140737453457904}}, sa_flags = 521909622,
[2021/07/08 13:43:08.183]           sa_restorer = 0x7ffffdeb9070}
[2021/07/08 13:43:08.183]         sigs = {__val = {32, 0 <repeats 15 times>}}
[2021/07/08 13:43:08.183]         __cnt = <optimized out>
[2021/07/08 13:43:08.183]         __set = <optimized out>
[2021/07/08 13:43:08.183]         __cnt = <optimized out>
[2021/07/08 13:43:08.183]         __set = <optimized out>
[2021/07/08 13:43:08.183] #2  0x000055ae1f1bbd52 in _test_end_sessions (pooled=true)
[2021/07/08 13:43:08.183]     at /data/mci/bbde801ed605da6e99972a957045d9dd/mongoc/src/libmongoc/tests/test-mongoc-client-session.c:724
[2021/07/08 13:43:08.184]         _a = 0
[2021/07/08 13:43:08.184]         _b = 1
[2021/07/08 13:43:08.184]         test = {started_calls = 0, succeeded_calls = 0, cmds = {len = 0,
[2021/07/08 13:43:08.187]             element_size = 8, allocated = 128, data = 0x55ae207a16c0},
[2021/07/08 13:43:08.187]           pool = 0x55ae207c1bb0, client = 0x55ae2080f2c0}
[2021/07/08 13:43:08.188]         client = 0x55ae2080f2c0
[2021/07/08 13:43:08.188]         error = {domain = 0, code = 0,
[2021/07/08 13:43:08.188]           message = '\000' <repeats 113 times>, "\233\006\021\327:\314k\000\000\000\000\000\000\000\000\360_y \256U", '\000' <repeats 11 times>, "\233\006\021\327:\314k\000\000\000\000\000\000\000\000HT\200 \256U\000\000\000\000\000\000\000\000\000\000\320\025\327\004\274\177\000\000\000\000\000\000\000\000\000\000\260\207\353\375\377\177\000\000"...}
[2021/07/08 13:43:08.189]         cs1 = 0x55ae207f9650
[2021/07/08 13:43:08.189]         cs2 = 0x55ae207f7ac0
[2021/07/08 13:43:08.189]         lsid1 = {flags = 3, len = 30,
[2021/07/08 13:43:08.189]           padding = "\036\000\000\000\005id\000\020\000\000\000\004\346\270\230b\030\202@6\215\225t2\375|\215\246", '\000' <repeats 90 times>}
[2021/07/08 13:43:08.189]         lsid2 = {flags = 3, len = 30,
[2021/07/08 13:43:08.189]           padding = "\036\000\000\000\005id\000\020\000\000\000\004\234\371d\352\366\337N\360\210\367>\300\227\336\262\304", '\000' <repeats 90 times>}
[2021/07/08 13:43:08.189]         opts1 = {flags = 3, len = 24,
[2021/07/08 13:43:08.189]           padding = "\030\000\000\000\022sessionId\000\277\304\245w", '\000' <repeats 100 times>}
[2021/07/08 13:43:08.189]         opts2 = {flags = 3, len = 24,
[2021/07/08 13:43:08.189]           padding = "\030\000\000\000\022sessionId\000\240{\225\016", '\000' <repeats 100 times>}
[2021/07/08 13:43:08.189]         lsid1_ended = false
[2021/07/08 13:43:08.189]         lsid2_ended = false
[2021/07/08 13:43:08.189]         ended_lsids = {flags = 0, len = 0,
[2021/07/08 13:43:08.189]           padding = '\000' <repeats 119 times>}
[2021/07/08 13:43:08.190]         iter = {raw = 0x0, len = 0, off = 0, type = 0, key = 0, d1 = 0,
[2021/07/08 13:43:08.190]           d2 = 0, d3 = 0, d4 = 0, next_off = 0, err_off = 0, value = {
[2021/07/08 13:43:08.190]             value_type = BSON_TYPE_EOD, padding = 0, value = {v_oid = {
[2021/07/08 13:43:08.190]                 bytes = '\000' <repeats 11 times>}, v_int64 = 0, v_int32 = 0,
[2021/07/08 13:43:08.190]               v_int8 = 0 '\000', v_double = 0, v_bool = false,
[2021/07/08 13:43:08.190]               v_datetime = 0, v_timestamp = {timestamp = 0, increment = 0},
[2021/07/08 13:43:08.190]               v_utf8 = {str = 0x0, len = 0}, v_doc = {data = 0x0,
[2021/07/08 13:43:08.190]                 data_len = 0}, v_binary = {data = 0x0, data_len = 0,
[2021/07/08 13:43:08.190]                 subtype = BSON_SUBTYPE_BINARY}, v_regex = {regex = 0x0,
[2021/07/08 13:43:08.191]                 options = 0x0}, v_dbpointer = {collection = 0x0,
[2021/07/08 13:43:08.191]                 collection_len = 0, oid = {
[2021/07/08 13:43:08.191]                   bytes = '\000' <repeats 11 times>}}, v_code = {code = 0x0,
[2021/07/08 13:43:08.191]                 code_len = 0}, v_codewscope = {code = 0x0, scope_data = 0x0,
[2021/07/08 13:43:08.191]                 code_len = 0, scope_len = 0}, v_symbol = {symbol = 0x0,
[2021/07/08 13:43:08.191]                 len = 0}, v_decimal128 = {low = 0, high = 0}}}}
[2021/07/08 13:43:08.191]         ended_lsid = {flags = 0, len = 0,
[2021/07/08 13:43:08.192]           padding = '\000' <repeats 119 times>}
[2021/07/08 13:43:08.192]         ctx = {errmsg = '\000' <repeats 999 times>,
[2021/07/08 13:43:08.192]           strict_numeric_types = false, retain_dots_in_keys = false,
[2021/07/08 13:43:08.193]           allow_placeholders = false, path = '\000' <repeats 999 times>,
[2021/07/08 13:43:08.193]           visitor_fn = 0x0, visitor_ctx = 0x0, is_command = false}
[2021/07/08 13:43:08.194]         r = true
[2021/07/08 13:43:08.194]         __func__ = "_test_end_sessions"
[2021/07/08 13:43:08.194] #3  0x000055ae1f1bc057 in test_end_sessions_pooled (ctx=0x0)
[2021/07/08 13:43:08.194]     at /data/mci/bbde801ed605da6e99972a957045d9dd/mongoc/src/libmongoc/tests/test-mongoc-client-session.c:759
[2021/07/08 13:43:08.194] No locals.
[2021/07/08 13:43:08.194] #4  0x000055ae1f2d1c64 in TestSuite_RunTest (suite=0x7ffffdeb9420,
[2021/07/08 13:43:08.194]     test=0x55ae20745b40, count=0x7ffffdeb93a8)
[2021/07/08 13:43:08.194]     at /data/mci/bbde801ed605da6e99972a957045d9dd/mongoc/src/libmongoc/tests/TestSuite.c:599
[2021/07/08 13:43:08.195]         t1 = 2974565701
[2021/07/08 13:43:08.195]         t2 = 2974250321
[2021/07/08 13:43:08.195]         t3 = 407361
[2021/07/08 13:43:08.195]         name = "/Session/end/pooled\000sconnected\000ling\000mode\000errors\000declared\000.9\000\377\177", '\000' <repeats 20 times>, "\064.15.0-1044-aws\000\000\000\000\000\000\000\232\005\000\000\000\000\000\000\020\222\353\375\377\177\000\000\345\350\071\037\256U\000\000\000\000\000\000\000\000\000\000\006\000\000\000\063\000\000\000\200\222\353\375\377\177\000\000\022\347\071\037\256U\000\000@\222\353\375\377\177\000\000\215\262l\003\274\177\000\000\240\222\353\375\377\177\000\000\360\\j \256U\000\000h\r\000\000\000\000\000\000"...
[2021/07/08 13:43:08.195]         buf = 0x55ae207832f0
[2021/07/08 13:43:08.195]         mock_server_log_buf = 0x55ae206aeac0
[2021/07/08 13:43:08.195]         i = 2
[2021/07/08 13:43:08.195]         status = 0
[2021/07/08 13:43:08.195]         __func__ = "TestSuite_RunTest"
[2021/07/08 13:43:08.195] #5  0x000055ae1f2d254b in TestSuite_RunSerial (suite=0x7ffffdeb9420)
[2021/07/08 13:43:08.195]     at /data/mci/bbde801ed605da6e99972a957045d9dd/mongoc/src/libmongoc/tests/TestSuite.c:872
[2021/07/08 13:43:08.195]         test = 0x55ae20745b40
[2021/07/08 13:43:08.195]         count = 108
[2021/07/08 13:43:08.195]         status = 0
[2021/07/08 13:43:08.195] #6  0x000055ae1f2d29a8 in TestSuite_Run (suite=0x7ffffdeb9420)
[2021/07/08 13:43:08.195]     at /data/mci/bbde801ed605da6e99972a957045d9dd/mongoc/src/libmongoc/tests/TestSuite.c:976
[2021/07/08 13:43:08.197]         failures = 0
[2021/07/08 13:43:08.197]         start_us = 2041249569
[2021/07/08 13:43:08.197] #7  0x000055ae1f179a0e in main (argc=6, argv=0x7ffffdeb9568)
[2021/07/08 13:43:08.197]     at /data/mci/bbde801ed605da6e99972a957045d9dd/mongoc/src/libmongoc/tests/test-libmongoc.c:3028
[2021/07/08 13:43:08.197]         suite = {prgname = 0x55ae206adfd0 "./src/libmongoc/test-libmongoc",
[2021/07/08 13:43:08.198]           name = 0x55ae206ae690 "", testname = 0x0, tests = 0x55ae206aef20,
[2021/07/08 13:43:08.198]           outfile = 0x55ae206a5cf0, flags = 10, silent = 0,
[2021/07/08 13:43:08.198]           mock_server_log_buf = 0x55ae206aeac0, mock_server_log = 0x0}
[2021/07/08 13:43:08.213]         ret = 0
[2021/07/08 13:43:08.213]         is_serverless = true
[2021/07/08 13:43:08.213] (gdb) quit
[2021/07/08 13:43:08.213] Finished 'shell.exec' in "backtrace" in 6.025506089s


Generated at Wed Feb 07 21:19:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.