2025-12-12T11:57:08.510677Z :DEBUG: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session: try to update token
2025-12-12T11:57:08.510925Z :INFO: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Start write session. Will connect to nodeId: 0
2025-12-12T11:57:08.516868Z :DEBUG: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session: write to message_group: test-message_group_id
2025-12-12T11:57:08.516949Z :DEBUG: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session: send init request: init_request { path: "sdk_tests/BasicUsage-DirectRead_MaxByteSizeEqualZero/test-topic" message_group_id: "test-message_group_id" }
2025-12-12T11:57:08.517180Z :DEBUG: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session: OnWriteDone gRpcStatusCode: 0
2025-12-12T11:57:08.523932Z :DEBUG: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session: OnReadDone gRpcStatusCode: 0
2025-12-12T11:57:08.523956Z :INFO: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Counters: { Errors: 0 CurrentSessionLifetimeMs: 1765540628523 BytesWritten: 0 MessagesWritten: 0 BytesWrittenCompressed: 0 BytesInflightUncompressed: 0 BytesInflightCompressed: 0 BytesInflightTotal: 0 MessagesInflight: 0 }
2025-12-12T11:57:08.523994Z :INFO: [local]  TraceId []  SessionId []  MessageGroupId [test-message_group_id] Write session established. Init response: session_id: "test-message_group_id|445ff8d0-9b9c87a3-47eb69da-8e616b6c_0"
2025-12-12T11:57:08.523999Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|445ff8d0-9b9c87a3-47eb69da-8e616b6c_0]  MessageGroupId [test-message_group_id] Write session: set DirectWriteToPartitionId 0
2025-12-12T11:57:08.524027Z :INFO: [local]  TraceId []  SessionId [test-message_group_id|445ff8d0-9b9c87a3-47eb69da-8e616b6c_0]  PartitionId [0]  Generation [0] Get partition location async, partition 0, delay 0.000000s
2025-12-12T11:57:08.524100Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|445ff8d0-9b9c87a3-47eb69da-8e616b6c_0]  PartitionId [0]  Generation [0]  Getting partition location, partition 0
2025-12-12T11:57:08.525587Z :INFO: [local]  TraceId []  SessionId [test-message_group_id|445ff8d0-9b9c87a3-47eb69da-8e616b6c_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:08.525601Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|445ff8d0-9b9c87a3-47eb69da-8e616b6c_0]  PartitionId [0]  Generation [0] GetPreferredEndpoint: partitionId 0, partitionNodeId 1 exists in the endpoint pool.
2025-12-12T11:57:08.525606Z :INFO: [local]  TraceId []  SessionId [test-message_group_id|445ff8d0-9b9c87a3-47eb69da-8e616b6c_0]  PartitionId [0]  Generation [1] Start write session. Will connect to nodeId: 1
2025-12-12T11:57:08.525949Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|445ff8d0-9b9c87a3-47eb69da-8e616b6c_0]  PartitionId [0]  Generation [1] Write session: OnReadDone gRpcStatusCode: 1, Msg: CANCELLED, Details: , InternalError: 0
2025-12-12T11:57:08.526097Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|445ff8d0-9b9c87a3-47eb69da-8e616b6c_0]  PartitionId [0]  Generation [1] Write session: direct write to partition: 0, generation 1
2025-12-12T11:57:08.526121Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|445ff8d0-9b9c87a3-47eb69da-8e616b6c_0]  PartitionId [0]  Generation [1] Write session: send init request: init_request { path: "sdk_tests/BasicUsage-DirectRead_MaxByteSizeEqualZero/test-topic" partition_with_generation { generation: 1 } }
2025-12-12T11:57:08.526225Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|445ff8d0-9b9c87a3-47eb69da-8e616b6c_0]  PartitionId [0]  Generation [1] Write session: OnWriteDone gRpcStatusCode: 0
2025-12-12T11:57:08.527787Z :DEBUG: [local]  TraceId []  SessionId [test-message_group_id|445ff8d0-9b9c87a3-47eb69da-8e616b6c_0]  PartitionId [0]  Generation [1] Write session: OnReadDone gRpcStatusCode: 0
2025-12-12T11:57:08.527839Z :INFO: [local]  TraceId []  SessionId [test-message_group_id|445ff8d0-9b9c87a3-47eb69da-8e616b6c_0]  PartitionId [0]  Generation [1] Write session established. Init response: session_id: "d4ab0bae-87194a00-ed4db3f4-610d77df|d9186ec4-9b162b59-62998a53-4f8452ab_0"
2025-12-12T11:57:08.527846Z :DEBUG: [local]  TraceId []  SessionId [d4ab0bae-87194a00-ed4db3f4-610d77df|d9186ec4-9b162b59-62998a53-4f8452ab_0]  PartitionId [0]  Generation [1] Write session: set DirectWriteToPartitionId 0
2025-12-12T11:57:08.527931Z :DEBUG: [local]  TraceId []  SessionId [d4ab0bae-87194a00-ed4db3f4-610d77df|d9186ec4-9b162b59-62998a53-4f8452ab_0]  PartitionId [0]  Generation [1] Write 1 messages with Id from 1 to 1
2025-12-12T11:57:08.527970Z :INFO: [local]  TraceId []  SessionId [d4ab0bae-87194a00-ed4db3f4-610d77df|d9186ec4-9b162b59-62998a53-4f8452ab_0]  PartitionId [0]  Generation [1] Write session: close. Timeout 18446744073709.551615s
2025-12-12T11:57:08.528136Z :DEBUG: [local]  TraceId []  SessionId [d4ab0bae-87194a00-ed4db3f4-610d77df|d9186ec4-9b162b59-62998a53-4f8452ab_0]  PartitionId [0]  Generation [1] Write session: try to update token
2025-12-12T11:57:08.528147Z :DEBUG: [local]  TraceId []  SessionId [d4ab0bae-87194a00-ed4db3f4-610d77df|d9186ec4-9b162b59-62998a53-4f8452ab_0]  PartitionId [0]  Generation [1] Send 1 message(s) (0 left), first sequence number is 1
2025-12-12T11:57:08.530133Z :DEBUG: [local]  TraceId []  SessionId [d4ab0bae-87194a00-ed4db3f4-610d77df|d9186ec4-9b162b59-62998a53-4f8452ab_0]  PartitionId [0]  Generation [1] Write session: OnReadDone gRpcStatusCode: 0
2025-12-12T11:57:08.530206Z :DEBUG: [local]  TraceId []  SessionId [d4ab0bae-87194a00-ed4db3f4-610d77df|d9186ec4-9b162b59-62998a53-4f8452ab_0]  PartitionId [0]  Generation [1] Write session got write response: acks { seq_no: 1 written { } } write_statistics { persisting_time { } min_queue_wait_time { } max_queue_wait_time { } partition_quota_wait_time { } topic_quota_wait_time { } }
2025-12-12T11:57:08.530214Z :DEBUG: [local]  TraceId []  SessionId [d4ab0bae-87194a00-ed4db3f4-610d77df|d9186ec4-9b162b59-62998a53-4f8452ab_0]  PartitionId [0]  Generation [1] OnAck: seqNo=1, txId=?
2025-12-12T11:57:08.530218Z :DEBUG: [local]  TraceId []  SessionId [d4ab0bae-87194a00-ed4db3f4-610d77df|d9186ec4-9b162b59-62998a53-4f8452ab_0]  PartitionId [0]  Generation [1] Write session: acknoledged message 1
2025-12-12T11:57:08.628073Z :INFO: [local]  TraceId []  SessionId [d4ab0bae-87194a00-ed4db3f4-610d77df|d9186ec4-9b162b59-62998a53-4f8452ab_0]  PartitionId [0]  Generation [1] Write session will now close
2025-12-12T11:57:08.628100Z :DEBUG: [local]  TraceId []  SessionId [d4ab0bae-87194a00-ed4db3f4-610d77df|d9186ec4-9b162b59-62998a53-4f8452ab_0]  PartitionId [0]  Generation [1] Write session: aborting
2025-12-12T11:57:08.628344Z :INFO: [local]  TraceId []  SessionId [d4ab0bae-87194a00-ed4db3f4-610d77df|d9186ec4-9b162b59-62998a53-4f8452ab_0]  PartitionId [0]  Generation [1] Write session: gracefully shut down, all writes complete
2025-12-12T11:57:08.628375Z :INFO: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] Starting read session
2025-12-12T11:57:08.628381Z :DEBUG: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] Starting single session
2025-12-12T11:57:08.628417Z :DEBUG: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] [] In Reconnect, ReadSizeBudget = 52428800, ReadSizeServerDelta = 0
2025-12-12T11:57:08.628421Z :DEBUG: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] [] New values: ReadSizeBudget = 52428800, ReadSizeServerDelta = 0
2025-12-12T11:57:08.628424Z :DEBUG: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] [] Reconnecting session to cluster  in 0.000000s
2025-12-12T11:57:08.628516Z :DEBUG: [local]  TraceId []  SessionId [d4ab0bae-87194a00-ed4db3f4-610d77df|d9186ec4-9b162b59-62998a53-4f8452ab_0]  PartitionId [0]  Generation [1] Write session: OnReadDone gRpcStatusCode: 1, Msg: CANCELLED, Details: , InternalError: 0
2025-12-12T11:57:08.628531Z :DEBUG: [local]  TraceId []  SessionId [d4ab0bae-87194a00-ed4db3f4-610d77df|d9186ec4-9b162b59-62998a53-4f8452ab_0]  PartitionId [0]  Generation [1] Write session is aborting and will not restart
2025-12-12T11:57:08.628973Z :DEBUG: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] [] Successfully connected. Initializing session
2025-12-12T11:57:08.629949Z :INFO: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] [] Got InitResponse. ReadSessionId: BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1
2025-12-12T11:57:08.629977Z :DEBUG: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] [] In ContinueReadingDataImpl, ReadSizeBudget = 52428800, ReadSizeServerDelta = 0
2025-12-12T11:57:08.630043Z :DEBUG: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] [] After sending read request: ReadSizeBudget = 0, ReadSizeServerDelta = 52428800
2025-12-12T11:57:08.631404Z :INFO: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] [] Confirm partition stream create. Partition stream id: 1. Cluster: "-". Topic: "sdk_tests/BasicUsage-DirectRead_MaxByteSizeEqualZero/test-topic". Partition: 0. Read offset: (NULL)
2025-12-12T11:57:08.631506Z :DEBUG: [local] 0x00005287FF752310 TDirectReadSessionManager ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1 StartPartitionSession 1 nodeId=1
2025-12-12T11:57:08.631524Z :DEBUG: [local] 0x00005287FF602120 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1 NodeId=1 Reconnecting direct read session to node 1 in 0.000000s
2025-12-12T11:57:08.631706Z :DEBUG: [local] 0x00005287FF602120 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1 NodeId=1 AddPartitionSession 1
2025-12-12T11:57:08.631711Z :DEBUG: [local] 0x00005287FF602120 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1 NodeId=1 SendStartRequestImpl partitionSession.State=0 delayedCall=0
2025-12-12T11:57:08.631715Z :DEBUG: [local] 0x00005287FF602120 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1 NodeId=1 SendStartRequestImpl bail out 1
2025-12-12T11:57:08.631854Z :DEBUG: [local] 0x00005287FF602120 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1 NodeId=1 Successfully connected. Initializing session
2025-12-12T11:57:08.631897Z :DEBUG: [local] 0x00005287FF602120 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1 NodeId=1 XXXXX subsession send message = init_request { session_id: "BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1" topics_read_settings { path: "sdk_tests/BasicUsage-DirectRead_MaxByteSizeEqualZero/test-topic" } consumer: "BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer" }
2025-12-12T11:57:08.632456Z :DEBUG: [local] 0x00005287FF602120 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1 NodeId=1 XXXXX subsession got message = status: SUCCESS init_response { }
2025-12-12T11:57:08.632468Z :DEBUG: [local] 0x00005287FF602120 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1 NodeId=1 Got InitResponse 
2025-12-12T11:57:08.632470Z :DEBUG: [local] 0x00005287FF602120 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1 NodeId=1 SendStartRequestImpl partitionSession.State=0 delayedCall=0
2025-12-12T11:57:08.632493Z :DEBUG: [local] 0x00005287FF602120 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1 NodeId=1 SendStartRequestImpl send request start_direct_read_partition_session_request { partition_session_id: 1 generation: 1 }
2025-12-12T11:57:08.632499Z :DEBUG: [local] 0x00005287FF602120 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1 NodeId=1 XXXXX subsession send message = start_direct_read_partition_session_request { partition_session_id: 1 generation: 1 }
2025-12-12T11:57:08.632863Z :DEBUG: [local] 0x00005287FF602120 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_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:08.632875Z :DEBUG: [local] 0x00005287FF602120 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1 NodeId=1 Got StartDirectReadPartitionSessionResponse partition_session_id: 1 generation: 1
2025-12-12T11:57:08.632941Z :DEBUG: [local] 0x00005287FF602120 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1 NodeId=1 XXXXX subsession got message = DirectReadResponse partitionSessionId = 1 partitionId = 0 directReadId = 1 firstOffset = 0 lastOffset = 0
2025-12-12T11:57:08.632947Z :DEBUG: [local] 0x00005287FF602120 TDirectReadSession ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1 NodeId=1 Waiting for NextDirectReadId=1. Got DirectReadResponse 1
2025-12-12T11:57:08.633041Z :DEBUG: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] [] Got ReadResponse, serverBytesSize = 159, now ReadSizeBudget = 0, ReadSizeServerDelta = 52428641
2025-12-12T11:57:08.633059Z :DEBUG: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] [] In ContinueReadingDataImpl, ReadSizeBudget = 0, ReadSizeServerDelta = 52428641
2025-12-12T11:57:08.633128Z :DEBUG: [local] Decompression task done. Partition/PartitionSessionId: 1 (0-0)
2025-12-12T11:57:08.633149Z :DEBUG: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] [] Returning serverBytesSize = 159 to budget
2025-12-12T11:57:08.633155Z :DEBUG: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] [] In ContinueReadingDataImpl, ReadSizeBudget = 159, ReadSizeServerDelta = 52428641
2025-12-12T11:57:08.633247Z :DEBUG: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] [] After sending read request: ReadSizeBudget = 0, ReadSizeServerDelta = 52428800
2025-12-12T11:57:08.636001Z :DEBUG: [local] Take Data. Partition 0. Read: {0, 0} (0-0)
2025-12-12T11:57:08.636024Z :DEBUG: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] [] The application data is transferred to the client. Number of messages 1, size 7 bytes
2025-12-12T11:57:08.636038Z :DEBUG: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] [] Returning serverBytesSize = 0 to budget
2025-12-12T11:57:08.636058Z :DEBUG: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] [] Commit offsets [0, 1). Partition stream id: 1
2025-12-12T11:57:08.636191Z :INFO: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] Closing read session. Close timeout: 0.000000s
2025-12-12T11:57:08.636199Z :INFO: [local] Read/commit by partition streams (cluster:topic:partition:stream-id:read-offset:committed-offset): -:sdk_tests/BasicUsage-DirectRead_MaxByteSizeEqualZero/test-topic:0:1:0:0
2025-12-12T11:57:08.636207Z :INFO: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] Counters: { Errors: 0 CurrentSessionLifetimeMs: 7 BytesRead: 7 MessagesRead: 1 BytesReadCompressed: 27 BytesInflightUncompressed: 0 BytesInflightCompressed: 0 BytesInflightTotal: 0 MessagesInflight: 0 }
2025-12-12T11:57:08.636237Z :NOTICE: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] Aborting read session. Description: SessionClosed { Status: ABORTED Issues: "<main>: Error: Close with zero timeout " }
2025-12-12T11:57:08.636243Z :DEBUG: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] [] Abort session to cluster
2025-12-12T11:57:08.636415Z :DEBUG: [local] 0x00005287FF752310 TDirectReadSessionManager ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1 Close
2025-12-12T11:57:08.636477Z :DEBUG: [local] 0x00005287FF752310 TDirectReadSessionManager ServerSessionId=BasicUsage-DirectRead_MaxByteSizeEqualZero-test-consumer_1_3_8222127354529002031_v1 Close
2025-12-12T11:57:08.636490Z :NOTICE: [local] [local] [a4804bf2-65c67777-5c158619-df58e02d] Aborting read session. Description: SessionClosed { Status: ABORTED Issues: "<main>: Error: Aborted " }
2025-12-12T11:57:08.636599Z :DEBUG: [local]  TraceId []  SessionId [d4ab0bae-87194a00-ed4db3f4-610d77df|d9186ec4-9b162b59-62998a53-4f8452ab_0]  PartitionId [0]  Generation [1] Write session: destroy
