Git Product home page Git Product logo

Comments (11)

pivanof avatar pivanof commented on May 5, 2024 1

I was able to reproduce this. It looks like we have assumed that MySQL will treat empty gtid_executed as "start replicating from the first binlog file you have", but MySQL doesn't do that. I'll look if it's possible to fix this, but for now please take some value of gtid_executed from the master (either just as the current value of the variable or the GTID list from the first binlog file) and pass it to -ripple_requested_start_gtid_position flag. Then Ripple will be able to successfully start replicating from that position onward.

from mysql-ripple.

sankarnaanal avatar sankarnaanal commented on May 5, 2024

I have a master SQL instance in google cloud, while I try to set up a bin log server using MySQL-ripple I'm facing the issue, also I need to set up a slave from bin log server is this possible?

from mysql-ripple.

pivanof avatar pivanof commented on May 5, 2024

You definitely can set up slave from Ripple. Just execute CHANGE MASTER TO on the replica and use Ripple's IP and port as MASTER_HOST and MASTER_PORT in the statement, also use MASTER_AUTO_POSITION = 1. With that the replica should be able to successfully start replicating from Ripple.

Regarding the issue that Ripple has trying to replicate from the master: it's not clear for me why this could happen. Can you post excerpt from the master's error log? I think it should have more info on what's happening.

from mysql-ripple.

sankarnaanal avatar sankarnaanal commented on May 5, 2024

but im facing the above issue while running the following command in MySQL-ripple folder /Bazel-bin/rippled -ripple_datadir=./data -ripple_master_address... also I'm using the master instance in google cloud

from mysql-ripple.

pivanof avatar pivanof commented on May 5, 2024

Right. And the problem is that for some reason the master thinks that Ripple asks to start replicating with a certain GTID that is not in the master's binlogs. I think mysql.err log on the master will have more details about what it doesn't like. Can you post those logs here? Here's documentation on how to find and export the logs: https://cloud.google.com/sql/docs/mysql/instance-info#mysqllogs.

from mysql-ripple.

sankarnaanal avatar sankarnaanal commented on May 5, 2024

Sure, I will post the logs here.

from mysql-ripple.

sankarnaanal avatar sankarnaanal commented on May 5, 2024

{
insertId: "s=35b0979499e449f597024875fb0def4a;i=2651a2;b=3df4b4a8e7c441b7af3023f4be28012c;m=23e2252d274;t=59488d134f425;x=2e839cd52ec7c6ad-0@a1"
logName: "projects/project-178317/logs/cloudsql.googleapis.com%2Fmysql.err"
receiveTimestamp: "2019-10-10T06:50:31.380054318Z"
resource: {…}
severity: "ERROR"
textPayload: "2019-10-10T06:50:29.924655Z 1105466 [Note] my server_id: 604687941, my uuid: b5105251-e63e-11e8-9d29-42010a800494 slave with server_id: 112211 uuid: connects with GTID_executed: "
timestamp: "2019-10-10T06:50:29.924901Z"
}

from mysql-ripple.

sankarnaanal avatar sankarnaanal commented on May 5, 2024

The log looks like this
2019-10-10T06:52:28.167847Z 1105623 [Note] my server_id: 604687941, my uuid: b5105251-e63e-11e8-9d29-42010a800494 slave with server_id: 112211 uuid: connects with GTID_executed:

from mysql-ripple.

pivanof avatar pivanof commented on May 5, 2024

Is that the only log message related to Ripple's attempt to connect? It doesn't bring any clarity unfortunately. :(
I guess I'll try to reproduce this myself to understand what's happening...

from mysql-ripple.

sankarnaanal avatar sankarnaanal commented on May 5, 2024

Yes, the below log is frequently producing.
2019-10-10T06:52:28.167847Z 1105623 [Note] my server_id: 604687941, my uuid: b5105251-e63e-11e8-9d29-42010a800494 slave with server_id: 112211 uuid: connects with GTID_executed:

from mysql-ripple.

sankarnaanal avatar sankarnaanal commented on May 5, 2024

I will try it

from mysql-ripple.

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.