Skip to content

Commit cdd697c

Browse files
committed
fix immediate
1 parent aa6bba8 commit cdd697c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ydb/core/persqueue/partition.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3015,6 +3015,11 @@ void TPartition::ExecImmediateTx(TTransaction& t)
30153015
"incorrect offset range (commit to the future)");
30163016
return;
30173017
}
3018+
3019+
if ((i64)operation.GetCommitOffsetsEnd() < pendingUserInfo.Offset && !operation.GetReadSessionId().empty()) {
3020+
continue; // this is stale request, answer ok for it
3021+
}
3022+
30183023
pendingUserInfo.Offset = operation.GetCommitOffsetsEnd();
30193024
}
30203025
CommitWriteOperations(t);

0 commit comments

Comments
 (0)