Git Product home page Git Product logo

Comments (10)

shlomi-noach avatar shlomi-noach commented on August 19, 2024

looking into this

from gh-ost.

shlomi-noach avatar shlomi-noach commented on August 19, 2024

The first blocker I see right away is that SUPER is required for STOP SLAVE and START SLAVE.

Why do we need these two in the first place? Because gh-ost may be asked to switch binlog_format to ROW. In which case it issues:

  • set global binlog_format='ROW'
  • set session binlog_format='ROW'

However if the replica was running with STATEMENT, merely changing to ROW means nothing; the replication must be STOPped and STARTed for the setting to take effect. gh-ost does not want to assume it was set up correctly before running; therefore it always issues a STOP & START.

We could add a flag saying --trust-me-this-is-rbr to skip the above. I don't like it, but it's possible.

from gh-ost.

SuperQ avatar SuperQ commented on August 19, 2024

It should be possible to pre-test for RBR and not require SUPER.

from gh-ost.

shlomi-noach avatar shlomi-noach commented on August 19, 2024

@SuperQ how can you you confirm without doubt the replica is using RBR? Please read again my comment.

from gh-ost.

shlomi-noach avatar shlomi-noach commented on August 19, 2024

To elaborate: you see a replica. It says it has binlog_format=ROW. Fact: it may replicate via SBR, because maybe someone set global binlog_format=ROW without restarting replication.

It sounds far fetched, but in fact is a classic case in --switch-to-rbr

from gh-ost.

shlomi-noach avatar shlomi-noach commented on August 19, 2024

#156 will close this Issue, and will make it possible to run gh-ost without SUPER privilege.

from gh-ost.

shlomi-noach avatar shlomi-noach commented on August 19, 2024

I'm happy to merge #156 , and see thoughts on SBR/RBR in comment: #156 (comment)

from gh-ost.

shlomi-noach avatar shlomi-noach commented on August 19, 2024

SUPER is now not required for normal migration, see #156 and release https://github.com/github/gh-ost/releases/tag/v1.0.10

It is still required in --test-on-replica, see discussion on #162 and on #163

from gh-ost.

shlomi-noach avatar shlomi-noach commented on August 19, 2024

Hooks have been merged, and remove the last barrier for SUPER. I will write more about this on next release, which is expected early next week, at which time this bug will be closed.

from gh-ost.

shlomi-noach avatar shlomi-noach commented on August 19, 2024

all done

from gh-ost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.