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

Avoid Sync message overflow (#3389) #3393

Merged
merged 3 commits into from
Apr 24, 2023

Conversation

dbutenhof
Copy link
Member

PBENCH-1120

Cherry-pick to b0.72.

A SQL error was observed in deployment where pbench-index logged an error on the INDEX sync object because a tarball was somehow not present. The message string generated by indexing_tarballs.py exceeded the VARCHAR(255) column specification.

This isn't an attempt to address the root problem, but to address the symptom of overloading the operation table message column in the future so at least errors are properly recorded.

This reworks some of the indexing_tarballs.py messages to avoid redundancy (e.g., naming the dataset or tarball isn't necessary as the records are linked to the Dataset), but also removes the limit on the message column as a precaution.

PBENCH-1120

A SQL error was observed in deployment where `pbench-index` logged an error on
the `INDEX` sync object because a tarball was somehow not present. The message
string generated by `indexing_tarballs.py` exceeded the `VARCHAR(255)` column
specification.

This isn't an attempt to address the root problem, but to address the symptom
of overloading the operation table message column in the future so at least
errors are properly recorded.

This reworks some of the `indexing_tarballs.py` messages to avoid redundancy
(e.g., naming the dataset or tarball isn't necessary as the records are linked
to the `Dataset`), but also removes the limit on the message column as a
precaution.
webbnh
webbnh previously approved these changes Apr 20, 2023
Copy link
Member

@webbnh webbnh left a comment

Choose a reason for hiding this comment

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

👍

lib/pbench/test/unit/server/test_sync.py Show resolved Hide resolved
The `main` predecessor of my revision doesn't exist on b0.72, so skip a
generation!
webbnh
webbnh previously approved these changes Apr 20, 2023
Copy link
Member

@webbnh webbnh left a comment

Choose a reason for hiding this comment

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

👍

@dbutenhof
Copy link
Member Author

Yikes; OK, two generations back were OIDC changes not on the branch. Third time the charm? (Bets?)

It appears to be turtles most of the way down ...
Copy link
Member

@webbnh webbnh left a comment

Choose a reason for hiding this comment

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

🍀

@dbutenhof dbutenhof requested a review from npalaska April 21, 2023 14:13
@dbutenhof dbutenhof merged commit bfc0465 into distributed-system-analysis:b0.72 Apr 24, 2023
@dbutenhof dbutenhof deleted the long72 branch April 24, 2023 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants