Skip to content
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

DM-39819: Early termination of the large-result queries at Qserv workers #801

Merged
merged 6 commits into from
Jul 22, 2023

Conversation

iagaponenko
Copy link
Contributor

No description provided.

Copy link
Contributor

@jgates108 jgates108 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just minor comments.

src/ccontrol/MergingHandler.h Outdated Show resolved Hide resolved
src/czar/CzarConfig.h Show resolved Hide resolved
src/mysql/MySqlConnection.cc Show resolved Hide resolved
The service is now implemented as a singleton which is initialized
and loaded with the configuration parameters at a time when Czar
is being created. The rest of the Czar fetches values of the parameters
from the singleton. The refactoring aims at reducing the number of parameters
sent around in the code and to improve readability of the code.
Note that the enforcement only applies to the file-based result
delivery protocol as this mechanism makes no sense when results
are streamed to Czar over the SSI protocol.

The large result conditions are reported to Czar with the code
util::ErrorCode::WORKER_RESULT_TOO_LARGE which would help Czar
to identify this specific condition and properly report the one
to a user.
The new code verifies if the summary messages reported for the file-based
results don't have any error contexts. Abort result merging should
any such contexts be found.
Also, added a logging statement on failures to do so.
@iagaponenko iagaponenko merged commit 655206f into main Jul 22, 2023
@iagaponenko iagaponenko deleted the tickets/DM-39819 branch July 22, 2023 00:05
@iagaponenko iagaponenko changed the title Tickets/dm 39819 DM-39819: Early termination of the large-result queries at Qserv workers Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants