@@ -111,15 +111,15 @@ class TActionActor
111
111
DoBootstrap ();
112
112
}
113
113
114
- void Bootstrap (const NActors::TActorContext&) {
114
+ void Bootstrap (const NActors::TActorContext&) {
115
115
#define SQS_REQUEST_CASE (action ) \
116
116
const auto & request = SourceSqsRequest_.Y_CAT (Get, action)(); \
117
117
auto response = Response_.Y_CAT (Mutable, action)(); \
118
118
FillAuthInformation (request); \
119
119
response->SetRequestId (RequestId_);
120
-
120
+
121
121
SQS_SWITCH_REQUEST_CUSTOM (SourceSqsRequest_, ENUMERATE_ALL_ACTIONS, Y_ABORT_UNLESS (false ));
122
- #undef SQS_REQUEST_CASE
122
+ #undef SQS_REQUEST_CASE
123
123
124
124
RLOG_SQS_DEBUG (" Request started. Actor: " << this ->SelfId ()); // log new request id
125
125
StartTs_ = TActivationContext::Now ();
@@ -130,6 +130,7 @@ class TActionActor
130
130
131
131
// Set timeout
132
132
if (cfg.GetRequestTimeoutMs ()) {
133
+ TimeoutCookie_.Reset (ISchedulerCookie::Make2Way ());
133
134
this ->Schedule (TDuration::MilliSeconds (cfg.GetRequestTimeoutMs ()), new TEvWakeup (REQUEST_TIMEOUT_WAKEUP_TAG), TimeoutCookie_.Get ());
134
135
}
135
136
@@ -349,7 +350,7 @@ class TActionActor
349
350
RESPONSE_BATCH_CASE (SendMessageBatch)
350
351
RESPONSE_CASE (SetQueueAttributes)
351
352
RESPONSE_CASE (ListDeadLetterSourceQueues)
352
- RESPONSE_CASE (CountQueues)
353
+ RESPONSE_CASE (CountQueues)
353
354
case NKikimrClient::TSqsResponse::kDeleteQueueBatch :
354
355
case NKikimrClient::TSqsResponse::kGetQueueAttributesBatch :
355
356
case NKikimrClient::TSqsResponse::kPurgeQueueBatch :
@@ -362,7 +363,7 @@ class TActionActor
362
363
#undef RESPONSE_CASE
363
364
}
364
365
}
365
-
366
+
366
367
template <class TResponse >
367
368
void AuditLogEntry (const TResponse& response, const TString& requestId, const TError* error = nullptr ) {
368
369
if (!error && response.HasError ()) {
@@ -549,7 +550,7 @@ class TActionActor
549
550
UserName_ = request.GetAuth ().GetUserName ();
550
551
FolderId_ = request.GetAuth ().GetFolderId ();
551
552
UserSID_ = request.GetAuth ().GetUserSID ();
552
-
553
+
553
554
if (IsCloud () && !FolderId_) {
554
555
auto items = ParseCloudSecurityToken (SecurityToken_);
555
556
UserName_ = std::get<0 >(items);
@@ -879,7 +880,7 @@ class TActionActor
879
880
TIntrusivePtr<TSqsEvents::TQuoterResourcesForActions> QuoterResources_;
880
881
bool NeedReportSqsActionInflyCounter = false ;
881
882
bool NeedReportYmqActionInflyCounter = false ;
882
- TSchedulerCookieHolder TimeoutCookie_ = ISchedulerCookie::Make2Way() ;
883
+ TSchedulerCookieHolder TimeoutCookie_;
883
884
NKikimrClient::TSqsRequest SourceSqsRequest_;
884
885
};
885
886
0 commit comments