============================= test session starts ==============================
platform linux -- Python 3.12.12, pytest-8.0.2, pluggy-1.6.0
rootdir: /home/runner/.ya/build/build_root/ie9d/001948/ydb/tests/tools/pq_read/test/test-results/py3test
configfile: pkg:library.python.pytest:pytest.yatest.ini
plugins: typeguard-2.13.3
collected 2 items

test_timeout.py .
test_commit.py F

=================================== FAILURES ===================================
____________________________ TestCommit.test_commit ____________________________
ydb/tests/tools/pq_read/test/test_commit.py:17: in test_commit
    assert read_stream(topic, len(data), commit_after_processing=True, consumer_name=consumer_name) == data
ydb/tests/tools/datastreams_helpers/data_plane.py:63: in read_stream
    yatest.common.execute(cmd, timeout=timeout * 2, stdout=outfile)
library/python/testing/yatest_common/yatest/common/process.py:656: in execute
    res.wait(check_exit_code, timeout, on_timeout)
library/python/testing/yatest_common/yatest/common/process.py:411: in wait
    self._finalise(check_exit_code)
library/python/testing/yatest_common/yatest/common/process.py:422: in _finalise
    raise ExecutionError(self)
E   yatest.common.process.ExecutionError: Command '/home/runner/.ya/build/build_root/ie9d/001948/ydb/tests/tools/pq_read/pq_read --endpoint localhost:17075 --database local --topic-path topic --consumer-name test_client --disable-cluster-discovery --messages-count 2 --timeout 300000ms --commit-after-processing' has failed with code 100.
E   Errors:
E   ...b::Dev::NTopic::TSingleClusterReadSessionImpl<true>::Start() /-S/ydb/public/sdk/cpp/src/client/topic/impl/read_session_impl.ipp:263:48
E       #10 0x000003ace620 in StartSessions /-S/ydb/public/sdk/cpp/src/client/topic/impl/read_session_impl.ipp:3244:22
E       #11 0x000003ace620 in DoActions /-S/ydb/public/sdk/cpp/src/client/topic/impl/read_session_impl.ipp:3237:5
E       #12 0x000003ace620 in NYdb::Dev::NTopic::TDeferredActions<true>::~TDeferredActions() /-S/ydb/public/sdk/cpp/src/client/topic/impl/read_session_impl.h:140:9
E       #13 0x000003ad17d5 in NYdb::Dev::NPersQueue::TReadSession::ProceedWithoutClusterDiscovery() /-S/ydb/public/sdk/cpp/src/client/persqueue_public/impl/read_session.cpp:178:1
E       #14 0x000003ad0a90 in NYdb::Dev::NPersQueue::TReadSession::Start() /-S/ydb/public/sdk/cpp/src/client/persqueue_public/impl/read_session.cpp:91:9
E       #15 0x000003a11343 in NYdb::Dev::NPersQueue::TPersQueueClient::TImpl::CreateReadSession(NYdb::Dev::NPersQueue::TReadSessionSettings const&) /-S/ydb/public/sdk/cpp/src/client/persqueue_public/impl/persqueue_impl.cpp:21:14
E       #16 0x00000383fff0 in NYdb::Dev::NPersQueue::TPersQueueClient::CreateReadSession(NYdb::Dev::NPersQueue::TReadSessionSettings const&) /-S/ydb/public/sdk/cpp/src/client/persqueue_public/impl/persqueue.cpp:189:19
E       #17 0x0000013cff91 in main /-S/ydb/tests/tools/pq_read/main.cpp:119:35
E       #18 0x7f50cf697d8f  (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f) (BuildId: 4f7b0c955c3d81d7cac1501a2498b69d1d82bfe7)
E   
E   ==1142647==ABORTING
------------------------------ Captured log setup ------------------------------
INFO     ya.test:ya.py:420 ####################################################################################################
INFO     ya.test:ya.py:421 test_commit
INFO     ya.test:ya.py:422 ####################################################################################################
INFO     ya.test:ya.py:423 Test setup
------------------------------ Captured log call -------------------------------
INFO     ya.test:ya.py:436 Test call (class_name: test_commit.py::TestCommit, test_name: test_commit)
DEBUG    root:control_plane.py:61 Requesting CreateStream.
Database: "local".
Request:
stream_name: "/local/topic"
shard_count: 1
write_quota_kb_per_sec: 1024
retention_period_hours: 1

DEBUG    root:control_plane.py:45 Response: operation {
  ready: true
  status: SUCCESS
}

DEBUG    root:control_plane.py:49 Result: 
DEBUG    root:control_plane.py:45 Response: operation {
  ready: true
  status: SUCCESS
}

DEBUG    root:control_plane.py:49 Result: 
DEBUG    root:data_plane.py:35 Write topic topic. Response: operation {
  ready: true
  status: SUCCESS
  result {
    type_url: "type.googleapis.com/Ydb.DataStreams.V1.PutRecordsResult"
    value: "\010\001\032\021\"\0010*\014shard-000000\032\021\"\0011*\014shard-000000"
  }
}

INFO     root:data_plane.py:39 Data was written to topic: ['1', '2']
DEBUG    ya.test:ya.py:185 Binary was found by /home/runner/.ya/build/build_root/ie9d/001948/ydb/tests/tools/pq_read/pq_read
DEBUG    ya.test:process.py:678 Command err will be placed to pq_read.err.0
DEBUG    ya.test:process.py:610 Executing '['/home/runner/.ya/build/build_root/ie9d/001948/ydb/tests/tools/pq_read/pq_read', '--endpoint', 'localhost:17075', '--database', 'local', '--topic-path', 'topic', '--consumer-name', 'test_client', '--disable-cluster-discovery', '--messages-count', '2', '--timeout', '300000ms', '--commit-after-processing']' in 'None' (waiting)
DEBUG    ya.test:process.py:628 Command pid: 1142647
DEBUG    ya.test:process.py:360 Process resource usage is not available as process finished before wait4 was called
DEBUG    ya.test:process.py:259 Command (pid 1142647) rc: 100
DEBUG    ya.test:process.py:260 Command (pid 1142647) elapsed time (sec): 0.9094774723052979
DEBUG    ya.test:process.py:263 Command (pid 1142647) wtime: 0.911
DEBUG    ya.test:process.py:275 Command (pid 1142647) output:
None
DEBUG    ya.test:process.py:276 Command (pid 1142647) errors:
2025-11-11T15:15:48.780338Z :INFO: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] Starting read session
2025-11-11T15:15:48.785693Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] Starting session to cluster null (localhost:17075)
2025-11-11T15:15:48.796035Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] In Reconnect, ReadSizeBudget = 52428800, ReadSizeServerDelta = 0
2025-11-11T15:15:48.796154Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] New values: ReadSizeBudget = 52428800, ReadSizeServerDelta = 0
2025-11-11T15:15:48.796260Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] Reconnecting session to cluster null in 0.000000s
2025-11-11T15:15:48.812136Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] Successfully connected. Initializing session
2025-11-11T15:15:48.816493Z :INFO: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] Server session id: test_client_1_2_9766280315329994979_v1
2025-11-11T15:15:48.816773Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] After sending read request: ReadSizeBudget = 52428800, ReadSizeServerDelta = 0
2025-11-11T15:15:48.821118Z :INFO: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] Confirm partition stream create. Partition stream id: 1. Cluster: "". Topic: "topic". Partition: 0. Read offset: (NULL)
2025-11-11T15:15:48.823580Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] After sending read request: ReadSizeBudget = 52428800, ReadSizeServerDelta = 0
2025-11-11T15:15:48.823827Z :DEBUG: [local] Decompression task done. Partition/PartitionSessionId: 0 (0-1)
2025-11-11T15:15:48.823956Z :DEBUG: [local] Take Data. Partition 0. Read: {0, 0} (0-0)
2025-11-11T15:15:48.825603Z :DEBUG: [local] Take Data. Partition 0. Read: {0, 1} (1-1)
2025-11-11T15:15:48.841632Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] Commit offsets [0, 2). Partition stream id: 1
2025-11-11T15:15:48.842078Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] The application data is transferred to the client. Number of messages 2, size 2 bytes
2025-11-11T15:15:48.859251Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] Committed response: cookies { assign_id: 1 partition_cookie: 1 }
Closing session. Got 2 messages
2025-11-11T15:15:48.872757Z :INFO: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] Closing read session. Close timeout: 5.000000s
2025-11-11T15:15:48.872900Z :INFO: [local] Read/commit by partition streams (cluster:topic:partition:stream-id:read-offset:committed-offset): null:topic:0:1:1:2
2025-11-11T15:15:48.872968Z :INFO: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] Counters: { Errors: 0 CurrentSessionLifetimeMs: 92 BytesRead: 2 MessagesRead: 2 BytesReadCompressed: 2 BytesInflightUncompressed: 0 BytesInflightCompressed: 0 BytesInflightTotal: 0 MessagesInflight: 0 }
Session closed
2025-11-11T15:15:48.873706Z :NOTICE: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] Aborting read session. Description: SessionClosed { Status: ABORTED Issues: "<main>: Error: Aborted " }
Stopping driver...
Driver stopped. Exit
Session closed event: SessionClosed { Status: SUCCESS Issues: "<main>: Error: Session was gracefully closed " }
2025-11-11T15:15:48.887906Z :INFO: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] Closing read session. Close timeout: 0.000000s
2025-11-11T15:15:48.887984Z :INFO: [local] Read/commit by partition streams (cluster:topic:partition:stream-id:read-offset:committed-offset): null:topic:0:1:1:2
2025-11-11T15:15:48.888051Z :INFO: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] Counters: { Errors: 0 CurrentSessionLifetimeMs: 107 BytesRead: 2 MessagesRead: 2 BytesReadCompressed: 2 BytesInflightUncompressed: 0 BytesInflightCompressed: 0 BytesInflightTotal: 0 MessagesInflight: 0 }
2025-11-11T15:15:48.888134Z :NOTICE: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] Aborting read session. Description: SessionClosed { Status: ABORTED Issues: "<main>: Error: Aborted " }
=================================================================
==1142647==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7b50cdb9b940 at pc 0x0000013e5828 bp 0x7b509c26d9d0 sp 0x7b509c26d9c8
READ of size 8 at 0x7b50cdb9b940 thread T75 (pq_read)
    #0 0x0000013e5827 in operator bool /-S/contrib/libs/cxxsupp/libcxx/include/__functional/function.h:466:75
    #1 0x0000013e5827 in operator bool /-S/contrib/libs/cxxsupp/libcxx/include/__functional/function.h:895:93
    #2 0x0000013e5827 in operator() /-S/ydb/tests/tools/pq_read/main.cpp:114:17
    #3 0x0000013e5827 in __invoke<(lambda at /-S/ydb/tests/tools/pq_read/main.cpp:93:9) &, NYdb::Dev::NPersQueue::TReadSessionEvent::TCommitAcknowledgementEvent &> /-S/contrib/libs/cxxsupp/libcxx/include/__type_traits/invoke.h:149:25
    #4 0x0000013e5827 in __call<(lambda at /-S/ydb/tests/tools/pq_read/main.cpp:93:9) &, NYdb::Dev::NPersQueue::TReadSessionEvent::TCommitAcknowledgementEvent &> /-S/contrib/libs/cxxsupp/libcxx/include/__type_traits/invoke.h:224:5
    #5 0x0000013e5827 in operator() /-S/contrib/libs/cxxsupp/libcxx/include/__functional/function.h:169:12
    #6 0x0000013e5827 in std::__y1::__function::__func<main::$_1, std::__y1::allocator<main::$_1>, void (NYdb::Dev::NPersQueue::TReadSessionEvent::TCommitAcknowledgementEvent&)>::operator()(NYdb::Dev::NPersQueue::TReadSessionEvent::TCommitAcknowledgementEvent&) /-S/contrib/libs/cxxsupp/libcxx/include/__functional/function.h:314:10
    #7 0x0000022f429e in operator() /-S/contrib/libs/cxxsupp/libcxx/include/__functional/function.h:431:12
    #8 0x0000022f429e in operator() /-S/contrib/libs/cxxsupp/libcxx/include/__functional/function.h:990:10
    #9 0x0000022f429e in TThrFuncObj<std::__y1::function<void ()>>::Process(void*) /-S/util/thread/pool.h:71:9
    #10 0x000001c52704 in TThreadPool::TImpl::DoExecute() /-S/util/thread/pool.cpp:246:22
    #11 0x000001c50e4c in Execute /-S/util/thread/factory.h:15:13
    #12 0x000001c50e4c in (anonymous namespace)::TSystemThreadFactory::TPoolThread::ThreadProc(void*) /-S/util/thread/factory.cpp:36:41
    #13 0x0000017df674 in (anonymous namespace)::TPosixThread::ThreadProxy(void*) /-S/util/system/thread.cpp:245:20
    #14 0x000001483096 in asan_thread_start(void*) /-S/contrib/libs/clang20-rt/lib/asan/asan_interceptors.cpp:239:28
    #15 0x7f50cf702ac2  (/lib/x86_64-linux-gnu/libc.so.6+0x94ac2) (BuildId: 4f7b0c955c3d81d7cac1501a2498b69d1d82bfe7)
    #16 0x7f50cf7948bf  (/lib/x86_64-linux-gnu/libc.so.6+0x1268bf) (BuildId: 4f7b0c955c3d81d7cac1501a2498b69d1d82bfe7)

Address 0x7b50cdb9b940 is located in stack of thread T0 at offset 2368 in frame
    #0 0x0000013ced7f in main /-S/ydb/tests/tools/pq_read/main.cpp:47

  This frame has 30 object(s):
    [32, 33) 'ref.tmp.i.i.i.i'
    [48, 72) 'ref.tmp.i.i403'
    [112, 136) 'ref.tmp.i.i388'
    [176, 224) 'ref.tmp.i.i'
    [256, 312) 'opts' (line 48)
    [352, 368) 'driverConfig' (line 51)
    [384, 400) 'ref.tmp' (line 51)
    [416, 440) 'ref.tmp1' (line 51)
    [480, 488) 'ref.tmp12' (line 51)
    [512, 520) 'ref.tmp13' (line 51)
    [544, 552) 'ref.tmp14' (line 51)
    [576, 592) 'driver' (line 56)
    [608, 624) 'persqueueClient' (line 58)
    [640, 864) 'ref.tmp32' (line 58)
    [928, 1728) 'settings' (line 60)
    [1856, 1920) 'ref.tmp47' (line 61)
    [1952, 1976) 'ref.tmp48' (line 61)
    [2016, 2032) 'readSession' (line 66)
    [2048, 2056) 'messagesReceived' (line 67)
    [2080, 2112) 'maxReceivedOffsets' (line 68)
    [2144, 2176) 'committedOffsets' (line 69)
    [2208, 2209) 'closing' (line 70)
    [2224, 2232) 'lastDataReceiveTime' (line 71)
    [2256, 2304) 'agg.tmp'
    [2336, 2384) 'commitAckHandler' (line 91) <== Memory access at offset 2368 is inside this variable
    [2416, 2432) 'ref.tmp92' (line 119)
    [2448, 2456) 'timeoutTrackingThread' (line 123)
    [2480, 2576) 'maybeEvent' (line 145)
    [2608, 2632) 'ref.tmp136' (line 161)
    [2672, 2696) 'ref.tmp155' (line 166)
HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork
      (longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-use-after-scope /-S/contrib/libs/cxxsupp/libcxx/include/__functional/function.h:466:75 in operator bool
Shadow bytes around the buggy address:
  0x7b50cdb9b680: f8 f8 f8 f8 f8 f8 f8 f8 f2 f2 f2 f2 f2 f2 f2 f2
  0x7b50cdb9b700: f2 f2 f2 f2 f2 f2 f2 f2 f8 f8 f8 f8 f8 f8 f8 f8
  0x7b50cdb9b780: f2 f2 f2 f2 f8 f8 f8 f2 f2 f2 f2 f2 f8 f8 f2 f2
  0x7b50cdb9b800: f8 f2 f2 f2 f8 f8 f8 f8 f2 f2 f2 f2 f8 f8 f8 f8
  0x7b50cdb9b880: f2 f2 f2 f2 f8 f2 f8 f2 f2 f2 00 00 00 00 00 00
=>0x7b50cdb9b900: f2 f2 f2 f2 f8 f8 f8 f8[f8]f8 f2 f2 f2 f2 f8 f8
  0x7b50cdb9b980: f2 f2 f8 f2 f2 f2 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
  0x7b50cdb9ba00: f8 f8 f2 f2 f2 f2 f8 f8 f8 f2 f2 f2 f2 f2 f8 f8
  0x7b50cdb9ba80: f8 f3 f3 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00
  0x7b50cdb9bb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7b50cdb9bb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
Thread T75 (pq_read) created by T0 here:
    #0 0x000001469cd1 in pthread_create /-S/contrib/libs/clang20-rt/lib/asan/asan_interceptors.cpp:250:3
    #1 0x0000017cfdb5 in Start /-S/util/system/thread.cpp:230:27
    #2 0x0000017cfdb5 in TThread::Start() /-S/util/system/thread.cpp:315:34
    #3 0x000001c512a5 in Run /-S/util/thread/factory.h:36:13
    #4 0x000001c512a5 in Run /-S/util/thread/factory.h:53:14
    #5 0x000001c512a5 in TThreadPool::TImpl::Start(unsigned long, unsigned long) /-S/util/thread/pool.cpp:171:50
    #6 0x000001c4c662 in TThreadPool::TImpl::TImpl(TThreadPool*, unsigned long, unsigned long, TThreadPoolParams const&) /-S/util/thread/pool.cpp:89:9
    #7 0x000001c4bdc5 in TThreadPool::Start(unsigned long, unsigned long) /-S/util/thread/pool.cpp:379:21
    #8 0x000003b42686 in Start /-S/ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/types/executor/executor.h:23:13
    #9 0x000003b42686 in NYdb::Dev::NTopic::TSingleClusterReadSessionImpl<true>::Start() /-S/ydb/public/sdk/cpp/src/client/topic/impl/read_session_impl.ipp:263:48
    #10 0x000003ace620 in StartSessions /-S/ydb/public/sdk/cpp/src/client/topic/impl/read_session_impl.ipp:3244:22
    #11 0x000003ace620 in DoActions /-S/ydb/public/sdk/cpp/src/client/topic/impl/read_session_impl.ipp:3237:5
    #12 0x000003ace620 in NYdb::Dev::NTopic::TDeferredActions<true>::~TDeferredActions() /-S/ydb/public/sdk/cpp/src/client/topic/impl/read_session_impl.h:140:9
    #13 0x000003ad17d5 in NYdb::Dev::NPersQueue::TReadSession::ProceedWithoutClusterDiscovery() /-S/ydb/public/sdk/cpp/src/client/persqueue_public/impl/read_session.cpp:178:1
    #14 0x000003ad0a90 in NYdb::Dev::NPersQueue::TReadSession::Start() /-S/ydb/public/sdk/cpp/src/client/persqueue_public/impl/read_session.cpp:91:9
    #15 0x000003a11343 in NYdb::Dev::NPersQueue::TPersQueueClient::TImpl::CreateReadSession(NYdb::Dev::NPersQueue::TReadSessionSettings const&) /-S/ydb/public/sdk/cpp/src/client/persqueue_public/impl/persqueue_impl.cpp:21:14
    #16 0x00000383fff0 in NYdb::Dev::NPersQueue::TPersQueueClient::CreateReadSession(NYdb::Dev::NPersQueue::TReadSessionSettings const&) /-S/ydb/public/sdk/cpp/src/client/persqueue_public/impl/persqueue.cpp:189:19
    #17 0x0000013cff91 in main /-S/ydb/tests/tools/pq_read/main.cpp:119:35
    #18 0x7f50cf697d8f  (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f) (BuildId: 4f7b0c955c3d81d7cac1501a2498b69d1d82bfe7)

==1142647==ABORTING

ERROR    ya.test:process.py:416 Execution failed with exit code: 100
	,std_out:None
	std_err:b'2025-11-11T15:15:48.780338Z :INFO: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] Starting read session\n2025-11-11T15:15:48.785693Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] Starting session to cluster null (localhost:17075)\n2025-11-11T15:15:48.796035Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] In Reconnect, ReadSizeBudget = 52428800, ReadSizeServerDelta = 0\n2025-11-11T15:15:48.796154Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] New values: ReadSizeBudget = 52428800, ReadSizeServerDelta = 0\n2025-11-11T15:15:48.796260Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] Reconnecting session to cluster null in 0.000000s\n2025-11-11T15:15:48.812136Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] Successfully connected. Initializing session\n2025-11-11T15:15:48.816493Z :INFO: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] Server session id: test_client_1_2_9766280315329994979_v1\n2025-11-11T15:15:48.816773Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] After sending read request: ReadSizeBudget = 52428800, ReadSizeServerDelta = 0\n2025-11-11T15:15:48.821118Z :INFO: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] Confirm partition stream create. Partition stream id: 1. Cluster: "". Topic: "topic". Partition: 0. Read offset: (NULL)\n2025-11-11T15:15:48.823580Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] After sending read request: ReadSizeBudget = 52428800, ReadSizeServerDelta = 0\n2025-11-11T15:15:48.823827Z :DEBUG: [local] Decompression task done. Partition/PartitionSessionId: 0 (0-1)\n2025-11-11T15:15:48.823956Z :DEBUG: [local] Take Data. Partition 0. Read: {0, 0} (0-0)\n2025-11-11T15:15:48.825603Z :DEBUG: [local] Take Data. Partition 0. Read: {0, 1} (1-1)\n2025-11-11T15:15:48.841632Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] Commit offsets [0, 2). Partition stream id: 1\n2025-11-11T15:15:48.842078Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] The application data is transferred to the client. Number of messages 2, size 2 bytes\n2025-11-11T15:15:48.859251Z :DEBUG: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] [null] Committed response: cookies { assign_id: 1 partition_cookie: 1 }\nClosing session. Got 2 messages\n2025-11-11T15:15:48.872757Z :INFO: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] Closing read session. Close timeout: 5.000000s\n2025-11-11T15:15:48.872900Z :INFO: [local] Read/commit by partition streams (cluster:topic:partition:stream-id:read-offset:committed-offset): null:topic:0:1:1:2\n2025-11-11T15:15:48.872968Z :INFO: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] Counters: { Errors: 0 CurrentSessionLifetimeMs: 92 BytesRead: 2 MessagesRead: 2 BytesReadCompressed: 2 BytesInflightUncompressed: 0 BytesInflightCompressed: 0 BytesInflightTotal: 0 MessagesInflight: 0 }\nSession closed\n2025-11-11T15:15:48.873706Z :NOTICE: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] Aborting read session. Description: SessionClosed { Status: ABORTED Issues: "<main>: Error: Aborted " }\nStopping driver...\nDriver stopped. Exit\nSession closed event: SessionClosed { Status: SUCCESS Issues: "<main>: Error: Session was gracefully closed " }\n2025-11-11T15:15:48.887906Z :INFO: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] Closing read session. Close timeout: 0.000000s\n2025-11-11T15:15:48.887984Z :INFO: [local] Read/commit by partition streams (cluster:topic:partition:stream-id:read-offset:committed-offset): null:topic:0:1:1:2\n2025-11-11T15:15:48.888051Z :INFO: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] Counters: { Errors: 0 CurrentSessionLifetimeMs: 107 BytesRead: 2 MessagesRead: 2 BytesReadCompressed: 2 BytesInflightUncompressed: 0 BytesInflightCompressed: 0 BytesInflightTotal: 0 MessagesInflight: 0 }\n2025-11-11T15:15:48.888134Z :NOTICE: [local] [local] [3f3fe89e-784389b6-d431e417-32b71e54] Aborting read session. Description: SessionClosed { Status: ABORTED Issues: "<main>: Error: Aborted " }\n=================================================================\n==1142647==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7b50cdb9b940 at pc 0x0000013e5828 bp 0x7b509c26d9d0 sp 0x7b509c26d9c8\nREAD of size 8 at 0x7b50cdb9b940 thread T75 (pq_read)\n    #0 0x0000013e5827 in operator bool /-S/contrib/libs/cxxsupp/libcxx/include/__functional/function.h:466:75\n    #1 0x0000013e5827 in operator bool /-S/contrib/libs/cxxsupp/libcxx/include/__functional/function.h:895:93\n    #2 0x0000013e5827 in operator() /-S/ydb/tests/tools/pq_read/main.cpp:114:17\n    #3 0x0000013e5827 in __invoke<(lambda at /-S/ydb/tests/tools/pq_read/main.cpp:93:9) &, NYdb::Dev::NPersQueue::TReadSessionEvent::TCommitAcknowledgementEvent &> /-S/contrib/libs/cxxsupp/libcxx/include/__type_traits/invoke.h:149:25\n    #4 0x0000013e5827 in __call<(lambda at /-S/ydb/tests/tools/pq_read/main.cpp:93:9) &, NYdb::Dev::NPersQueue::TReadSessionEvent::TCommitAcknowledgementEvent &> /-S/contrib/libs/cxxsupp/libcxx/include/__type_traits/invoke.h:224:5\n    #5 0x0000013e5827 in operator() /-S/contrib/libs/cxxsupp/libcxx/include/__functional/function.h:169:12\n    #6 0x0000013e5827 in std::__y1::__function::__func<main::$_1, std::__y1::allocator<main::$_1>, void (NYdb::Dev::NPersQueue::TReadSessionEvent::TCommitAcknowledgementEvent&)>::operator()(NYdb::Dev::NPersQueue::TReadSessionEvent::TCommitAcknowledgementEvent&) /-S/contrib/libs/cxxsupp/libcxx/include/__functional/function.h:314:10\n    #7 0x0000022f429e in operator() /-S/contrib/libs/cxxsupp/libcxx/include/__functional/function.h:431:12\n    #8 0x0000022f429e in operator() /-S/contrib/libs/cxxsupp/libcxx/include/__functional/function.h:990:10\n    #9 0x0000022f429e in TThrFuncObj<std::__y1::function<void ()>>::Process(void*) /-S/util/thread/pool.h:71:9\n    #10 0x000001c52704 in TThreadPool::TImpl::DoExecute() /-S/util/thread/pool.cpp:246:22\n    #11 0x000001c50e4c in Execute /-S/util/thread/factory.h:15:13\n    #12 0x000001c50e4c in (anonymous namespace)::TSystemThreadFactory::TPoolThread::ThreadProc(void*) /-S/util/thread/factory.cpp:36:41\n    #13 0x0000017df674 in (anonymous namespace)::TPosixThread::ThreadProxy(void*) /-S/util/system/thread.cpp:245:20\n    #14 0x000001483096 in asan_thread_start(void*) /-S/contrib/libs/clang20-rt/lib/asan/asan_interceptors.cpp:239:28\n    #15 0x7f50cf702ac2  (/lib/x86_64-linux-gnu/libc.so.6+0x94ac2) (BuildId: 4f7b0c955c3d81d7cac1501a2498b69d1d82bfe7)\n    #16 0x7f50cf7948bf  (/lib/x86_64-linux-gnu/libc.so.6+0x1268bf) (BuildId: 4f7b0c955c3d81d7cac1501a2498b69d1d82bfe7)\n\nAddress 0x7b50cdb9b940 is located in stack of thread T0 at offset 2368 in frame\n    #0 0x0000013ced7f in main /-S/ydb/tests/tools/pq_read/main.cpp:47\n\n  This frame has 30 object(s):\n    [32, 33) \'ref.tmp.i.i.i.i\'\n    [48, 72) \'ref.tmp.i.i403\'\n    [112, 136) \'ref.tmp.i.i388\'\n    [176, 224) \'ref.tmp.i.i\'\n    [256, 312) \'opts\' (line 48)\n    [352, 368) \'driverConfig\' (line 51)\n    [384, 400) \'ref.tmp\' (line 51)\n    [416, 440) \'ref.tmp1\' (line 51)\n    [480, 488) \'ref.tmp12\' (line 51)\n    [512, 520) \'ref.tmp13\' (line 51)\n    [544, 552) \'ref.tmp14\' (line 51)\n    [576, 592) \'driver\' (line 56)\n    [608, 624) \'persqueueClient\' (line 58)\n    [640, 864) \'ref.tmp32\' (line 58)\n    [928, 1728) \'settings\' (line 60)\n    [1856, 1920) \'ref.tmp47\' (line 61)\n    [1952, 1976) \'ref.tmp48\' (line 61)\n    [2016, 2032) \'readSession\' (line 66)\n    [2048, 2056) \'messagesReceived\' (line 67)\n    [2080, 2112) \'maxReceivedOffsets\' (line 68)\n    [2144, 2176) \'committedOffsets\' (line 69)\n    [2208, 2209) \'closing\' (line 70)\n    [2224, 2232) \'lastDataReceiveTime\' (line 71)\n    [2256, 2304) \'agg.tmp\'\n    [2336, 2384) \'commitAckHandler\' (line 91) <== Memory access at offset 2368 is inside this variable\n    [2416, 2432) \'ref.tmp92\' (line 119)\n    [2448, 2456) \'timeoutTrackingThread\' (line 123)\n    [2480, 2576) \'maybeEvent\' (line 145)\n    [2608, 2632) \'ref.tmp136\' (line 161)\n    [2672, 2696) \'ref.tmp155\' (line 166)\nHINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork\n      (longjmp and C++ exceptions *are* supported)\nSUMMARY: AddressSanitizer: stack-use-after-scope /-S/contrib/libs/cxxsupp/libcxx/include/__functional/function.h:466:75 in operator bool\nShadow bytes around the buggy address:\n  0x7b50cdb9b680: f8 f8 f8 f8 f8 f8 f8 f8 f2 f2 f2 f2 f2 f2 f2 f2\n  0x7b50cdb9b700: f2 f2 f2 f2 f2 f2 f2 f2 f8 f8 f8 f8 f8 f8 f8 f8\n  0x7b50cdb9b780: f2 f2 f2 f2 f8 f8 f8 f2 f2 f2 f2 f2 f8 f8 f2 f2\n  0x7b50cdb9b800: f8 f2 f2 f2 f8 f8 f8 f8 f2 f2 f2 f2 f8 f8 f8 f8\n  0x7b50cdb9b880: f2 f2 f2 f2 f8 f2 f8 f2 f2 f2 00 00 00 00 00 00\n=>0x7b50cdb9b900: f2 f2 f2 f2 f8 f8 f8 f8[f8]f8 f2 f2 f2 f2 f8 f8\n  0x7b50cdb9b980: f2 f2 f8 f2 f2 f2 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8\n  0x7b50cdb9ba00: f8 f8 f2 f2 f2 f2 f8 f8 f8 f2 f2 f2 f2 f2 f8 f8\n  0x7b50cdb9ba80: f8 f3 f3 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00\n  0x7b50cdb9bb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\n  0x7b50cdb9bb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\nShadow byte legend (one shadow byte represents 8 application bytes):\n  Addressable:           00\n  Partially addressable: 01 02 03 04 05 06 07 \n  Heap left redzone:       fa\n  Freed heap region:       fd\n  Stack left redzone:      f1\n  Stack mid redzone:       f2\n  Stack right redzone:     f3\n  Stack after return:      f5\n  Stack use after scope:   f8\n  Global redzone:          f9\n  Global init order:       f6\n  Poisoned by user:        f7\n  Container overflow:      fc\n  Array cookie:            ac\n  Intra object redzone:    bb\n  ASan internal:           fe\n  Left alloca redzone:     ca\n  Right alloca redzone:    cb\nThread T75 (pq_read) created by T0 here:\n    #0 0x000001469cd1 in pthread_create /-S/contrib/libs/clang20-rt/lib/asan/asan_interceptors.cpp:250:3\n    #1 0x0000017cfdb5 in Start /-S/util/system/thread.cpp:230:27\n    #2 0x0000017cfdb5 in TThread::Start() /-S/util/system/thread.cpp:315:34\n    #3 0x000001c512a5 in Run /-S/util/thread/factory.h:36:13\n    #4 0x000001c512a5 in Run /-S/util/thread/factory.h:53:14\n    #5 0x000001c512a5 in TThreadPool::TImpl::Start(unsigned long, unsigned long) /-S/util/thread/pool.cpp:171:50\n    #6 0x000001c4c662 in TThreadPool::TImpl::TImpl(TThreadPool*, unsigned long, unsigned long, TThreadPoolParams const&) /-S/util/thread/pool.cpp:89:9\n    #7 0x000001c4bdc5 in TThreadPool::Start(unsigned long, unsigned long) /-S/util/thread/pool.cpp:379:21\n    #8 0x000003b42686 in Start /-S/ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/types/executor/executor.h:23:13\n    #9 0x000003b42686 in NYdb::Dev::NTopic::TSingleClusterReadSessionImpl<true>::Start() /-S/ydb/public/sdk/cpp/src/client/topic/impl/read_session_impl.ipp:263:48\n    #10 0x000003ace620 in StartSessions /-S/ydb/public/sdk/cpp/src/client/topic/impl/read_session_impl.ipp:3244:22\n    #11 0x000003ace620 in DoActions /-S/ydb/public/sdk/cpp/src/client/topic/impl/read_session_impl.ipp:3237:5\n    #12 0x000003ace620 in NYdb::Dev::NTopic::TDeferredActions<true>::~TDeferredActions() /-S/ydb/public/sdk/cpp/src/client/topic/impl/read_session_impl.h:140:9\n    #13 0x000003ad17d5 in NYdb::Dev::NPersQueue::TReadSession::ProceedWithoutClusterDiscovery() /-S/ydb/public/sdk/cpp/src/client/persqueue_public/impl/read_session.cpp:178:1\n    #14 0x000003ad0a90 in NYdb::Dev::NPersQueue::TReadSession::Start() /-S/ydb/public/sdk/cpp/src/client/persqueue_public/impl/read_session.cpp:91:9\n    #15 0x000003a11343 in NYdb::Dev::NPersQueue::TPersQueueClient::TImpl::CreateReadSession(NYdb::Dev::NPersQueue::TReadSessionSettings const&) /-S/ydb/public/sdk/cpp/src/client/persqueue_public/impl/persqueue_impl.cpp:21:14\n    #16 0x00000383fff0 in NYdb::Dev::NPersQueue::TPersQueueClient::CreateReadSession(NYdb::Dev::NPersQueue::TReadSessionSettings const&) /-S/ydb/public/sdk/cpp/src/client/persqueue_public/impl/persqueue.cpp:189:19\n    #17 0x0000013cff91 in main /-S/ydb/tests/tools/pq_read/main.cpp:119:35\n    #18 0x7f50cf697d8f  (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f) (BuildId: 4f7b0c955c3d81d7cac1501a2498b69d1d82bfe7)\n\n==1142647==ABORTING\n'
---------------------------- Captured log teardown -----------------------------
INFO     ya.test:ya.py:431 Test teardown
============================== slowest durations ===============================
3.79s call     test_timeout.py::TestTimeout::test_timeout
1.19s call     test_commit.py::TestCommit::test_commit
0.02s setup    test_timeout.py::TestTimeout::test_timeout
0.01s setup    test_commit.py::TestCommit::test_commit

(2 durations < 0.005s hidden.  Use -vv to show these durations.)
=========================== short test summary info ============================
FAILED test_commit.py::TestCommit::test_commit - yatest.common.process.ExecutionError: Command '/home/runner/.ya/build/build_root/ie9d/001948/ydb/tests/tools/pq_read/pq_read --endpoint localhost:17075 --database local --topic-path topic --consumer-name test_client --disable-cluster-discovery --messages-count 2 --timeout 300000ms --commit-after-processing' has failed with code 100.
Errors:
...b::Dev::NTopic::TSingleClusterReadSessionImpl<true>::Start() /-S/ydb/public/sdk/cpp/src/client/topic/impl/read_session_impl.ipp:263:48
    #10 0x000003ace620 in StartSessions /-S/ydb/public/sdk/cpp/src/client/topic/impl/read_session_impl.ipp:3244:22
    #11 0x000003ace620 in DoActions /-S/ydb/public/sdk/cpp/src/client/topic/impl/read_session_impl.ipp:3237:5
    #12 0x000003ace620 in NYdb::Dev::NTopic::TDeferredActions<true>::~TDeferredActions() /-S/ydb/public/sdk/cpp/src/client/topic/impl/read_session_impl.h:140:9
    #13 0x000003ad17d5 in NYdb::Dev::NPersQueue::TReadSession::ProceedWithoutClusterDiscovery() /-S/ydb/public/sdk/cpp/src/client/persqueue_public/impl/read_session.cpp:178:1
    #14 0x000003ad0a90 in NYdb::Dev::NPersQueue::TReadSession::Start() /-S/ydb/public/sdk/cpp/src/client/persqueue_public/impl/read_session.cpp:91:9
    #15 0x000003a11343 in NYdb::Dev::NPersQueue::TPersQueueClient::TImpl::CreateReadSession(NYdb::Dev::NPersQueue::TReadSessionSettings const&) /-S/ydb/public/sdk/cpp/src/client/persqueue_public/impl/persqueue_impl.cpp:21:14
    #16 0x00000383fff0 in NYdb::Dev::NPersQueue::TPersQueueClient::CreateReadSession(NYdb::Dev::NPersQueue::TReadSessionSettings const&) /-S/ydb/public/sdk/cpp/src/client/persqueue_public/impl/persqueue.cpp:189:19
    #17 0x0000013cff91 in main /-S/ydb/tests/tools/pq_read/main.cpp:119:35
    #18 0x7f50cf697d8f  (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f) (BuildId: 4f7b0c955c3d81d7cac1501a2498b69d1d82bfe7)

==1142647==ABORTING
========================= 1 failed, 1 passed in 5.82s ==========================
