aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhor911 <hor911@ydb.tech>2022-08-23 01:12:24 +0300
committerhor911 <hor911@ydb.tech>2022-08-23 01:12:24 +0300
commit2564271e281a6bce492be03e7422ff04873ff27f (patch)
tree48a968d1b0c36de96f9e2657d783cd7b01fe20b0
parent921a733a5beaba07f09cf2b7f491098047315ead (diff)
downloadydb-2564271e281a6bce492be03e7422ff04873ff27f.tar.gz
Better event handler log
-rw-r--r--ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp b/ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp
index 00a6349e48..9562f5e620 100644
--- a/ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp
+++ b/ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp
@@ -67,6 +67,7 @@ struct TEvPrivate {
EvBegin = EventSpaceBegin(TEvents::ES_PRIVATE),
EvReadResult = EvBegin,
+ EvDataPart,
EvReadStarted,
EvReadFinished,
EvReadError,
@@ -85,7 +86,7 @@ struct TEvPrivate {
const size_t PathIndex;
};
- struct TEvDataPart : public TEventLocal<TEvDataPart, EvReadResult> {
+ struct TEvDataPart : public TEventLocal<TEvDataPart, EvDataPart> {
TEvDataPart(IHTTPGateway::TCountedContent&& data) : Result(std::move(data)) {}
IHTTPGateway::TCountedContent Result;
};
@@ -421,8 +422,9 @@ private:
return;
}
- void ProcessUnexpectedEvent(TAutoPtr<IEventHandle>) final {
- Send(ComputeActorId, new IDqComputeActorAsyncInput::TEvAsyncInputError(InputIndex, TIssues{TIssue("Unexpected event")}, true));
+ void ProcessUnexpectedEvent(TAutoPtr<IEventHandle> ev) final {
+ TString message = Sprintf("Unexpected message type 0x%08" PRIx32, ev->GetTypeRewrite());
+ Send(ComputeActorId, new IDqComputeActorAsyncInput::TEvAsyncInputError(InputIndex, TIssues{TIssue(message)}, true));
}
private:
const ui64 InputIndex;