-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed backward compatibility in fq-proxy result_writer_actor #5111
Fixed backward compatibility in fq-proxy result_writer_actor #5111
Conversation
⚪
|
⚪
|
@@ -96,6 +96,13 @@ class TResultSetWriterActor : public TBaseComputeActor<TResultSetWriterActor> { | |||
|
|||
void Handle(const TEvYdbCompute::TEvFetchScriptResultResponse::TPtr& ev) { | |||
const auto& response = *ev.Get()->Get(); | |||
if (response.Status == NYdb::EStatus::BAD_REQUEST && FetchRowsLimit == 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А точно bad requst только в этом случае вылетает? Не можем мы тут откатиться по другой ошибке?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можем и кажется это даже может быть хорошо, например если в результатах какие-то проблемы (например слишком длинные строчки, более 20MB) и новый вычитыватель не справился:
ydb/ydb/core/kqp/proxy_service/kqp_script_executions.cpp
Lines 2170 to 2179 in 1b4620e
if (result.RowsCount() == 0) { | |
if (ResultSet.rows_size() > 0) { | |
Finish(); | |
} else { | |
Finish(Ydb::StatusIds::BAD_REQUEST, "Failed to fetch script result due to size limit"); | |
} | |
return; | |
} | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Но такого же быть не должно. Это баг получается в этом случае. На сенсорах будем видеть такие затупы, а то можем не заметить деградаций?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сенсоров на такие затупы нету, но эта проблема должна пофикситься когда GetResult будет переписан на стримовый запрос
Changelog entry
Fixed backward compatibility in fq-proxy result_writer_actor
Changelog category
Additional information