Skip to content

pika_migrate 处理v3.4示例同步异常 #3191

@chenbt-hz

Description

@chenbt-hz

Is this a regression?

Yes

Description

代码版本:

https://github.com/OpenAtomFoundation/pikiwidb/tree/v3.5.6/tools/pika_migrate

参考步骤:

公众号文章 https://mp.weixin.qq.com/s/e3qtQwc5Vv1Ro4zaiC0CXw

从 v3.4 同步到 v3.5.6:

1.写入时报错:broken pipe —— 备注:添加定时ping以后基本解决

W1124 11:01:04.186374 30984 redis_sender.cc:157] RedisSender 8fails to send redis command *3
$3
SET
$11
test_key_30
$8
value_30
, times: 1, error: IO error: write error Broken pipe

从 v3.4 同步到 v4.0.2时:

1.工具的Master连接状态异常

【pika_migrate状态 —— 无法连接】redis-cli -p 9221 info Replication
# Replication(SLAVE)
role:slave
ReplicationID:
master_host: ***
master_port: ***
master_link_status:down
repl_connect_status:
db0:no_connect
slave_priority:100
slave_read_only:1
db_repl_state:(db0:NoConnect)
is_eligible_for_master_election:true
db0:binlog_offset=0 861738,safety_purge=none
slave_repl_offset:861738

【pika_migrate状态 —— 同步过程中失败】 —— 备注:migrate工具的binlogfile大小限制必须和master保持一致,否则会出现offset 、filenumber无法对齐
# Replication(SLAVE)
role:slave
master_host:***
master_port:***
master_link_status:down
slave_priority:100
slave_read_only:1
db_repl_error_state:(db0:Error)
db0 binlog_offset=1 45778,safety_purge=none

Please provide a link to a minimal reproduction of the bug

No response

Screenshots or videos

No response

Please provide the version you discovered this bug in (check about page for version information)


Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ☢️ BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions