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

source-mysql: Fix some benign error/warnings that get logged #2058

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

willdonnelly
Copy link
Member

@willdonnelly willdonnelly commented Oct 15, 2024

Description:

The collation families utf8_whatever and ascii_whatever are explicitly added to the charsets table so we stop logging errors reading unknown charset for collation, assuming UTF-8 and just do that without complaining because UTF-8 is in fact correct.

The replication connected without TLS log message is downgraded from WARN to INFO to match the main (non-replication) connection logging.

Between these fixes, that's all the main sources of errors and warnings in our production MySQL tasks, so hopefully that will be much less noisy to keep an eye on in the future.

This fixes #2056


This change is Reviewable

@willdonnelly willdonnelly added the change:unplanned Unplanned change, useful for things like doc updates label Oct 15, 2024
@willdonnelly willdonnelly requested a review from a team October 15, 2024 20:51
Copy link
Member

@williamhbaker williamhbaker left a comment

Choose a reason for hiding this comment

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

LGTM

The collation families `utf8_whatever` and `ascii_whatever` are
explicitly added to the charsets table so we stop logging errors
reading `unknown charset for collation, assuming UTF-8` and just
do that without complaining because UTF-8 is in fact correct.

(This requires another minor tweak, because the way we match up a
collation name to a character set is by simple prefix matching,
and `utf8` is a prefix of the `utf8mb3` and `utf8mb4` collations.
But a collation name is actually `<charset>_<comparisonRule>`
with an underscore, so to fix that we just have to do a prefix
match including that trailing underscore. This should still work
the same for all collation names that actually exist.)

The `replication connected without TLS` log message is downgraded
from WARN to INFO to match the main (non-replication) connection
logging.

Between these fixes, that's all the main sources of errors and
warnings in our production MySQL tasks, so hopefully that will
be much less noisy to keep an eye on in the future.

This fixes #2056
@willdonnelly willdonnelly merged commit 8a28634 into main Oct 15, 2024
53 checks passed
@willdonnelly willdonnelly deleted the wgd/mysql-errors-20241015 branch October 15, 2024 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change:unplanned Unplanned change, useful for things like doc updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

source-mysql: Support collation utf8_general_ci
2 participants