Skip to content

Conversation

@jcjones
Copy link
Collaborator

@jcjones jcjones commented Sep 12, 2022

No description provided.

Copy link

@mcpherrinm mcpherrinm left a comment

Choose a reason for hiding this comment

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

lgtm. Per the mariadb manual, wait 2 will wait to acquire locks for two seconds: https://mariadb.com/kb/en/wait-and-nowait/

Based on my reading of our metrics, this is an acceptable value. Longer waits are quite rare.

Do we need to add any extra error handling to partman to handle the new timeout errors we'll get?

@jcjones
Copy link
Collaborator Author

jcjones commented Sep 13, 2022

We probably should, the MySQL command will return error, which is already accounted for, but the metrics wouldn't get updated. I've got an improvement, thanks @mcpherrinm!


all_results = dict()
for table in conf.tables:
time_start = None

Choose a reason for hiding this comment

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

I was confused when reviewing but I see we set time_start to now on line 345; this is just to pull it into a higher scope

Copy link

@mcpherrinm mcpherrinm left a comment

Choose a reason for hiding this comment

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

Thanks! The metric should be helpful.

@jcjones jcjones merged commit adbe13d into main Sep 13, 2022
@jcjones jcjones deleted the WAIT branch September 13, 2022 16:57
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.

3 participants