@@ -280,11 +280,11 @@ class TBlobStorageGroupPutRequest : public TBlobStorageGroupRequestActor {
280280 GetTotalTimeMs (record.GetTimestamps ()) - GetVDiskTimeMs (record.GetTimestamps ()),
281281 NKikimrBlobStorage::EPutHandleClass_Name (PutImpl.GetPutHandleClass ()),
282282 NKikimrProto::EReplyStatus_Name (status));
283- // if (RootCauseTrack.IsOn) {
284- // RootCauseTrack.OnReply(cookie.GetCauseIdx (),
285- // GetTotalTimeMs(record.GetTimestamps()) - GetVDiskTimeMs(record.GetTimestamps()),
286- // GetVDiskTimeMs(record.GetTimestamps()));
287- // }
283+ if (RootCauseTrack.IsOn ) {
284+ RootCauseTrack.OnReply (record. GetCookie (),
285+ GetTotalTimeMs (record.GetTimestamps ()) - GetVDiskTimeMs (record.GetTimestamps ()),
286+ GetVDiskTimeMs (record.GetTimestamps ()));
287+ }
288288
289289 if (status == NKikimrProto::BLOCKED || status == NKikimrProto::DEADLINE) {
290290 TString error = TStringBuilder () << " Got VPutResult status# " << status << " from VDiskId# " << vdiskId;
@@ -362,14 +362,14 @@ class TBlobStorageGroupPutRequest : public TBlobStorageGroupRequestActor {
362362 }
363363
364364 // Handle put results
365- // bool isCauseRegistered = !RootCauseTrack.IsOn;
365+ bool isCauseRegistered = !RootCauseTrack.IsOn ;
366366 TPutImpl::TPutResultVec putResults;
367367 for (auto &item : record.GetItems ()) {
368- // if (!isCauseRegistered) {
369- // isCauseRegistered = RootCauseTrack.OnReply(cookie.GetCauseIdx (),
370- // GetTotalTimeMs(record.GetTimestamps()) - GetVDiskTimeMs(record.GetTimestamps()),
371- // GetVDiskTimeMs(record.GetTimestamps()));
372- // }
368+ if (!isCauseRegistered) {
369+ isCauseRegistered = RootCauseTrack.OnReply (record. GetCookie (),
370+ GetTotalTimeMs (record.GetTimestamps ()) - GetVDiskTimeMs (record.GetTimestamps ()),
371+ GetVDiskTimeMs (record.GetTimestamps ()));
372+ }
373373
374374 Y_ABORT_UNLESS (item.HasStatus ());
375375 Y_ABORT_UNLESS (item.HasBlobID ());
@@ -477,8 +477,11 @@ class TBlobStorageGroupPutRequest : public TBlobStorageGroupRequestActor {
477477 }
478478
479479 if (TActivationContext::Monotonic () - StartTime >= LongRequestThreshold) {
480- if (AllowToReport (HandleClass)) {
481- R_LOG_WARN_S (" BPG71" , " TEvGet Request was being processed for more than " << LongRequestThreshold
480+ bool allowToReport = AllowToReport (HandleClass);
481+ R_LOG_WARN_S (" DEBUG" , TActivationContext::Monotonic () - StartTime << " " << LongRequestThreshold << " " << allowToReport << " "
482+ << NKikimrBlobStorage::EPutHandleClass_Name (PutImpl.GetPutHandleClass ()));
483+ if (allowToReport) {
484+ R_LOG_WARN_S (" BPP71" , " TEvPut Request was being processed for more than " << LongRequestThreshold
482485 << " , serialized RootCause# " << RootCauseTrack.ToString ());
483486 }
484487 }
@@ -677,12 +680,10 @@ class TBlobStorageGroupPutRequest : public TBlobStorageGroupRequestActor {
677680 void UpdatePengingVDiskResponseCount (const TDeque<TPutImpl::TPutEvent>& putEvents) {
678681 for (auto & event : putEvents) {
679682 std::visit ([&](auto & event) {
680- // Y_ABORT_UNLESS(event->Record.HasCookie());
681- // TCookie cookie(event->Record.GetCookie());
682- // if (RootCauseTrack.IsOn) {
683- // cookie.SetCauseIdx(RootCauseTrack.RegisterCause());
684- // event->Record.SetCookie(cookie);
685- // }
683+ ui64 causeIdx = RootCauseTrack.RegisterCause ();
684+ if (event->Record .HasCookie () && RootCauseTrack.IsOn ) {
685+ event->Record .SetCookie (causeIdx);
686+ }
686687 const ui32 orderNumber = Info->GetOrderNumber (VDiskIDFromVDiskID (event->Record .GetVDiskID ()));
687688 Y_ABORT_UNLESS (orderNumber < WaitingVDiskResponseCount.size ());
688689 WaitingVDiskCount += !WaitingVDiskResponseCount[orderNumber]++;
0 commit comments