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

VStreamer: handle SET statements in the binlog stream #6772

Merged
merged 5 commits into from
Sep 24, 2020

Conversation

rohit-nayak-ps
Copy link
Contributor

@rohit-nayak-ps rohit-nayak-ps commented Sep 22, 2020

There are certain SET statements that seem to make it to the binlogs. One reported by a user is the "SET PASSWORD" query.
Currently vstreamer throws an error in the logs if it encounters a SET. Note that data replication is not affected. However this
causes errors in the logs.

We are going to send an OTHER event just like for DBA commands like REPAIR or ACL ones like GRANT/REVOKE.

A few interesting points which caused challenges while testing:

  • SET PASSWORD has been removed in 8.0.11 and above
  • An option log_builtin_as_identified_by_password has to be set. Otherwise a SET PASSWORD goes into the binlogs as
    an ALTER ... This seems to be off by default
  • On MariaDB the default seems to be to pass the SET PASSWORD through. They do not have that variable.

So for simplicity the test only runs if log_builtin_as_identified_by_password is supported (for our CI that would be the 56 and 57 flavors).

Signed-off-by: Rohit Nayak rohit@planetscale.com

Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
@rohit-nayak-ps rohit-nayak-ps changed the title Send an OTHER if a SET statement is found in the binlog stream VStreamer: handle SET statements in the binlog stream Sep 23, 2020
@rohit-nayak-ps rohit-nayak-ps marked this pull request as ready for review September 23, 2020 17:44
@sougou sougou merged commit c02b7d5 into vitessio:master Sep 24, 2020
@askdba askdba added this to the v8.0 milestone Oct 6, 2020
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