@@ -971,6 +971,7 @@ inline void TSingleClusterReadSessionImpl<true>::OnReadDoneImpl(
971971 LOG_LAZY (Log, TLOG_INFO, GetLogPrefix () << " Server session id: " << msg.session_id ());
972972
973973 RetryState = nullptr ;
974+ ReadSessionId = msg.session_id ();
974975
975976 // Successful init. Do nothing.
976977 ContinueReadingDataImpl ();
@@ -1222,6 +1223,7 @@ inline void TSingleClusterReadSessionImpl<false>::OnReadDoneImpl(
12221223 Y_UNUSED (deferred);
12231224
12241225 RetryState = nullptr ;
1226+ ReadSessionId = msg.session_id ();
12251227
12261228 LOG_LAZY (Log, TLOG_INFO, GetLogPrefix () << " Server session id: " << msg.session_id ());
12271229
@@ -1321,8 +1323,12 @@ inline void TSingleClusterReadSessionImpl<false>::OnReadDoneImpl(
13211323 Y_ABORT_UNLESS (Lock.IsLocked ());
13221324
13231325 auto partitionStream = MakeIntrusive<TPartitionStreamImpl<false >>(
1324- NextPartitionStreamId, msg.partition_session ().path (), msg.partition_session ().partition_id (),
1325- msg.partition_session ().partition_session_id (), msg.committed_offset (),
1326+ NextPartitionStreamId,
1327+ msg.partition_session ().path (),
1328+ ReadSessionId,
1329+ msg.partition_session ().partition_id (),
1330+ msg.partition_session ().partition_session_id (),
1331+ msg.committed_offset (),
13261332 SelfContext);
13271333 NextPartitionStreamId += PartitionStreamIdStep;
13281334
0 commit comments