>>>TEST: future write has no value 
>>>TEST in RunTasks: before WaitPlannedTasks
2025-12-12T11:57:10.647539Z :DEBUG: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session: try to update token
2025-12-12T11:57:10.647704Z :INFO: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Start write session. Will connect to nodeId: 0
2025-12-12T11:57:10.659883Z :DEBUG: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session: write to message_group: test-message_group_id
2025-12-12T11:57:10.659927Z :DEBUG: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session: send init request: init_request { path: "sdk_tests/BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight/test-topic" producer_id: "test-message_group_id" message_group_id: "test-message_group_id" }
2025-12-12T11:57:10.660024Z :DEBUG: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session: OnWriteDone gRpcStatusCode: 0
2025-12-12T11:57:10.670222Z :DEBUG: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session: OnReadDone gRpcStatusCode: 0
2025-12-12T11:57:10.670247Z :INFO: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Counters: { Errors: 0 CurrentSessionLifetimeMs: 1765540630670 BytesWritten: 0 MessagesWritten: 0 BytesWrittenCompressed: 0 BytesInflightUncompressed: 0 BytesInflightCompressed: 0 BytesInflightTotal: 0 MessagesInflight: 0 }
2025-12-12T11:57:10.670280Z :INFO: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session established. Init response: session_id: "test-message_group_id|94a5776c-586ffb0f-4db3c857-dad0b3e9_0"
2025-12-12T11:57:10.670285Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|94a5776c-586ffb0f-4db3c857-dad0b3e9_0]  MessageGroupId [test-message_group_id] Write session: set DirectWriteToPartitionId 0
2025-12-12T11:57:10.670320Z :INFO: [local]  TraceId []  SessionId [test-message_group_id|94a5776c-586ffb0f-4db3c857-dad0b3e9_0]  PartitionId [0]  Generation [0] Get partition location async, partition 0, delay 0.000000s
2025-12-12T11:57:10.670374Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|94a5776c-586ffb0f-4db3c857-dad0b3e9_0]  PartitionId [0]  Generation [0]  Getting partition location, partition 0
2025-12-12T11:57:10.671947Z :INFO: [local]  TraceId []  SessionId [test-message_group_id|94a5776c-586ffb0f-4db3c857-dad0b3e9_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:10.671963Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|94a5776c-586ffb0f-4db3c857-dad0b3e9_0]  PartitionId [0]  Generation [0] GetPreferredEndpoint: partitionId 0, partitionNodeId 1 exists in the endpoint pool.
2025-12-12T11:57:10.671970Z :INFO: [local]  TraceId []  SessionId [test-message_group_id|94a5776c-586ffb0f-4db3c857-dad0b3e9_0]  PartitionId [0]  Generation [1] Start write session. Will connect to nodeId: 1
2025-12-12T11:57:10.672355Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|94a5776c-586ffb0f-4db3c857-dad0b3e9_0]  PartitionId [0]  Generation [1] Write session: OnReadDone gRpcStatusCode: 1, Msg: CANCELLED, Details: , InternalError: 0
2025-12-12T11:57:10.672494Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|94a5776c-586ffb0f-4db3c857-dad0b3e9_0]  PartitionId [0]  Generation [1] Write session: direct write to partition: 0, generation 1
2025-12-12T11:57:10.672521Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|94a5776c-586ffb0f-4db3c857-dad0b3e9_0]  PartitionId [0]  Generation [1] Write session: send init request: init_request { path: "sdk_tests/BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight/test-topic" producer_id: "test-message_group_id" partition_with_generation { generation: 1 } }
2025-12-12T11:57:10.672625Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|94a5776c-586ffb0f-4db3c857-dad0b3e9_0]  PartitionId [0]  Generation [1] Write session: OnWriteDone gRpcStatusCode: 0
2025-12-12T11:57:10.679250Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|94a5776c-586ffb0f-4db3c857-dad0b3e9_0]  PartitionId [0]  Generation [1] Write session: OnReadDone gRpcStatusCode: 0
2025-12-12T11:57:10.679295Z :INFO: [local]  TraceId []  SessionId [test-message_group_id|94a5776c-586ffb0f-4db3c857-dad0b3e9_0]  PartitionId [0]  Generation [1] Write session established. Init response: session_id: "test-message_group_id|203535f2-468080d-d5a1a635-d964b9c9_0"
2025-12-12T11:57:10.679302Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|203535f2-468080d-d5a1a635-d964b9c9_0]  PartitionId [0]  Generation [1] Write session: set DirectWriteToPartitionId 0
2025-12-12T11:57:10.679367Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|203535f2-468080d-d5a1a635-d964b9c9_0]  PartitionId [0]  Generation [1] Write 1 messages with Id from 1 to 1
2025-12-12T11:57:10.679392Z :INFO: [local]  TraceId []  SessionId [test-message_group_id|203535f2-468080d-d5a1a635-d964b9c9_0]  PartitionId [0]  Generation [1] Write session: close. Timeout 10.000000s
>>>TEST in RunTasks: before WaitExecutedTasks
>>>TEST in RunTasks: before WaitPlannedTasks
>>>TEST in RunTasks: before WaitExecutedTasks
2025-12-12T11:57:10.847815Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|203535f2-468080d-d5a1a635-d964b9c9_0]  PartitionId [0]  Generation [1] Write session: try to update token
2025-12-12T11:57:10.847835Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|203535f2-468080d-d5a1a635-d964b9c9_0]  PartitionId [0]  Generation [1] Send 1 message(s) (0 left), first sequence number is 1
2025-12-12T11:57:10.849988Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|203535f2-468080d-d5a1a635-d964b9c9_0]  PartitionId [0]  Generation [1] Write session: OnReadDone gRpcStatusCode: 0
2025-12-12T11:57:10.850061Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|203535f2-468080d-d5a1a635-d964b9c9_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:10.850069Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|203535f2-468080d-d5a1a635-d964b9c9_0]  PartitionId [0]  Generation [1] OnAck: seqNo=1, txId=?
2025-12-12T11:57:10.850074Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|203535f2-468080d-d5a1a635-d964b9c9_0]  PartitionId [0]  Generation [1] Write session: acknoledged message 1
2025-12-12T11:57:10.879587Z :INFO: [local]  TraceId []  SessionId [test-message_group_id|203535f2-468080d-d5a1a635-d964b9c9_0]  PartitionId [0]  Generation [1] Write session will now close
2025-12-12T11:57:10.879620Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|203535f2-468080d-d5a1a635-d964b9c9_0]  PartitionId [0]  Generation [1] Write session: aborting
2025-12-12T11:57:10.879871Z :INFO: [local]  TraceId []  SessionId [test-message_group_id|203535f2-468080d-d5a1a635-d964b9c9_0]  PartitionId [0]  Generation [1] Write session: gracefully shut down, all writes complete
2025-12-12T11:57:10.879884Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|203535f2-468080d-d5a1a635-d964b9c9_0]  PartitionId [0]  Generation [1] Write session: destroy
>>>TEST: write promise set 
2025-12-12T11:57:10.879986Z :INFO: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] Starting read session
2025-12-12T11:57:10.879992Z :DEBUG: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] Starting single session
2025-12-12T11:57:10.880031Z :DEBUG: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] [] In Reconnect, ReadSizeBudget = 524288, ReadSizeServerDelta = 0
2025-12-12T11:57:10.880035Z :DEBUG: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] [] New values: ReadSizeBudget = 524288, ReadSizeServerDelta = 0
2025-12-12T11:57:10.880039Z :DEBUG: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] [] Reconnecting session to cluster  in 0.000000s
2025-12-12T11:57:10.880377Z :DEBUG: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] [] Successfully connected. Initializing session
2025-12-12T11:57:10.881711Z :INFO: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] [] Got InitResponse. ReadSessionId: BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1
2025-12-12T11:57:10.881744Z :DEBUG: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] [] In ContinueReadingDataImpl, ReadSizeBudget = 524288, ReadSizeServerDelta = 0
2025-12-12T11:57:10.881835Z :DEBUG: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] [] After sending read request: ReadSizeBudget = 0, ReadSizeServerDelta = 524288
2025-12-12T11:57:10.883113Z :INFO: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] [] Confirm partition stream create. Partition stream id: 1. Cluster: "-". Topic: "sdk_tests/BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight/test-topic". Partition: 0. Read offset: (NULL)
2025-12-12T11:57:10.883271Z :DEBUG: [local] 0x00005287FF74A110 TDirectReadSessionManager ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1 StartPartitionSession 1 nodeId=1
2025-12-12T11:57:10.883308Z :DEBUG: [local] 0x00005287FF609FA0 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1 NodeId=1 Reconnecting direct read session to node 1 in 0.000000s
2025-12-12T11:57:10.883516Z :DEBUG: [local] 0x00005287FF609FA0 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1 NodeId=1 AddPartitionSession 1
2025-12-12T11:57:10.883523Z :DEBUG: [local] 0x00005287FF609FA0 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1 NodeId=1 SendStartRequestImpl partitionSession.State=0 delayedCall=0
2025-12-12T11:57:10.883527Z :DEBUG: [local] 0x00005287FF609FA0 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1 NodeId=1 SendStartRequestImpl bail out 1
2025-12-12T11:57:10.883581Z :DEBUG: [local] 0x00005287FF609FA0 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1 NodeId=1 Successfully connected. Initializing session
2025-12-12T11:57:10.883635Z :DEBUG: [local] 0x00005287FF609FA0 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1 NodeId=1 XXXXX subsession send message = init_request { session_id: "BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1" topics_read_settings { path: "sdk_tests/BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight/test-topic" } consumer: "BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer" }
2025-12-12T11:57:10.884300Z :DEBUG: [local] 0x00005287FF609FA0 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1 NodeId=1 XXXXX subsession got message = status: SUCCESS init_response { }
2025-12-12T11:57:10.884312Z :DEBUG: [local] 0x00005287FF609FA0 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1 NodeId=1 Got InitResponse 
2025-12-12T11:57:10.884316Z :DEBUG: [local] 0x00005287FF609FA0 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1 NodeId=1 SendStartRequestImpl partitionSession.State=0 delayedCall=0
2025-12-12T11:57:10.884328Z :DEBUG: [local] 0x00005287FF609FA0 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1 NodeId=1 SendStartRequestImpl send request start_direct_read_partition_session_request { partition_session_id: 1 generation: 1 }
2025-12-12T11:57:10.884334Z :DEBUG: [local] 0x00005287FF609FA0 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1 NodeId=1 XXXXX subsession send message = start_direct_read_partition_session_request { partition_session_id: 1 generation: 1 }
2025-12-12T11:57:10.884814Z :DEBUG: [local] 0x00005287FF609FA0 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_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:10.884826Z :DEBUG: [local] 0x00005287FF609FA0 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1 NodeId=1 Got StartDirectReadPartitionSessionResponse partition_session_id: 1 generation: 1
2025-12-12T11:57:10.884968Z :DEBUG: [local] 0x00005287FF609FA0 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1 NodeId=1 XXXXX subsession got message = DirectReadResponse partitionSessionId = 1 partitionId = 0 directReadId = 1 firstOffset = 0 lastOffset = 0
2025-12-12T11:57:10.884979Z :DEBUG: [local] 0x00005287FF609FA0 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1 NodeId=1 Waiting for NextDirectReadId=1. Got DirectReadResponse 1
2025-12-12T11:57:10.885092Z :DEBUG: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] [] Got ReadResponse, serverBytesSize = 190, now ReadSizeBudget = 0, ReadSizeServerDelta = 524098
2025-12-12T11:57:10.885119Z :DEBUG: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] [] In ContinueReadingDataImpl, ReadSizeBudget = 0, ReadSizeServerDelta = 524098
>>>TEST: future write has value 
>>>TEST: future read has no value 
>>>TEST in RunTasks: before WaitPlannedTasks
>>>TEST in RunTasks: before WaitExecutedTasks
2025-12-12T11:57:10.948027Z :DEBUG: [local] Decompression task done. Partition/PartitionSessionId: 1 (0-0)
2025-12-12T11:57:10.948056Z :DEBUG: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] [] Returning serverBytesSize = 190 to budget
2025-12-12T11:57:10.948064Z :DEBUG: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] [] In ContinueReadingDataImpl, ReadSizeBudget = 190, ReadSizeServerDelta = 524098
2025-12-12T11:57:10.948282Z :DEBUG: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] [] After sending read request: ReadSizeBudget = 0, ReadSizeServerDelta = 524288
2025-12-12T11:57:10.948311Z :DEBUG: [local] Take Data. Partition 0. Read: {0, 0} (0-0)
2025-12-12T11:57:10.948394Z :DEBUG: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] [] Commit offsets [0, 1). Partition stream id: 1
>>>TEST: get read event 
2025-12-12T11:57:10.948608Z :DEBUG: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] [] The application data is transferred to the client. Number of messages 1, size 2000 bytes
2025-12-12T11:57:10.948614Z :INFO: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] Closing read session. Close timeout: 10.000000s
2025-12-12T11:57:10.948623Z :DEBUG: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] [] Returning serverBytesSize = 0 to budget
2025-12-12T11:57:10.948641Z :INFO: [local] Read/commit by partition streams (cluster:topic:partition:stream-id:read-offset:committed-offset): -:sdk_tests/BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight/test-topic:0:1:0:0
2025-12-12T11:57:10.948650Z :INFO: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] Counters: { Errors: 0 CurrentSessionLifetimeMs: 68 BytesRead: 2000 MessagesRead: 1 BytesReadCompressed: 35 BytesInflightUncompressed: 0 BytesInflightCompressed: 0 BytesInflightTotal: 0 MessagesInflight: 0 }
2025-12-12T11:57:10.948824Z :DEBUG: [local] 0x00005287FF74A110 TDirectReadSessionManager ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1 Close
2025-12-12T11:57:10.948864Z :DEBUG: [local] 0x00005287FF74A110 TDirectReadSessionManager ServerSessionId=BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight-test-consumer_1_7_3640815416424477408_v1 Close
2025-12-12T11:57:10.948919Z :INFO: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] Closing read session. Close timeout: 0.000000s
2025-12-12T11:57:10.948926Z :INFO: [local] Read/commit by partition streams (cluster:topic:partition:stream-id:read-offset:committed-offset): -:sdk_tests/BasicUsage-DirectRead_SessionNotDestroyedWhileCompressionInFlight/test-topic:0:1:0:0
2025-12-12T11:57:10.948932Z :INFO: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] Counters: { Errors: 0 CurrentSessionLifetimeMs: 68 BytesRead: 2000 MessagesRead: 1 BytesReadCompressed: 35 BytesInflightUncompressed: 0 BytesInflightCompressed: 0 BytesInflightTotal: 0 MessagesInflight: 0 }
2025-12-12T11:57:10.948948Z :NOTICE: [local] [local] [6698bf1f-2967409b-4082e7a8-3fa4daee] Aborting read session. Description: SessionClosed { Status: ABORTED Issues: "<main>: Error: Aborted " }
>>>TEST: read promise set 
>>>TEST: future read has value 
>>> TEST: gracefully closed
