Giter Site home page Giter Site logo

handle-error skip throw error about dm HOT 5 CLOSED

lddlww avatar lddlww commented on July 17, 2024
handle-error skip throw error

from dm.

Comments (5)

lance6716 avatar lance6716 commented on July 17, 2024

as described "only support to handle ddl error", handle-error can't skip transaction. Skipping transaction will cause data loss so we don't plan to do it.

from dm.

lddlww avatar lddlww commented on July 17, 2024

so, what can i do to solve error?

from dm.

lddlww avatar lddlww commented on July 17, 2024
» query-status gamelab01-task01
{
    "result": true,
    "msg": "",
    "sources": [
        {
            "result": true,
            "msg": "",
            "sourceStatus": {
                "source": "gamelab01",
                "worker": "worker2",
                "result": null,
                "relayStatus": null
            },
            "subTaskStatus": [
                {
                    "name": "gamelab01-task01",
                    "stage": "Paused",
                    "unit": "Sync",
                    "result": {
                        "isCanceled": false,
                        "errors": [
                            {
                                "ErrCode": 36027,
                                "ErrClass": "sync-unit",
                                "ErrScope": "internal",
                                "ErrLevel": "high",
                                "Message": "startLocation: [position: (, 0), gtid-set: ], endLocation: [position: (mysql-bin.000009, 299330026), gtid-set: 915a5f85-8fd9-4820-b112-2d296273ece1:1-806952,9c656ea1-9999-11ea-9641-74867af4110d:1]: gen insert sqls failed, schema: gamelab, table: g_orders: Column count doesn't match value count: 30 (columns) vs 31 (values)",
                                "RawCause": "",
                                "Workaround": "Please check the log files to see if a related DDL has been skipped, and you could use `operate-schema` to get and set the table structure."
                            }
                        ],
                        "detail": null
                    },
                    "unresolvedDDLLockID": "",
                    "sync": {
                        "totalEvents": "0",
                        "totalTps": "0",
                        "recentTps": "0",
                        "masterBinlog": "(mysql-bin.000009, 299760347)",
                        "masterBinlogGtid": "915a5f85-8fd9-4820-b112-2d296273ece1:1-807832,9c656ea1-9999-11ea-9641-74867af4110d:1",
                        "syncerBinlog": "(mysql-bin.000009, 299329480)",
                        "syncerBinlogGtid": "915a5f85-8fd9-4820-b112-2d296273ece1:1-806951,9c656ea1-9999-11ea-9641-74867af4110d:1",
                        "blockingDDLs": [
                        ],
                        "unresolvedGroups": [
                        ],
                        "synced": false,
                        "binlogType": "remote"
                    }
                }
            ]
        }
    ]
}

i want to skip this error,because tidb g_orders table structure is the same as mysql

from dm.

lance6716 avatar lance6716 commented on July 17, 2024

as said in message, “you could use operate-schema to get and set the table structure”

https://docs.pingcap.com/zh/tidb-data-migration/stable/manage-schema#%E5%91%BD%E4%BB%A4%E4%BB%8B%E7%BB%8D

from dm.

lddlww avatar lddlww commented on July 17, 2024

thanks , i issue operate-schema set -s gamelab01 gamelab01-task01 -d gamelab -t g_orders g_orders.sql to modify dm internal table structure, then the dm syncer is running again now

from dm.

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.