@@ -19,8 +19,8 @@ namespace NKikimr::NColumnShard {
1919
2020using namespace NTabletFlatExecutor ;
2121
22- void TColumnShard::OverloadWriteFail (const EOverloadStatus overloadReason, const NEvWrite::TWriteMeta& writeMeta, const ui64 writeSize, const ui64 cookie,
23- std::unique_ptr<NActors::IEventBase>&& event, const TActorContext& ctx) {
22+ void TColumnShard::OverloadWriteFail (const EOverloadStatus overloadReason, const NEvWrite::TWriteMeta& writeMeta, const ui64 writeSize,
23+ const ui64 cookie, std::unique_ptr<NActors::IEventBase>&& event, const TActorContext& ctx) {
2424 Counters.GetTabletCounters ()->IncCounter (COUNTER_WRITE_FAIL);
2525 switch (overloadReason) {
2626 case EOverloadStatus::Disk:
@@ -262,8 +262,8 @@ void TColumnShard::Handle(TEvColumnShard::TEvWrite::TPtr& ev, const TActorContex
262262 << (writeMeta.GetWriteId () ? (" writeId " + ToString (writeMeta.GetWriteId ())).c_str () : " " )
263263 << Counters.GetWritesMonitor ()->DebugString () << " at tablet " << TabletID ());
264264 writeData.MutableWriteMeta ().SetWriteMiddle1StartInstant (TMonotonic::Now ());
265- std::shared_ptr<NConveyor::ITask> task = std::make_shared<NOlap::TBuildBatchesTask>(
266- TabletID (), SelfId (), BufferizationWriteActorId, std::move (writeData), snapshotSchema, GetLastTxSnapshot (), Counters.GetCSCounters ().WritingCounters );
265+ std::shared_ptr<NConveyor::ITask> task = std::make_shared<NOlap::TBuildBatchesTask>(TabletID (), SelfId (), BufferizationWriteActorId,
266+ std::move (writeData), snapshotSchema, GetLastTxSnapshot (), Counters.GetCSCounters ().WritingCounters );
267267 NConveyor::TInsertServiceOperator::AsyncTaskToExecute (task);
268268 }
269269}
@@ -285,7 +285,8 @@ class TCommitOperation {
285285 }
286286
287287 TCommitOperation (const ui64 tabletId)
288- : TabletId(tabletId) {
288+ : TabletId(tabletId)
289+ {
289290 }
290291
291292 TConclusionStatus Parse (const NEvents::TDataEvents::TEvWrite& evWrite) {
@@ -354,7 +355,8 @@ class TProposeWriteTransaction: public NTabletFlatExecutor::TTransactionBase<TCo
354355 : TBase(self)
355356 , WriteCommit(op)
356357 , Source(source)
357- , Cookie(cookie) {
358+ , Cookie(cookie)
359+ {
358360 }
359361
360362 virtual bool Execute (TTransactionContext& txc, const TActorContext&) override {
@@ -399,7 +401,8 @@ class TAbortWriteTransaction: public NTabletFlatExecutor::TTransactionBase<TColu
399401 : TBase(self)
400402 , TxId(txId)
401403 , Source(source)
402- , Cookie(cookie) {
404+ , Cookie(cookie)
405+ {
403406 }
404407
405408 virtual bool Execute (TTransactionContext& txc, const TActorContext&) override {
@@ -463,9 +466,8 @@ void TColumnShard::Handle(NEvents::TDataEvents::TEvWrite::TPtr& ev, const TActor
463466 NKikimrDataEvents::TEvWriteResult::STATUS_ABORTED);
464467 } else {
465468 if (lockInfo->GetGeneration () != commitOperation->GetGeneration ()) {
466- sendError (" tablet lock have another generation: " + ::ToString (lockInfo->GetGeneration ()) +
467- " != " + ::ToString (commitOperation->GetGeneration ()),
468- NKikimrDataEvents::TEvWriteResult::STATUS_LOCKS_BROKEN);
469+ sendError (" tablet lock have another generation: " + ::ToString (lockInfo->GetGeneration ()) + " != " +
470+ ::ToString (commitOperation->GetGeneration ()), NKikimrDataEvents::TEvWriteResult::STATUS_LOCKS_BROKEN);
469471 } else if (lockInfo->GetInternalGenerationCounter () != commitOperation->GetInternalGenerationCounter()) {
470472 sendError (
471473 " tablet lock have another internal generation counter: " + ::ToString (lockInfo->GetInternalGenerationCounter ()) +
@@ -564,7 +566,7 @@ void TColumnShard::Handle(NEvents::TDataEvents::TEvWrite::TPtr& ev, const TActor
564566 auto writeOperation = OperationsManager->RegisterOperation (lockId, cookie, granuleShardingVersionId, *mType );
565567 Y_ABORT_UNLESS (writeOperation);
566568 writeOperation->SetBehaviour (behaviour);
567- writeOperation->Start (*this , tableId, arrowData, source, schema, ctx);
569+ writeOperation->Start (*this , tableId, arrowData, source, schema, ctx, NOlap::TSnapshot::Max () );
568570}
569571
570- } // namespace NKikimr::NColumnShard
572+ } // namespace NKikimr::NColumnShard
0 commit comments