2025-12-12T11:57:30.313781Z :DEBUG: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session: try to update token
2025-12-12T11:57:30.313984Z :INFO: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Start write session. Will connect to nodeId: 0
2025-12-12T11:57:30.321038Z :DEBUG: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session: write to message_group: test-message_group_id
2025-12-12T11:57:30.321093Z :DEBUG: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session: send init request: init_request { path: "sdk_tests/TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction/test-topic" message_group_id: "test-message_group_id" }
2025-12-12T11:57:30.321300Z :DEBUG: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session: OnWriteDone gRpcStatusCode: 0
2025-12-12T11:57:30.328090Z :DEBUG: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session: OnReadDone gRpcStatusCode: 0
2025-12-12T11:57:30.328118Z :INFO: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Counters: { Errors: 0 CurrentSessionLifetimeMs: 1765540650328 BytesWritten: 0 MessagesWritten: 0 BytesWrittenCompressed: 0 BytesInflightUncompressed: 0 BytesInflightCompressed: 0 BytesInflightTotal: 0 MessagesInflight: 0 }
2025-12-12T11:57:30.328151Z :INFO: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session established. Init response: session_id: "test-message_group_id|bd54a0c7-4727532c-288f1c2e-8de8de08_0"
2025-12-12T11:57:30.328158Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|bd54a0c7-4727532c-288f1c2e-8de8de08_0]  MessageGroupId [test-message_group_id] Write session: set DirectWriteToPartitionId 0
2025-12-12T11:57:30.328208Z :INFO: [local]  TraceId []  SessionId [test-message_group_id|bd54a0c7-4727532c-288f1c2e-8de8de08_0]  PartitionId [0]  Generation [0] Get partition location async, partition 0, delay 0.000000s
2025-12-12T11:57:30.328255Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|bd54a0c7-4727532c-288f1c2e-8de8de08_0]  PartitionId [0]  Generation [0]  Getting partition location, partition 0
2025-12-12T11:57:30.329743Z :INFO: [local]  TraceId []  SessionId [test-message_group_id|bd54a0c7-4727532c-288f1c2e-8de8de08_0]  PartitionId [0]  Generation [0] Got PartitionLocation response. Status SUCCESS, proto:
partition {
  active: true
  partition_location {
    node_id: 1
    generation: 1
  }
}
2025-12-12T11:57:30.329758Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|bd54a0c7-4727532c-288f1c2e-8de8de08_0]  PartitionId [0]  Generation [0] GetPreferredEndpoint: partitionId 0, partitionNodeId 1 exists in the endpoint pool.
2025-12-12T11:57:30.329764Z :INFO: [local]  TraceId []  SessionId [test-message_group_id|bd54a0c7-4727532c-288f1c2e-8de8de08_0]  PartitionId [0]  Generation [1] Start write session. Will connect to nodeId: 1
2025-12-12T11:57:30.330083Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|bd54a0c7-4727532c-288f1c2e-8de8de08_0]  PartitionId [0]  Generation [1] Write session: OnReadDone gRpcStatusCode: 1, Msg: CANCELLED, Details: , InternalError: 0
2025-12-12T11:57:30.330205Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|bd54a0c7-4727532c-288f1c2e-8de8de08_0]  PartitionId [0]  Generation [1] Write session: direct write to partition: 0, generation 1
2025-12-12T11:57:30.330245Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|bd54a0c7-4727532c-288f1c2e-8de8de08_0]  PartitionId [0]  Generation [1] Write session: send init request: init_request { path: "sdk_tests/TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction/test-topic" partition_with_generation { generation: 1 } }
2025-12-12T11:57:30.330347Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|bd54a0c7-4727532c-288f1c2e-8de8de08_0]  PartitionId [0]  Generation [1] Write session: OnWriteDone gRpcStatusCode: 0
2025-12-12T11:57:30.331217Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|bd54a0c7-4727532c-288f1c2e-8de8de08_0]  PartitionId [0]  Generation [1] Write session: OnReadDone gRpcStatusCode: 0
2025-12-12T11:57:30.331245Z :INFO: [local]  TraceId []  SessionId [test-message_group_id|bd54a0c7-4727532c-288f1c2e-8de8de08_0]  PartitionId [0]  Generation [1] Write session established. Init response: session_id: "3fb2e759-b9ae49e2-77f8b01b-9647055f|9b8217bf-5740e4f2-780d2b98-b4598c5c_0"
2025-12-12T11:57:30.331251Z :DEBUG: [local]  TraceId []  SessionId [3fb2e759-b9ae49e2-77f8b01b-9647055f|9b8217bf-5740e4f2-780d2b98-b4598c5c_0]  PartitionId [0]  Generation [1] Write session: set DirectWriteToPartitionId 0
2025-12-12T11:57:30.331307Z :DEBUG: [local]  TraceId []  SessionId [3fb2e759-b9ae49e2-77f8b01b-9647055f|9b8217bf-5740e4f2-780d2b98-b4598c5c_0]  PartitionId [0]  Generation [1] Write 1 messages with Id from 1 to 1
2025-12-12T11:57:30.331341Z :INFO: [local]  TraceId []  SessionId [3fb2e759-b9ae49e2-77f8b01b-9647055f|9b8217bf-5740e4f2-780d2b98-b4598c5c_0]  PartitionId [0]  Generation [1] Write session: close. Timeout 18446744073709.551615s
2025-12-12T11:57:30.331498Z :DEBUG: [local]  TraceId []  SessionId [3fb2e759-b9ae49e2-77f8b01b-9647055f|9b8217bf-5740e4f2-780d2b98-b4598c5c_0]  PartitionId [0]  Generation [1] Write session: try to update token
2025-12-12T11:57:30.331531Z :DEBUG: [local]  TraceId []  SessionId [3fb2e759-b9ae49e2-77f8b01b-9647055f|9b8217bf-5740e4f2-780d2b98-b4598c5c_0]  PartitionId [0]  Generation [1] Send 1 message(s) (0 left), first sequence number is 1
2025-12-12T11:57:30.333173Z :DEBUG: [local]  TraceId []  SessionId [3fb2e759-b9ae49e2-77f8b01b-9647055f|9b8217bf-5740e4f2-780d2b98-b4598c5c_0]  PartitionId [0]  Generation [1] Write session: OnReadDone gRpcStatusCode: 0
2025-12-12T11:57:30.333217Z :DEBUG: [local]  TraceId []  SessionId [3fb2e759-b9ae49e2-77f8b01b-9647055f|9b8217bf-5740e4f2-780d2b98-b4598c5c_0]  PartitionId [0]  Generation [1] Write session got write response: acks { seq_no: 1 written { } } write_statistics { persisting_time { nanos: 1000000 } min_queue_wait_time { } max_queue_wait_time { } partition_quota_wait_time { } topic_quota_wait_time { } }
2025-12-12T11:57:30.333222Z :DEBUG: [local]  TraceId []  SessionId [3fb2e759-b9ae49e2-77f8b01b-9647055f|9b8217bf-5740e4f2-780d2b98-b4598c5c_0]  PartitionId [0]  Generation [1] OnAck: seqNo=1, txId=?
2025-12-12T11:57:30.333226Z :DEBUG: [local]  TraceId []  SessionId [3fb2e759-b9ae49e2-77f8b01b-9647055f|9b8217bf-5740e4f2-780d2b98-b4598c5c_0]  PartitionId [0]  Generation [1] Write session: acknoledged message 1
2025-12-12T11:57:30.431424Z :INFO: [local]  TraceId []  SessionId [3fb2e759-b9ae49e2-77f8b01b-9647055f|9b8217bf-5740e4f2-780d2b98-b4598c5c_0]  PartitionId [0]  Generation [1] Write session will now close
2025-12-12T11:57:30.431451Z :DEBUG: [local]  TraceId []  SessionId [3fb2e759-b9ae49e2-77f8b01b-9647055f|9b8217bf-5740e4f2-780d2b98-b4598c5c_0]  PartitionId [0]  Generation [1] Write session: aborting
2025-12-12T11:57:30.431665Z :INFO: [local]  TraceId []  SessionId [3fb2e759-b9ae49e2-77f8b01b-9647055f|9b8217bf-5740e4f2-780d2b98-b4598c5c_0]  PartitionId [0]  Generation [1] Write session: gracefully shut down, all writes complete
2025-12-12T11:57:30.431677Z :DEBUG: [local]  TraceId []  SessionId [3fb2e759-b9ae49e2-77f8b01b-9647055f|9b8217bf-5740e4f2-780d2b98-b4598c5c_0]  PartitionId [0]  Generation [1] Write session: destroy
2025-12-12T11:57:30.435055Z :INFO: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] Starting read session
2025-12-12T11:57:30.435070Z :DEBUG: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] Starting single session
2025-12-12T11:57:30.435286Z :DEBUG: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] [] In Reconnect, ReadSizeBudget = 52428800, ReadSizeServerDelta = 0
2025-12-12T11:57:30.435293Z :DEBUG: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] [] New values: ReadSizeBudget = 52428800, ReadSizeServerDelta = 0
2025-12-12T11:57:30.435298Z :DEBUG: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] [] Reconnecting session to cluster  in 0.000000s
2025-12-12T11:57:30.435470Z :DEBUG: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] [] Successfully connected. Initializing session
2025-12-12T11:57:30.436396Z :INFO: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] [] Got InitResponse. ReadSessionId: TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1
2025-12-12T11:57:30.436414Z :DEBUG: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] [] In ContinueReadingDataImpl, ReadSizeBudget = 52428800, ReadSizeServerDelta = 0
2025-12-12T11:57:30.436470Z :DEBUG: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] [] After sending read request: ReadSizeBudget = 0, ReadSizeServerDelta = 52428800
2025-12-12T11:57:30.437744Z :INFO: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] [] Confirm partition stream create. Partition stream id: 1. Cluster: "-". Topic: "sdk_tests/TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction/test-topic". Partition: 0. Read offset: (NULL)
2025-12-12T11:57:30.437838Z :DEBUG: [local] 0x0000514CBF743910 TDirectReadSessionManager ServerSessionId=TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1 StartPartitionSession 1 nodeId=1
2025-12-12T11:57:30.437857Z :DEBUG: [local] 0x0000514CBF600B20 TDirectReadSession ServerSessionId=TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1 NodeId=1 Reconnecting direct read session to node 1 in 0.000000s
2025-12-12T11:57:30.438006Z :DEBUG: [local] 0x0000514CBF600B20 TDirectReadSession ServerSessionId=TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1 NodeId=1 Successfully connected. Initializing session
2025-12-12T11:57:30.438060Z :DEBUG: [local] 0x0000514CBF600B20 TDirectReadSession ServerSessionId=TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1 NodeId=1 XXXXX subsession send message = init_request { session_id: "TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1" topics_read_settings { path: "sdk_tests/TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction/test-topic" } consumer: "TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer" }
2025-12-12T11:57:30.438597Z :DEBUG: [local] 0x0000514CBF600B20 TDirectReadSession ServerSessionId=TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1 NodeId=1 XXXXX subsession got message = status: SUCCESS init_response { }
2025-12-12T11:57:30.438608Z :DEBUG: [local] 0x0000514CBF600B20 TDirectReadSession ServerSessionId=TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1 NodeId=1 Got InitResponse 
2025-12-12T11:57:30.438623Z :DEBUG: [local] 0x0000514CBF600B20 TDirectReadSession ServerSessionId=TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1 NodeId=1 AddPartitionSession 1
2025-12-12T11:57:30.438638Z :DEBUG: [local] 0x0000514CBF600B20 TDirectReadSession ServerSessionId=TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1 NodeId=1 SendStartRequestImpl partitionSession.State=0 delayedCall=0
2025-12-12T11:57:30.438663Z :DEBUG: [local] 0x0000514CBF600B20 TDirectReadSession ServerSessionId=TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1 NodeId=1 SendStartRequestImpl send request start_direct_read_partition_session_request { partition_session_id: 1 generation: 1 }
2025-12-12T11:57:30.438670Z :DEBUG: [local] 0x0000514CBF600B20 TDirectReadSession ServerSessionId=TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1 NodeId=1 XXXXX subsession send message = start_direct_read_partition_session_request { partition_session_id: 1 generation: 1 }
2025-12-12T11:57:30.439042Z :DEBUG: [local] 0x0000514CBF600B20 TDirectReadSession ServerSessionId=TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1 NodeId=1 XXXXX subsession got message = status: SUCCESS start_direct_read_partition_session_response { partition_session_id: 1 generation: 1 }
2025-12-12T11:57:30.439053Z :DEBUG: [local] 0x0000514CBF600B20 TDirectReadSession ServerSessionId=TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1 NodeId=1 Got StartDirectReadPartitionSessionResponse partition_session_id: 1 generation: 1
2025-12-12T11:57:30.439171Z :DEBUG: [local] 0x0000514CBF600B20 TDirectReadSession ServerSessionId=TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1 NodeId=1 XXXXX subsession got message = DirectReadResponse partitionSessionId = 1 partitionId = 0 directReadId = 1 firstOffset = 0 lastOffset = 0
2025-12-12T11:57:30.439192Z :DEBUG: [local] 0x0000514CBF600B20 TDirectReadSession ServerSessionId=TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1 NodeId=1 Waiting for NextDirectReadId=1. Got DirectReadResponse 1
2025-12-12T11:57:30.439301Z :DEBUG: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] [] Got ReadResponse, serverBytesSize = 159, now ReadSizeBudget = 0, ReadSizeServerDelta = 52428641
2025-12-12T11:57:30.439326Z :DEBUG: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] [] In ContinueReadingDataImpl, ReadSizeBudget = 0, ReadSizeServerDelta = 52428641
2025-12-12T11:57:30.439381Z :DEBUG: [local] Decompression task done. Partition/PartitionSessionId: 1 (0-0)
2025-12-12T11:57:30.439394Z :DEBUG: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] [] Returning serverBytesSize = 159 to budget
2025-12-12T11:57:30.439397Z :DEBUG: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] [] In ContinueReadingDataImpl, ReadSizeBudget = 159, ReadSizeServerDelta = 52428641
2025-12-12T11:57:30.439478Z :DEBUG: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] [] After sending read request: ReadSizeBudget = 0, ReadSizeServerDelta = 52428800
2025-12-12T11:57:30.439516Z :DEBUG: [local] Take Data. Partition 0. Read: {0, 0} (0-0)
2025-12-12T11:57:30.439538Z :DEBUG: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] [] The application data is transferred to the client. Number of messages 1, size 7 bytes
2025-12-12T11:57:30.439547Z :DEBUG: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] [] Returning serverBytesSize = 0 to budget
2025-12-12T11:57:30.439672Z :INFO: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] Closing read session. Close timeout: 0.000000s
2025-12-12T11:57:30.439680Z :INFO: [local] Read/commit by partition streams (cluster:topic:partition:stream-id:read-offset:committed-offset): -:sdk_tests/TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction/test-topic:0:1:0:0
2025-12-12T11:57:30.439687Z :INFO: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] Counters: { Errors: 0 CurrentSessionLifetimeMs: 4 BytesRead: 7 MessagesRead: 1 BytesReadCompressed: 27 BytesInflightUncompressed: 0 BytesInflightCompressed: 0 BytesInflightTotal: 0 MessagesInflight: 0 }
2025-12-12T11:57:30.439707Z :NOTICE: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] Aborting read session. Description: SessionClosed { Status: ABORTED Issues: "<main>: Error: Close with zero timeout " }
2025-12-12T11:57:30.439714Z :DEBUG: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] [] Abort session to cluster
2025-12-12T11:57:30.439836Z :DEBUG: [local] 0x0000514CBF743910 TDirectReadSessionManager ServerSessionId=TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1 Close
2025-12-12T11:57:30.439856Z :DEBUG: [local] 0x0000514CBF743910 TDirectReadSessionManager ServerSessionId=TxUsageQuery-DirectRead_Offsets_Cannot_Be_Promoted_When_Reading_In_A_Transaction-test-consumer_1_11_9730768091717126857_v1 Close
2025-12-12T11:57:30.439865Z :NOTICE: [local] [local] [4cba8581-f71ef2a1-be3153d-8bdfa7a0] Aborting read session. Description: SessionClosed { Status: ABORTED Issues: "<main>: Error: Aborted " }
