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

Shorten the error message in orphaned-objects monrun check #265

Merged
merged 12 commits into from
Dec 9, 2024

Conversation

NikitaUnisikhin
Copy link
Contributor

No description provided.

@NikitaUnisikhin NikitaUnisikhin force-pushed the orp-objects-handle-error-refactoring branch from 9fda477 to b8f23b8 Compare December 5, 2024 10:27
@NikitaUnisikhin NikitaUnisikhin force-pushed the orp-objects-handle-error-refactoring branch 12 times, most recently from 39702c4 to dabd301 Compare December 5, 2024 13:19
@NikitaUnisikhin NikitaUnisikhin force-pushed the orp-objects-handle-error-refactoring branch from dabd301 to 4b1fd6c Compare December 5, 2024 13:24
@NikitaUnisikhin NikitaUnisikhin marked this pull request as draft December 5, 2024 14:06
@@ -52,7 +56,7 @@ def orphaned_objects_command(
return Result(CRIT, str(e))

total_size = state.orphaned_objects_size
error_msg = state.error_msg
error_msg = _error_message_format(state.error_msg)
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider putting this action there to make it more general

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thks, that's much better. done

@NikitaUnisikhin NikitaUnisikhin force-pushed the orp-objects-handle-error-refactoring branch from 2ff022e to dd93ace Compare December 6, 2024 13:03
@NikitaUnisikhin NikitaUnisikhin force-pushed the orp-objects-handle-error-refactoring branch from dd93ace to 6229422 Compare December 6, 2024 13:10
@NikitaUnisikhin NikitaUnisikhin force-pushed the orp-objects-handle-error-refactoring branch from a246ae4 to af66fd8 Compare December 6, 2024 15:26
"""
Then we get response
"""
2;Code: 27. DB::Exception: ... (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 24.8.5.115 (official build)) ...
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use we get response matches for checking response without specific versions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The purpose of this test is to show the final error message, we are parsing an error that already contains "(version 24.8.5.115 (official build))", that is, this result of this test does not depend on the version of clickhouse.

Maybe I didn’t understand why to change this test.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, I got confused with the Scenario: Check Geobase test. But it is already fixed

@NikitaUnisikhin NikitaUnisikhin force-pushed the orp-objects-handle-error-refactoring branch from d928fd4 to af66fd8 Compare December 8, 2024 13:50
@NikitaUnisikhin NikitaUnisikhin changed the title Shorten the error message in orphaned-objects monrun check [WIP] Shorten the error message in orphaned-objects monrun check Dec 8, 2024
@aalexfvk aalexfvk marked this pull request as ready for review December 9, 2024 07:25
@aalexfvk aalexfvk merged commit b1852dd into main Dec 9, 2024
41 of 47 checks passed
@aalexfvk aalexfvk deleted the orp-objects-handle-error-refactoring branch December 9, 2024 08:22
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