@@ -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) {
@@ -357,7 +358,8 @@ class TProposeWriteTransaction: public NTabletFlatExecutor::TTransactionBase<TCo
357358 : TBase(self)
358359 , WriteCommit(op)
359360 , Source(source)
360- , Cookie(cookie) {
361+ , Cookie(cookie)
362+ {
361363 }
362364
363365 virtual bool Execute (TTransactionContext& txc, const TActorContext&) override {
@@ -402,7 +404,8 @@ class TAbortWriteTransaction: public NTabletFlatExecutor::TTransactionBase<TColu
402404 : TBase(self)
403405 , TxId(txId)
404406 , Source(source)
405- , Cookie(cookie) {
407+ , Cookie(cookie)
408+ {
406409 }
407410
408411 virtual bool Execute (TTransactionContext& txc, const TActorContext&) override {
@@ -466,9 +469,8 @@ void TColumnShard::Handle(NEvents::TDataEvents::TEvWrite::TPtr& ev, const TActor
466469 NKikimrDataEvents::TEvWriteResult::STATUS_ABORTED);
467470 } else {
468471 if (lockInfo->GetGeneration () != commitOperation->GetGeneration ()) {
469- sendError (" tablet lock have another generation: " + ::ToString (lockInfo->GetGeneration ()) +
470- " != " + ::ToString (commitOperation->GetGeneration ()),
471- NKikimrDataEvents::TEvWriteResult::STATUS_LOCKS_BROKEN);
472+ sendError (" tablet lock have another generation: " + ::ToString (lockInfo->GetGeneration ()) + " != " +
473+ ::ToString (commitOperation->GetGeneration ()), NKikimrDataEvents::TEvWriteResult::STATUS_LOCKS_BROKEN);
472474 } else if (lockInfo->GetInternalGenerationCounter () != commitOperation->GetInternalGenerationCounter()) {
473475 sendError (
474476 " tablet lock have another internal generation counter: " + ::ToString (lockInfo->GetInternalGenerationCounter ()) +
@@ -567,7 +569,7 @@ void TColumnShard::Handle(NEvents::TDataEvents::TEvWrite::TPtr& ev, const TActor
567569 auto writeOperation = OperationsManager->RegisterOperation (lockId, cookie, granuleShardingVersionId, *mType );
568570 Y_ABORT_UNLESS (writeOperation);
569571 writeOperation->SetBehaviour (behaviour);
570- writeOperation->Start (*this , tableId, arrowData, source, schema, ctx);
572+ writeOperation->Start (*this , tableId, arrowData, source, schema, ctx, NOlap::TSnapshot::Max () );
571573}
572574
573- } // namespace NKikimr::NColumnShard
575+ } // namespace NKikimr::NColumnShard
0 commit comments