summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Serebryanskiy <[email protected]>2025-07-17 17:26:30 +0300
committerGitHub <[email protected]>2025-07-17 14:26:30 +0000
commitaf2cb68d7ceef399bb2ffc61729ea90eaf4de274 (patch)
tree1e95ded6a07c3e46a18ab9171db1500d46e3d763
parent32fb8f32e9192b38acdc87b2671b758780014dd7 (diff)
[Kafka api] Fix kafka transaction bug when EnableOltpSink=false (#21297)
Co-authored-by: Irene Skvortsova <[email protected]> Co-authored-by: Irina Skvortsova <[email protected]>
-rw-r--r--ydb/core/kqp/executer_actor/kqp_data_executer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/core/kqp/executer_actor/kqp_data_executer.cpp b/ydb/core/kqp/executer_actor/kqp_data_executer.cpp
index 45cafc0067e..df0583b2343 100644
--- a/ydb/core/kqp/executer_actor/kqp_data_executer.cpp
+++ b/ydb/core/kqp/executer_actor/kqp_data_executer.cpp
@@ -2834,7 +2834,7 @@ private:
auto* w = transaction.MutableWriteId();
w->SetNodeId(SelfId().NodeId());
w->SetKeyId(*writeId);
- } else if (Request.TopicOperations.HasKafkaOperations() && Request.TopicOperations.HasWriteOperations()) {
+ } else if (Request.TopicOperations.HasKafkaOperations() && t.hasWrite) {
auto* w = transaction.MutableWriteId();
w->SetKafkaTransaction(true);
w->MutableKafkaProducerInstanceId()->SetId(Request.TopicOperations.GetKafkaProducerInstanceId().Id);